[2025-03-12 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:00:06 [end_date_ymd] => 2025-03-12 00:00:06 [RateCDR] => 1 ) [2025-03-12 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:00:06' and `end` < '2025-03-12 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:00:19] Production.INFO: count ==918 [2025-03-12 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 21:00:06 - End Time 2025-03-12 00:00:06 [2025-03-12 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660354', 'tblTempUsageDetail_20' ) start [2025-03-12 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660354', 'tblTempUsageDetail_20' ) end [2025-03-12 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660354', 'tblTempVendorCDR_20' ) start [2025-03-12 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660354', 'tblTempVendorCDR_20' ) end [2025-03-12 00:00:19] Production.INFO: ProcessCDR(1,14660354,1,1,2) [2025-03-12 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660354', 'tblTempUsageDetail_20' ) start [2025-03-12 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660354', 'tblTempUsageDetail_20' ) end [2025-03-12 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:00:25] Production.INFO: ==21852== Releasing lock... [2025-03-12 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:00:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-12 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:01:05 [end_date_ymd] => 2025-03-12 00:01:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:01:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:01:18] Production.INFO: count ==871 [2025-03-12 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:01:05 - End Time 2025-03-12 00:01:05 [2025-03-12 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660359', 'tblTempUsageDetail_20' ) start [2025-03-12 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660359', 'tblTempUsageDetail_20' ) end [2025-03-12 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660359', 'tblTempVendorCDR_20' ) start [2025-03-12 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660359', 'tblTempVendorCDR_20' ) end [2025-03-12 00:01:18] Production.INFO: ProcessCDR(1,14660359,1,1,2) [2025-03-12 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660359', 'tblTempUsageDetail_20' ) start [2025-03-12 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660359', 'tblTempUsageDetail_20' ) end [2025-03-12 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:01:23] Production.INFO: ==21946== Releasing lock... [2025-03-12 00:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:01:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-12 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:02:06 [end_date_ymd] => 2025-03-12 00:02:06 [RateCDR] => 1 ) [2025-03-12 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:02:06' and `end` < '2025-03-12 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:02:18] Production.INFO: count ==352 [2025-03-12 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:02:06 - End Time 2025-03-12 00:02:06 [2025-03-12 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660364', 'tblTempUsageDetail_20' ) start [2025-03-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660364', 'tblTempUsageDetail_20' ) end [2025-03-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660364', 'tblTempVendorCDR_20' ) start [2025-03-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660364', 'tblTempVendorCDR_20' ) end [2025-03-12 00:02:18] Production.INFO: ProcessCDR(1,14660364,1,1,2) [2025-03-12 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660364', 'tblTempUsageDetail_20' ) start [2025-03-12 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660364', 'tblTempUsageDetail_20' ) end [2025-03-12 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:02:22] Production.INFO: ==22020== Releasing lock... [2025-03-12 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:02:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:03:05 [end_date_ymd] => 2025-03-12 00:03:05 [RateCDR] => 1 ) [2025-03-12 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:03:05' and `end` < '2025-03-12 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:03:17] Production.INFO: count ==352 [2025-03-12 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:03:05 - End Time 2025-03-12 00:03:05 [2025-03-12 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660369', 'tblTempUsageDetail_20' ) start [2025-03-12 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660369', 'tblTempUsageDetail_20' ) end [2025-03-12 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660369', 'tblTempVendorCDR_20' ) start [2025-03-12 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660369', 'tblTempVendorCDR_20' ) end [2025-03-12 00:03:18] Production.INFO: ProcessCDR(1,14660369,1,1,2) [2025-03-12 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660369', 'tblTempUsageDetail_20' ) start [2025-03-12 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660369', 'tblTempUsageDetail_20' ) end [2025-03-12 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:03:21] Production.INFO: ==22143== Releasing lock... [2025-03-12 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:04:05 [end_date_ymd] => 2025-03-12 00:04:05 [RateCDR] => 1 ) [2025-03-12 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:04:05' and `end` < '2025-03-12 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:04:17] Production.INFO: count ==347 [2025-03-12 00:04:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:04:05 - End Time 2025-03-12 00:04:05 [2025-03-12 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660374', 'tblTempUsageDetail_20' ) start [2025-03-12 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660374', 'tblTempUsageDetail_20' ) end [2025-03-12 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660374', 'tblTempVendorCDR_20' ) start [2025-03-12 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660374', 'tblTempVendorCDR_20' ) end [2025-03-12 00:04:17] Production.INFO: ProcessCDR(1,14660374,1,1,2) [2025-03-12 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660374', 'tblTempUsageDetail_20' ) start [2025-03-12 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660374', 'tblTempUsageDetail_20' ) end [2025-03-12 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:04:21] Production.INFO: ==22225== Releasing lock... [2025-03-12 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:05:05 [end_date_ymd] => 2025-03-12 00:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:05:17] Production.INFO: count ==348 [2025-03-12 00:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:05:05 - End Time 2025-03-12 00:05:05 [2025-03-12 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660379', 'tblTempUsageDetail_20' ) start [2025-03-12 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660379', 'tblTempUsageDetail_20' ) end [2025-03-12 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660379', 'tblTempVendorCDR_20' ) start [2025-03-12 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660379', 'tblTempVendorCDR_20' ) end [2025-03-12 00:05:17] Production.INFO: ProcessCDR(1,14660379,1,1,2) [2025-03-12 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660379', 'tblTempUsageDetail_20' ) start [2025-03-12 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660379', 'tblTempUsageDetail_20' ) end [2025-03-12 00:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:05:22] Production.INFO: ==22307== Releasing lock... [2025-03-12 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:06:05 [end_date_ymd] => 2025-03-12 00:06:05 [RateCDR] => 1 ) [2025-03-12 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:06:05' and `end` < '2025-03-12 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:06:17] Production.INFO: count ==345 [2025-03-12 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:06:05 - End Time 2025-03-12 00:06:05 [2025-03-12 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660384', 'tblTempUsageDetail_20' ) start [2025-03-12 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660384', 'tblTempUsageDetail_20' ) end [2025-03-12 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660384', 'tblTempVendorCDR_20' ) start [2025-03-12 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660384', 'tblTempVendorCDR_20' ) end [2025-03-12 00:06:17] Production.INFO: ProcessCDR(1,14660384,1,1,2) [2025-03-12 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660384', 'tblTempUsageDetail_20' ) start [2025-03-12 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660384', 'tblTempUsageDetail_20' ) end [2025-03-12 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:06:22] Production.INFO: ==22383== Releasing lock... [2025-03-12 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:07:05 [end_date_ymd] => 2025-03-12 00:07:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:07:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:07:18] Production.INFO: count ==347 [2025-03-12 00:07:19] Production.ERROR: pbx CDR StartTime 2025-03-11 21:07:05 - End Time 2025-03-12 00:07:05 [2025-03-12 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660389', 'tblTempUsageDetail_20' ) start [2025-03-12 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660389', 'tblTempUsageDetail_20' ) end [2025-03-12 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660389', 'tblTempVendorCDR_20' ) start [2025-03-12 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660389', 'tblTempVendorCDR_20' ) end [2025-03-12 00:07:19] Production.INFO: ProcessCDR(1,14660389,1,1,2) [2025-03-12 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660389', 'tblTempUsageDetail_20' ) start [2025-03-12 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660389', 'tblTempUsageDetail_20' ) end [2025-03-12 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:07:22] Production.INFO: ==22460== Releasing lock... [2025-03-12 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:08:05 [end_date_ymd] => 2025-03-12 00:08:05 [RateCDR] => 1 ) [2025-03-12 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:08:05' and `end` < '2025-03-12 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:08:17] Production.INFO: count ==350 [2025-03-12 00:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:08:05 - End Time 2025-03-12 00:08:05 [2025-03-12 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660394', 'tblTempUsageDetail_20' ) start [2025-03-12 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660394', 'tblTempUsageDetail_20' ) end [2025-03-12 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660394', 'tblTempVendorCDR_20' ) start [2025-03-12 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660394', 'tblTempVendorCDR_20' ) end [2025-03-12 00:08:17] Production.INFO: ProcessCDR(1,14660394,1,1,2) [2025-03-12 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660394', 'tblTempUsageDetail_20' ) start [2025-03-12 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660394', 'tblTempUsageDetail_20' ) end [2025-03-12 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:08:21] Production.INFO: ==22536== Releasing lock... [2025-03-12 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:09:05 [end_date_ymd] => 2025-03-12 00:09:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:09:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:09:17] Production.INFO: count ==349 [2025-03-12 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:09:05 - End Time 2025-03-12 00:09:05 [2025-03-12 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660399', 'tblTempUsageDetail_20' ) start [2025-03-12 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660399', 'tblTempUsageDetail_20' ) end [2025-03-12 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660399', 'tblTempVendorCDR_20' ) start [2025-03-12 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660399', 'tblTempVendorCDR_20' ) end [2025-03-12 00:09:17] Production.INFO: ProcessCDR(1,14660399,1,1,2) [2025-03-12 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660399', 'tblTempUsageDetail_20' ) start [2025-03-12 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660399', 'tblTempUsageDetail_20' ) end [2025-03-12 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:09:20] Production.INFO: ==22620== Releasing lock... [2025-03-12 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:09:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:10:06 [end_date_ymd] => 2025-03-12 00:10:06 [RateCDR] => 1 ) [2025-03-12 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:10:06' and `end` < '2025-03-12 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:10:18] Production.INFO: count ==357 [2025-03-12 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-11 21:10:06 - End Time 2025-03-12 00:10:06 [2025-03-12 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660405', 'tblTempUsageDetail_20' ) start [2025-03-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660405', 'tblTempUsageDetail_20' ) end [2025-03-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660405', 'tblTempVendorCDR_20' ) start [2025-03-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660405', 'tblTempVendorCDR_20' ) end [2025-03-12 00:10:19] Production.INFO: ProcessCDR(1,14660405,1,1,2) [2025-03-12 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660405', 'tblTempUsageDetail_20' ) start [2025-03-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660405', 'tblTempUsageDetail_20' ) end [2025-03-12 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:10:23] Production.INFO: ==22700== Releasing lock... [2025-03-12 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:11:05 [end_date_ymd] => 2025-03-12 00:11:05 [RateCDR] => 1 ) [2025-03-12 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:11:05' and `end` < '2025-03-12 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:11:17] Production.INFO: count ==376 [2025-03-12 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:11:05 - End Time 2025-03-12 00:11:05 [2025-03-12 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660410', 'tblTempUsageDetail_20' ) start [2025-03-12 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660410', 'tblTempUsageDetail_20' ) end [2025-03-12 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660410', 'tblTempVendorCDR_20' ) start [2025-03-12 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660410', 'tblTempVendorCDR_20' ) end [2025-03-12 00:11:17] Production.INFO: ProcessCDR(1,14660410,1,1,2) [2025-03-12 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660410', 'tblTempUsageDetail_20' ) start [2025-03-12 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660410', 'tblTempUsageDetail_20' ) end [2025-03-12 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:11:22] Production.INFO: ==22786== Releasing lock... [2025-03-12 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:12:05 [end_date_ymd] => 2025-03-12 00:12:05 [RateCDR] => 1 ) [2025-03-12 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:12:05' and `end` < '2025-03-12 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:12:17] Production.INFO: count ==377 [2025-03-12 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:12:05 - End Time 2025-03-12 00:12:05 [2025-03-12 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660415', 'tblTempUsageDetail_20' ) start [2025-03-12 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660415', 'tblTempUsageDetail_20' ) end [2025-03-12 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660415', 'tblTempVendorCDR_20' ) start [2025-03-12 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660415', 'tblTempVendorCDR_20' ) end [2025-03-12 00:12:17] Production.INFO: ProcessCDR(1,14660415,1,1,2) [2025-03-12 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660415', 'tblTempUsageDetail_20' ) start [2025-03-12 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660415', 'tblTempUsageDetail_20' ) end [2025-03-12 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:12:21] Production.INFO: ==22863== Releasing lock... [2025-03-12 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:13:06 [end_date_ymd] => 2025-03-12 00:13:06 [RateCDR] => 1 ) [2025-03-12 00:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:13:06' and `end` < '2025-03-12 00:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:13:28] Production.INFO: count ==386 [2025-03-12 00:13:28] Production.ERROR: pbx CDR StartTime 2025-03-11 21:13:06 - End Time 2025-03-12 00:13:06 [2025-03-12 00:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660420', 'tblTempUsageDetail_20' ) start [2025-03-12 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660420', 'tblTempUsageDetail_20' ) end [2025-03-12 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660420', 'tblTempVendorCDR_20' ) start [2025-03-12 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660420', 'tblTempVendorCDR_20' ) end [2025-03-12 00:13:28] Production.INFO: ProcessCDR(1,14660420,1,1,2) [2025-03-12 00:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660420', 'tblTempUsageDetail_20' ) start [2025-03-12 00:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660420', 'tblTempUsageDetail_20' ) end [2025-03-12 00:13:33] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:13:33] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:13:33] Production.INFO: ==22941== Releasing lock... [2025-03-12 00:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:13:33] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:14:05 [end_date_ymd] => 2025-03-12 00:14:05 [RateCDR] => 1 ) [2025-03-12 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:14:05' and `end` < '2025-03-12 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:14:17] Production.INFO: count ==386 [2025-03-12 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:14:05 - End Time 2025-03-12 00:14:05 [2025-03-12 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660425', 'tblTempUsageDetail_20' ) start [2025-03-12 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660425', 'tblTempUsageDetail_20' ) end [2025-03-12 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660425', 'tblTempVendorCDR_20' ) start [2025-03-12 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660425', 'tblTempVendorCDR_20' ) end [2025-03-12 00:14:17] Production.INFO: ProcessCDR(1,14660425,1,1,2) [2025-03-12 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660425', 'tblTempUsageDetail_20' ) start [2025-03-12 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660425', 'tblTempUsageDetail_20' ) end [2025-03-12 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:14:22] Production.INFO: ==23013== Releasing lock... [2025-03-12 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:15:06 [end_date_ymd] => 2025-03-12 00:15:06 [RateCDR] => 1 ) [2025-03-12 00:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:15:06' and `end` < '2025-03-12 00:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:15:18] Production.INFO: count ==386 [2025-03-12 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:15:06 - End Time 2025-03-12 00:15:06 [2025-03-12 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660430', 'tblTempUsageDetail_20' ) start [2025-03-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660430', 'tblTempUsageDetail_20' ) end [2025-03-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660430', 'tblTempVendorCDR_20' ) start [2025-03-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660430', 'tblTempVendorCDR_20' ) end [2025-03-12 00:15:18] Production.INFO: ProcessCDR(1,14660430,1,1,2) [2025-03-12 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660430', 'tblTempUsageDetail_20' ) start [2025-03-12 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660430', 'tblTempUsageDetail_20' ) end [2025-03-12 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:15:23] Production.INFO: ==23093== Releasing lock... [2025-03-12 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:15:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:16:05 [end_date_ymd] => 2025-03-12 00:16:05 [RateCDR] => 1 ) [2025-03-12 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:16:05' and `end` < '2025-03-12 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:16:17] Production.INFO: count ==375 [2025-03-12 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:16:05 - End Time 2025-03-12 00:16:05 [2025-03-12 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660435', 'tblTempUsageDetail_20' ) start [2025-03-12 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660435', 'tblTempUsageDetail_20' ) end [2025-03-12 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660435', 'tblTempVendorCDR_20' ) start [2025-03-12 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660435', 'tblTempVendorCDR_20' ) end [2025-03-12 00:16:17] Production.INFO: ProcessCDR(1,14660435,1,1,2) [2025-03-12 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660435', 'tblTempUsageDetail_20' ) start [2025-03-12 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660435', 'tblTempUsageDetail_20' ) end [2025-03-12 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:16:20] Production.INFO: ==23169== Releasing lock... [2025-03-12 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:17:05 [end_date_ymd] => 2025-03-12 00:17:05 [RateCDR] => 1 ) [2025-03-12 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:17:05' and `end` < '2025-03-12 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:17:17] Production.INFO: count ==370 [2025-03-12 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:17:05 - End Time 2025-03-12 00:17:05 [2025-03-12 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660440', 'tblTempUsageDetail_20' ) start [2025-03-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660440', 'tblTempUsageDetail_20' ) end [2025-03-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660440', 'tblTempVendorCDR_20' ) start [2025-03-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660440', 'tblTempVendorCDR_20' ) end [2025-03-12 00:17:18] Production.INFO: ProcessCDR(1,14660440,1,1,2) [2025-03-12 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660440', 'tblTempUsageDetail_20' ) start [2025-03-12 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660440', 'tblTempUsageDetail_20' ) end [2025-03-12 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:17:21] Production.INFO: ==23247== Releasing lock... [2025-03-12 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:18:05 [end_date_ymd] => 2025-03-12 00:18:05 [RateCDR] => 1 ) [2025-03-12 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:18:05' and `end` < '2025-03-12 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:18:17] Production.INFO: count ==370 [2025-03-12 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:18:05 - End Time 2025-03-12 00:18:05 [2025-03-12 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660445', 'tblTempUsageDetail_20' ) start [2025-03-12 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660445', 'tblTempUsageDetail_20' ) end [2025-03-12 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660445', 'tblTempVendorCDR_20' ) start [2025-03-12 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660445', 'tblTempVendorCDR_20' ) end [2025-03-12 00:18:17] Production.INFO: ProcessCDR(1,14660445,1,1,2) [2025-03-12 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660445', 'tblTempUsageDetail_20' ) start [2025-03-12 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660445', 'tblTempUsageDetail_20' ) end [2025-03-12 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:18:20] Production.INFO: ==23363== Releasing lock... [2025-03-12 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:18:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:19:06 [end_date_ymd] => 2025-03-12 00:19:06 [RateCDR] => 1 ) [2025-03-12 00: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` >= '2025-03-11 21:19:06' and `end` < '2025-03-12 00: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 ,'') [2025-03-12 00:19:18] Production.INFO: count ==370 [2025-03-12 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:19:06 - End Time 2025-03-12 00:19:06 [2025-03-12 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660450', 'tblTempUsageDetail_20' ) start [2025-03-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660450', 'tblTempUsageDetail_20' ) end [2025-03-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660450', 'tblTempVendorCDR_20' ) start [2025-03-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660450', 'tblTempVendorCDR_20' ) end [2025-03-12 00:19:18] Production.INFO: ProcessCDR(1,14660450,1,1,2) [2025-03-12 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660450', 'tblTempUsageDetail_20' ) start [2025-03-12 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660450', 'tblTempUsageDetail_20' ) end [2025-03-12 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:19:21] Production.INFO: ==23448== Releasing lock... [2025-03-12 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:20:05 [end_date_ymd] => 2025-03-12 00:20:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:20:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:20:17] Production.INFO: count ==375 [2025-03-12 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:20:05 - End Time 2025-03-12 00:20:05 [2025-03-12 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660455', 'tblTempUsageDetail_20' ) start [2025-03-12 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660455', 'tblTempUsageDetail_20' ) end [2025-03-12 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660455', 'tblTempVendorCDR_20' ) start [2025-03-12 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660455', 'tblTempVendorCDR_20' ) end [2025-03-12 00:20:18] Production.INFO: ProcessCDR(1,14660455,1,1,2) [2025-03-12 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660455', 'tblTempUsageDetail_20' ) start [2025-03-12 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660455', 'tblTempUsageDetail_20' ) end [2025-03-12 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:20:21] Production.INFO: ==23528== Releasing lock... [2025-03-12 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:21:05 [end_date_ymd] => 2025-03-12 00:21:05 [RateCDR] => 1 ) [2025-03-12 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:21:05' and `end` < '2025-03-12 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:21:18] Production.INFO: count ==383 [2025-03-12 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:21:05 - End Time 2025-03-12 00:21:05 [2025-03-12 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660461', 'tblTempUsageDetail_20' ) start [2025-03-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660461', 'tblTempUsageDetail_20' ) end [2025-03-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660461', 'tblTempVendorCDR_20' ) start [2025-03-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660461', 'tblTempVendorCDR_20' ) end [2025-03-12 00:21:18] Production.INFO: ProcessCDR(1,14660461,1,1,2) [2025-03-12 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660461', 'tblTempUsageDetail_20' ) start [2025-03-12 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660461', 'tblTempUsageDetail_20' ) end [2025-03-12 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:21:21] Production.INFO: ==23604== Releasing lock... [2025-03-12 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:22:05 [end_date_ymd] => 2025-03-12 00:22:05 [RateCDR] => 1 ) [2025-03-12 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:22:05' and `end` < '2025-03-12 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:22:17] Production.INFO: count ==384 [2025-03-12 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:22:05 - End Time 2025-03-12 00:22:05 [2025-03-12 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660466', 'tblTempUsageDetail_20' ) start [2025-03-12 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660466', 'tblTempUsageDetail_20' ) end [2025-03-12 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660466', 'tblTempVendorCDR_20' ) start [2025-03-12 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660466', 'tblTempVendorCDR_20' ) end [2025-03-12 00:22:18] Production.INFO: ProcessCDR(1,14660466,1,1,2) [2025-03-12 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660466', 'tblTempUsageDetail_20' ) start [2025-03-12 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660466', 'tblTempUsageDetail_20' ) end [2025-03-12 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:22:22] Production.INFO: ==23685== Releasing lock... [2025-03-12 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:23:05 [end_date_ymd] => 2025-03-12 00:23:05 [RateCDR] => 1 ) [2025-03-12 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:23:05' and `end` < '2025-03-12 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:23:17] Production.INFO: count ==383 [2025-03-12 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:23:05 - End Time 2025-03-12 00:23:05 [2025-03-12 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660471', 'tblTempUsageDetail_20' ) start [2025-03-12 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660471', 'tblTempUsageDetail_20' ) end [2025-03-12 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660471', 'tblTempVendorCDR_20' ) start [2025-03-12 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660471', 'tblTempVendorCDR_20' ) end [2025-03-12 00:23:17] Production.INFO: ProcessCDR(1,14660471,1,1,2) [2025-03-12 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660471', 'tblTempUsageDetail_20' ) start [2025-03-12 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660471', 'tblTempUsageDetail_20' ) end [2025-03-12 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:23:20] Production.INFO: ==23764== Releasing lock... [2025-03-12 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:23:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:24:04 [end_date_ymd] => 2025-03-12 00:24:04 [RateCDR] => 1 ) [2025-03-12 00:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:24:04' and `end` < '2025-03-12 00:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:24:17] Production.INFO: count ==383 [2025-03-12 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:24:04 - End Time 2025-03-12 00:24:04 [2025-03-12 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660476', 'tblTempUsageDetail_20' ) start [2025-03-12 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660476', 'tblTempUsageDetail_20' ) end [2025-03-12 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660476', 'tblTempVendorCDR_20' ) start [2025-03-12 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660476', 'tblTempVendorCDR_20' ) end [2025-03-12 00:24:17] Production.INFO: ProcessCDR(1,14660476,1,1,2) [2025-03-12 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660476', 'tblTempUsageDetail_20' ) start [2025-03-12 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660476', 'tblTempUsageDetail_20' ) end [2025-03-12 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:24:20] Production.INFO: ==23838== Releasing lock... [2025-03-12 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:24:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:25:05 [end_date_ymd] => 2025-03-12 00:25:05 [RateCDR] => 1 ) [2025-03-12 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:25:05' and `end` < '2025-03-12 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:25:17] Production.INFO: count ==381 [2025-03-12 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:25:05 - End Time 2025-03-12 00:25:05 [2025-03-12 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660481', 'tblTempUsageDetail_20' ) start [2025-03-12 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660481', 'tblTempUsageDetail_20' ) end [2025-03-12 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660481', 'tblTempVendorCDR_20' ) start [2025-03-12 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660481', 'tblTempVendorCDR_20' ) end [2025-03-12 00:25:17] Production.INFO: ProcessCDR(1,14660481,1,1,2) [2025-03-12 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660481', 'tblTempUsageDetail_20' ) start [2025-03-12 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660481', 'tblTempUsageDetail_20' ) end [2025-03-12 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:25:20] Production.INFO: ==23911== Releasing lock... [2025-03-12 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:26:04 [end_date_ymd] => 2025-03-12 00:26:04 [RateCDR] => 1 ) [2025-03-12 00: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` >= '2025-03-11 21:26:04' and `end` < '2025-03-12 00: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 ,'') [2025-03-12 00:26:17] Production.INFO: count ==380 [2025-03-12 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:26:04 - End Time 2025-03-12 00:26:04 [2025-03-12 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660486', 'tblTempUsageDetail_20' ) start [2025-03-12 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660486', 'tblTempUsageDetail_20' ) end [2025-03-12 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660486', 'tblTempVendorCDR_20' ) start [2025-03-12 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660486', 'tblTempVendorCDR_20' ) end [2025-03-12 00:26:17] Production.INFO: ProcessCDR(1,14660486,1,1,2) [2025-03-12 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660486', 'tblTempUsageDetail_20' ) start [2025-03-12 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660486', 'tblTempUsageDetail_20' ) end [2025-03-12 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:26:20] Production.INFO: ==23982== Releasing lock... [2025-03-12 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:26:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:27:05 [end_date_ymd] => 2025-03-12 00:27:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:27:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:27:17] Production.INFO: count ==380 [2025-03-12 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:27:05 - End Time 2025-03-12 00:27:05 [2025-03-12 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660491', 'tblTempUsageDetail_20' ) start [2025-03-12 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660491', 'tblTempUsageDetail_20' ) end [2025-03-12 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660491', 'tblTempVendorCDR_20' ) start [2025-03-12 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660491', 'tblTempVendorCDR_20' ) end [2025-03-12 00:27:17] Production.INFO: ProcessCDR(1,14660491,1,1,2) [2025-03-12 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660491', 'tblTempUsageDetail_20' ) start [2025-03-12 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660491', 'tblTempUsageDetail_20' ) end [2025-03-12 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:27:20] Production.INFO: ==24054== Releasing lock... [2025-03-12 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:28:05 [end_date_ymd] => 2025-03-12 00:28:05 [RateCDR] => 1 ) [2025-03-12 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:28:05' and `end` < '2025-03-12 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:28:17] Production.INFO: count ==380 [2025-03-12 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:28:05 - End Time 2025-03-12 00:28:05 [2025-03-12 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660496', 'tblTempUsageDetail_20' ) start [2025-03-12 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660496', 'tblTempUsageDetail_20' ) end [2025-03-12 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660496', 'tblTempVendorCDR_20' ) start [2025-03-12 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660496', 'tblTempVendorCDR_20' ) end [2025-03-12 00:28:17] Production.INFO: ProcessCDR(1,14660496,1,1,2) [2025-03-12 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660496', 'tblTempUsageDetail_20' ) start [2025-03-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660496', 'tblTempUsageDetail_20' ) end [2025-03-12 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:28:21] Production.INFO: ==24129== Releasing lock... [2025-03-12 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:29:05 [end_date_ymd] => 2025-03-12 00:29:05 [RateCDR] => 1 ) [2025-03-12 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:29:05' and `end` < '2025-03-12 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:29:17] Production.INFO: count ==377 [2025-03-12 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:29:05 - End Time 2025-03-12 00:29:05 [2025-03-12 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660501', 'tblTempUsageDetail_20' ) start [2025-03-12 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660501', 'tblTempUsageDetail_20' ) end [2025-03-12 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660501', 'tblTempVendorCDR_20' ) start [2025-03-12 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660501', 'tblTempVendorCDR_20' ) end [2025-03-12 00:29:17] Production.INFO: ProcessCDR(1,14660501,1,1,2) [2025-03-12 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660501', 'tblTempUsageDetail_20' ) start [2025-03-12 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660501', 'tblTempUsageDetail_20' ) end [2025-03-12 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:29:20] Production.INFO: ==24202== Releasing lock... [2025-03-12 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:29:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:30:06 [end_date_ymd] => 2025-03-12 00:30:06 [RateCDR] => 1 ) [2025-03-12 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:30:06' and `end` < '2025-03-12 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:30:19] Production.INFO: count ==392 [2025-03-12 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-11 21:30:06 - End Time 2025-03-12 00:30:06 [2025-03-12 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660507', 'tblTempUsageDetail_20' ) start [2025-03-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660507', 'tblTempUsageDetail_20' ) end [2025-03-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660507', 'tblTempVendorCDR_20' ) start [2025-03-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660507', 'tblTempVendorCDR_20' ) end [2025-03-12 00:30:19] Production.INFO: ProcessCDR(1,14660507,1,1,2) [2025-03-12 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660507', 'tblTempUsageDetail_20' ) start [2025-03-12 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660507', 'tblTempUsageDetail_20' ) end [2025-03-12 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:30:23] Production.INFO: ==24278== Releasing lock... [2025-03-12 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:31:05 [end_date_ymd] => 2025-03-12 00:31:05 [RateCDR] => 1 ) [2025-03-12 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:31:05' and `end` < '2025-03-12 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:31:17] Production.INFO: count ==399 [2025-03-12 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:31:05 - End Time 2025-03-12 00:31:05 [2025-03-12 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660512', 'tblTempUsageDetail_20' ) start [2025-03-12 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660512', 'tblTempUsageDetail_20' ) end [2025-03-12 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660512', 'tblTempVendorCDR_20' ) start [2025-03-12 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660512', 'tblTempVendorCDR_20' ) end [2025-03-12 00:31:17] Production.INFO: ProcessCDR(1,14660512,1,1,2) [2025-03-12 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660512', 'tblTempUsageDetail_20' ) start [2025-03-12 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660512', 'tblTempUsageDetail_20' ) end [2025-03-12 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:31:20] Production.INFO: ==24350== Releasing lock... [2025-03-12 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:31:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:32:05 [end_date_ymd] => 2025-03-12 00:32:05 [RateCDR] => 1 ) [2025-03-12 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:32:05' and `end` < '2025-03-12 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:32:17] Production.INFO: count ==403 [2025-03-12 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:32:05 - End Time 2025-03-12 00:32:05 [2025-03-12 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660517', 'tblTempUsageDetail_20' ) start [2025-03-12 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660517', 'tblTempUsageDetail_20' ) end [2025-03-12 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660517', 'tblTempVendorCDR_20' ) start [2025-03-12 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660517', 'tblTempVendorCDR_20' ) end [2025-03-12 00:32:17] Production.INFO: ProcessCDR(1,14660517,1,1,2) [2025-03-12 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660517', 'tblTempUsageDetail_20' ) start [2025-03-12 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660517', 'tblTempUsageDetail_20' ) end [2025-03-12 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:32:21] Production.INFO: ==24423== Releasing lock... [2025-03-12 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:33:04 [end_date_ymd] => 2025-03-12 00:33:04 [RateCDR] => 1 ) [2025-03-12 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:33:04' and `end` < '2025-03-12 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:33:17] Production.INFO: count ==407 [2025-03-12 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:33:04 - End Time 2025-03-12 00:33:04 [2025-03-12 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660518', 'tblTempUsageDetail_20' ) start [2025-03-12 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660518', 'tblTempUsageDetail_20' ) end [2025-03-12 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660518', 'tblTempVendorCDR_20' ) start [2025-03-12 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660518', 'tblTempVendorCDR_20' ) end [2025-03-12 00:33:17] Production.INFO: ProcessCDR(1,14660518,1,1,2) [2025-03-12 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660518', 'tblTempUsageDetail_20' ) start [2025-03-12 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660518', 'tblTempUsageDetail_20' ) end [2025-03-12 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:33:20] Production.INFO: ==24494== Releasing lock... [2025-03-12 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:33:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:34:06 [end_date_ymd] => 2025-03-12 00:34:06 [RateCDR] => 1 ) [2025-03-12 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:34:06' and `end` < '2025-03-12 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:34:18] Production.INFO: count ==405 [2025-03-12 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:34:06 - End Time 2025-03-12 00:34:06 [2025-03-12 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660527', 'tblTempUsageDetail_20' ) start [2025-03-12 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660527', 'tblTempUsageDetail_20' ) end [2025-03-12 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660527', 'tblTempVendorCDR_20' ) start [2025-03-12 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660527', 'tblTempVendorCDR_20' ) end [2025-03-12 00:34:18] Production.INFO: ProcessCDR(1,14660527,1,1,2) [2025-03-12 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660527', 'tblTempUsageDetail_20' ) start [2025-03-12 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660527', 'tblTempUsageDetail_20' ) end [2025-03-12 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:34:21] Production.INFO: ==24607== Releasing lock... [2025-03-12 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:35:05 [end_date_ymd] => 2025-03-12 00:35:05 [RateCDR] => 1 ) [2025-03-12 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:35:05' and `end` < '2025-03-12 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:35:17] Production.INFO: count ==400 [2025-03-12 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:35:05 - End Time 2025-03-12 00:35:05 [2025-03-12 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660532', 'tblTempUsageDetail_20' ) start [2025-03-12 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660532', 'tblTempUsageDetail_20' ) end [2025-03-12 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660532', 'tblTempVendorCDR_20' ) start [2025-03-12 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660532', 'tblTempVendorCDR_20' ) end [2025-03-12 00:35:17] Production.INFO: ProcessCDR(1,14660532,1,1,2) [2025-03-12 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660532', 'tblTempUsageDetail_20' ) start [2025-03-12 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660532', 'tblTempUsageDetail_20' ) end [2025-03-12 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:35:20] Production.INFO: ==24675== Releasing lock... [2025-03-12 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:36:05 [end_date_ymd] => 2025-03-12 00:36:05 [RateCDR] => 1 ) [2025-03-12 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:36:05' and `end` < '2025-03-12 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:36:17] Production.INFO: count ==396 [2025-03-12 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:36:05 - End Time 2025-03-12 00:36:05 [2025-03-12 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660537', 'tblTempUsageDetail_20' ) start [2025-03-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660537', 'tblTempUsageDetail_20' ) end [2025-03-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660537', 'tblTempVendorCDR_20' ) start [2025-03-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660537', 'tblTempVendorCDR_20' ) end [2025-03-12 00:36:18] Production.INFO: ProcessCDR(1,14660537,1,1,2) [2025-03-12 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660537', 'tblTempUsageDetail_20' ) start [2025-03-12 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660537', 'tblTempUsageDetail_20' ) end [2025-03-12 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:36:21] Production.INFO: ==24747== Releasing lock... [2025-03-12 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:37:05 [end_date_ymd] => 2025-03-12 00:37:05 [RateCDR] => 1 ) [2025-03-12 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:37:05' and `end` < '2025-03-12 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:37:17] Production.INFO: count ==391 [2025-03-12 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:37:05 - End Time 2025-03-12 00:37:05 [2025-03-12 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660542', 'tblTempUsageDetail_20' ) start [2025-03-12 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660542', 'tblTempUsageDetail_20' ) end [2025-03-12 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660542', 'tblTempVendorCDR_20' ) start [2025-03-12 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660542', 'tblTempVendorCDR_20' ) end [2025-03-12 00:37:17] Production.INFO: ProcessCDR(1,14660542,1,1,2) [2025-03-12 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660542', 'tblTempUsageDetail_20' ) start [2025-03-12 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660542', 'tblTempUsageDetail_20' ) end [2025-03-12 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:37:20] Production.INFO: ==24816== Releasing lock... [2025-03-12 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:37:20] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:38:06 [end_date_ymd] => 2025-03-12 00:38:06 [RateCDR] => 1 ) [2025-03-12 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:38:06' and `end` < '2025-03-12 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:38:18] Production.INFO: count ==389 [2025-03-12 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:38:06 - End Time 2025-03-12 00:38:06 [2025-03-12 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660547', 'tblTempUsageDetail_20' ) start [2025-03-12 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660547', 'tblTempUsageDetail_20' ) end [2025-03-12 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660547', 'tblTempVendorCDR_20' ) start [2025-03-12 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660547', 'tblTempVendorCDR_20' ) end [2025-03-12 00:38:18] Production.INFO: ProcessCDR(1,14660547,1,1,2) [2025-03-12 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660547', 'tblTempUsageDetail_20' ) start [2025-03-12 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660547', 'tblTempUsageDetail_20' ) end [2025-03-12 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:38:21] Production.INFO: ==24891== Releasing lock... [2025-03-12 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:39:05 [end_date_ymd] => 2025-03-12 00:39:05 [RateCDR] => 1 ) [2025-03-12 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:39:05' and `end` < '2025-03-12 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:39:17] Production.INFO: count ==389 [2025-03-12 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:39:05 - End Time 2025-03-12 00:39:05 [2025-03-12 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660552', 'tblTempUsageDetail_20' ) start [2025-03-12 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660552', 'tblTempUsageDetail_20' ) end [2025-03-12 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660552', 'tblTempVendorCDR_20' ) start [2025-03-12 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660552', 'tblTempVendorCDR_20' ) end [2025-03-12 00:39:17] Production.INFO: ProcessCDR(1,14660552,1,1,2) [2025-03-12 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660552', 'tblTempUsageDetail_20' ) start [2025-03-12 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660552', 'tblTempUsageDetail_20' ) end [2025-03-12 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:39:20] Production.INFO: ==24961== Releasing lock... [2025-03-12 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:39:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:40:05 [end_date_ymd] => 2025-03-12 00:40:05 [RateCDR] => 1 ) [2025-03-12 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:40:05' and `end` < '2025-03-12 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:40:18] Production.INFO: count ==392 [2025-03-12 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:40:05 - End Time 2025-03-12 00:40:05 [2025-03-12 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660557', 'tblTempUsageDetail_20' ) start [2025-03-12 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660557', 'tblTempUsageDetail_20' ) end [2025-03-12 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660557', 'tblTempVendorCDR_20' ) start [2025-03-12 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660557', 'tblTempVendorCDR_20' ) end [2025-03-12 00:40:18] Production.INFO: ProcessCDR(1,14660557,1,1,2) [2025-03-12 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660557', 'tblTempUsageDetail_20' ) start [2025-03-12 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660557', 'tblTempUsageDetail_20' ) end [2025-03-12 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:40:21] Production.INFO: ==25033== Releasing lock... [2025-03-12 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:40:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:41:04 [end_date_ymd] => 2025-03-12 00:41:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 21:41:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 00:41:17] Production.INFO: count ==405 [2025-03-12 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:41:04 - End Time 2025-03-12 00:41:04 [2025-03-12 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660563', 'tblTempUsageDetail_20' ) start [2025-03-12 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660563', 'tblTempUsageDetail_20' ) end [2025-03-12 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660563', 'tblTempVendorCDR_20' ) start [2025-03-12 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660563', 'tblTempVendorCDR_20' ) end [2025-03-12 00:41:17] Production.INFO: ProcessCDR(1,14660563,1,1,2) [2025-03-12 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660563', 'tblTempUsageDetail_20' ) start [2025-03-12 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660563', 'tblTempUsageDetail_20' ) end [2025-03-12 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:41:20] Production.INFO: ==25106== Releasing lock... [2025-03-12 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:42:05 [end_date_ymd] => 2025-03-12 00:42:05 [RateCDR] => 1 ) [2025-03-12 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:42:05' and `end` < '2025-03-12 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:42:17] Production.INFO: count ==396 [2025-03-12 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:42:05 - End Time 2025-03-12 00:42:05 [2025-03-12 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660568', 'tblTempUsageDetail_20' ) start [2025-03-12 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660568', 'tblTempUsageDetail_20' ) end [2025-03-12 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660568', 'tblTempVendorCDR_20' ) start [2025-03-12 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660568', 'tblTempVendorCDR_20' ) end [2025-03-12 00:42:17] Production.INFO: ProcessCDR(1,14660568,1,1,2) [2025-03-12 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660568', 'tblTempUsageDetail_20' ) start [2025-03-12 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660568', 'tblTempUsageDetail_20' ) end [2025-03-12 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:42:20] Production.INFO: ==25182== Releasing lock... [2025-03-12 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:42:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:43:05 [end_date_ymd] => 2025-03-12 00:43:05 [RateCDR] => 1 ) [2025-03-12 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:43:05' and `end` < '2025-03-12 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:43:18] Production.INFO: count ==395 [2025-03-12 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:43:05 - End Time 2025-03-12 00:43:05 [2025-03-12 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660573', 'tblTempUsageDetail_20' ) start [2025-03-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660573', 'tblTempUsageDetail_20' ) end [2025-03-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660573', 'tblTempVendorCDR_20' ) start [2025-03-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660573', 'tblTempVendorCDR_20' ) end [2025-03-12 00:43:18] Production.INFO: ProcessCDR(1,14660573,1,1,2) [2025-03-12 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660573', 'tblTempUsageDetail_20' ) start [2025-03-12 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660573', 'tblTempUsageDetail_20' ) end [2025-03-12 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:43:21] Production.INFO: ==25253== Releasing lock... [2025-03-12 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:44:05 [end_date_ymd] => 2025-03-12 00:44:05 [RateCDR] => 1 ) [2025-03-12 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:44:05' and `end` < '2025-03-12 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:44:17] Production.INFO: count ==392 [2025-03-12 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:44:05 - End Time 2025-03-12 00:44:05 [2025-03-12 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660578', 'tblTempUsageDetail_20' ) start [2025-03-12 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660578', 'tblTempUsageDetail_20' ) end [2025-03-12 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660578', 'tblTempVendorCDR_20' ) start [2025-03-12 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660578', 'tblTempVendorCDR_20' ) end [2025-03-12 00:44:17] Production.INFO: ProcessCDR(1,14660578,1,1,2) [2025-03-12 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660578', 'tblTempUsageDetail_20' ) start [2025-03-12 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660578', 'tblTempUsageDetail_20' ) end [2025-03-12 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:44:20] Production.INFO: ==25323== Releasing lock... [2025-03-12 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:44:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:45:05 [end_date_ymd] => 2025-03-12 00:45:05 [RateCDR] => 1 ) [2025-03-12 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:45:05' and `end` < '2025-03-12 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:45:17] Production.INFO: count ==390 [2025-03-12 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:45:05 - End Time 2025-03-12 00:45:05 [2025-03-12 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660583', 'tblTempUsageDetail_20' ) start [2025-03-12 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660583', 'tblTempUsageDetail_20' ) end [2025-03-12 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660583', 'tblTempVendorCDR_20' ) start [2025-03-12 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660583', 'tblTempVendorCDR_20' ) end [2025-03-12 00:45:17] Production.INFO: ProcessCDR(1,14660583,1,1,2) [2025-03-12 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660583', 'tblTempUsageDetail_20' ) start [2025-03-12 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660583', 'tblTempUsageDetail_20' ) end [2025-03-12 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:45:21] Production.INFO: ==25397== Releasing lock... [2025-03-12 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:46:05 [end_date_ymd] => 2025-03-12 00:46:05 [RateCDR] => 1 ) [2025-03-12 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:46:05' and `end` < '2025-03-12 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:46:17] Production.INFO: count ==390 [2025-03-12 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:46:05 - End Time 2025-03-12 00:46:05 [2025-03-12 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660588', 'tblTempUsageDetail_20' ) start [2025-03-12 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660588', 'tblTempUsageDetail_20' ) end [2025-03-12 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660588', 'tblTempVendorCDR_20' ) start [2025-03-12 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660588', 'tblTempVendorCDR_20' ) end [2025-03-12 00:46:17] Production.INFO: ProcessCDR(1,14660588,1,1,2) [2025-03-12 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660588', 'tblTempUsageDetail_20' ) start [2025-03-12 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660588', 'tblTempUsageDetail_20' ) end [2025-03-12 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:46:22] Production.INFO: ==25470== Releasing lock... [2025-03-12 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:47:05 [end_date_ymd] => 2025-03-12 00:47:05 [RateCDR] => 1 ) [2025-03-12 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:47:05' and `end` < '2025-03-12 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:47:17] Production.INFO: count ==388 [2025-03-12 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:47:05 - End Time 2025-03-12 00:47:05 [2025-03-12 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660593', 'tblTempUsageDetail_20' ) start [2025-03-12 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660593', 'tblTempUsageDetail_20' ) end [2025-03-12 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660593', 'tblTempVendorCDR_20' ) start [2025-03-12 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660593', 'tblTempVendorCDR_20' ) end [2025-03-12 00:47:17] Production.INFO: ProcessCDR(1,14660593,1,1,2) [2025-03-12 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660593', 'tblTempUsageDetail_20' ) start [2025-03-12 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660593', 'tblTempUsageDetail_20' ) end [2025-03-12 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:47:20] Production.INFO: ==25544== Releasing lock... [2025-03-12 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:47:20] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:48:05 [end_date_ymd] => 2025-03-12 00:48:05 [RateCDR] => 1 ) [2025-03-12 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:48:05' and `end` < '2025-03-12 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:48:17] Production.INFO: count ==385 [2025-03-12 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:48:05 - End Time 2025-03-12 00:48:05 [2025-03-12 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660598', 'tblTempUsageDetail_20' ) start [2025-03-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660598', 'tblTempUsageDetail_20' ) end [2025-03-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660598', 'tblTempVendorCDR_20' ) start [2025-03-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660598', 'tblTempVendorCDR_20' ) end [2025-03-12 00:48:17] Production.INFO: ProcessCDR(1,14660598,1,1,2) [2025-03-12 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660598', 'tblTempUsageDetail_20' ) start [2025-03-12 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660598', 'tblTempUsageDetail_20' ) end [2025-03-12 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:48:21] Production.INFO: ==25624== Releasing lock... [2025-03-12 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:49:05 [end_date_ymd] => 2025-03-12 00:49:05 [RateCDR] => 1 ) [2025-03-12 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:49:05' and `end` < '2025-03-12 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:49:18] Production.INFO: count ==384 [2025-03-12 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:49:05 - End Time 2025-03-12 00:49:05 [2025-03-12 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660603', 'tblTempUsageDetail_20' ) start [2025-03-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660603', 'tblTempUsageDetail_20' ) end [2025-03-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660603', 'tblTempVendorCDR_20' ) start [2025-03-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660603', 'tblTempVendorCDR_20' ) end [2025-03-12 00:49:18] Production.INFO: ProcessCDR(1,14660603,1,1,2) [2025-03-12 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660603', 'tblTempUsageDetail_20' ) start [2025-03-12 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660603', 'tblTempUsageDetail_20' ) end [2025-03-12 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:49:21] Production.INFO: ==25750== Releasing lock... [2025-03-12 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:50:06 [end_date_ymd] => 2025-03-12 00:50:06 [RateCDR] => 1 ) [2025-03-12 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:50:06' and `end` < '2025-03-12 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:50:18] Production.INFO: count ==390 [2025-03-12 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:50:06 - End Time 2025-03-12 00:50:06 [2025-03-12 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660609', 'tblTempUsageDetail_20' ) start [2025-03-12 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660609', 'tblTempUsageDetail_20' ) end [2025-03-12 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660609', 'tblTempVendorCDR_20' ) start [2025-03-12 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660609', 'tblTempVendorCDR_20' ) end [2025-03-12 00:50:18] Production.INFO: ProcessCDR(1,14660609,1,1,2) [2025-03-12 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660609', 'tblTempUsageDetail_20' ) start [2025-03-12 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660609', 'tblTempUsageDetail_20' ) end [2025-03-12 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:50:21] Production.INFO: ==25864== Releasing lock... [2025-03-12 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:50:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:51:05 [end_date_ymd] => 2025-03-12 00:51:05 [RateCDR] => 1 ) [2025-03-12 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:51:05' and `end` < '2025-03-12 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:51:17] Production.INFO: count ==397 [2025-03-12 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:51:05 - End Time 2025-03-12 00:51:05 [2025-03-12 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660614', 'tblTempUsageDetail_20' ) start [2025-03-12 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660614', 'tblTempUsageDetail_20' ) end [2025-03-12 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660614', 'tblTempVendorCDR_20' ) start [2025-03-12 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660614', 'tblTempVendorCDR_20' ) end [2025-03-12 00:51:17] Production.INFO: ProcessCDR(1,14660614,1,1,2) [2025-03-12 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660614', 'tblTempUsageDetail_20' ) start [2025-03-12 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660614', 'tblTempUsageDetail_20' ) end [2025-03-12 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:51:20] Production.INFO: ==25963== Releasing lock... [2025-03-12 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:51:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:52:05 [end_date_ymd] => 2025-03-12 00:52:05 [RateCDR] => 1 ) [2025-03-12 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:52:05' and `end` < '2025-03-12 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:52:17] Production.INFO: count ==399 [2025-03-12 00:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:52:05 - End Time 2025-03-12 00:52:05 [2025-03-12 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660619', 'tblTempUsageDetail_20' ) start [2025-03-12 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660619', 'tblTempUsageDetail_20' ) end [2025-03-12 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660619', 'tblTempVendorCDR_20' ) start [2025-03-12 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660619', 'tblTempVendorCDR_20' ) end [2025-03-12 00:52:17] Production.INFO: ProcessCDR(1,14660619,1,1,2) [2025-03-12 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660619', 'tblTempUsageDetail_20' ) start [2025-03-12 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660619', 'tblTempUsageDetail_20' ) end [2025-03-12 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:52:20] Production.INFO: ==26033== Releasing lock... [2025-03-12 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:52:20] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:53:05 [end_date_ymd] => 2025-03-12 00:53:05 [RateCDR] => 1 ) [2025-03-12 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:53:05' and `end` < '2025-03-12 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:53:18] Production.INFO: count ==398 [2025-03-12 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:53:05 - End Time 2025-03-12 00:53:05 [2025-03-12 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660624', 'tblTempUsageDetail_20' ) start [2025-03-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660624', 'tblTempUsageDetail_20' ) end [2025-03-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660624', 'tblTempVendorCDR_20' ) start [2025-03-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660624', 'tblTempVendorCDR_20' ) end [2025-03-12 00:53:18] Production.INFO: ProcessCDR(1,14660624,1,1,2) [2025-03-12 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660624', 'tblTempUsageDetail_20' ) start [2025-03-12 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660624', 'tblTempUsageDetail_20' ) end [2025-03-12 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:53:21] Production.INFO: ==26105== Releasing lock... [2025-03-12 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:54:05 [end_date_ymd] => 2025-03-12 00:54:05 [RateCDR] => 1 ) [2025-03-12 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:54:05' and `end` < '2025-03-12 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:54:17] Production.INFO: count ==398 [2025-03-12 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:54:05 - End Time 2025-03-12 00:54:05 [2025-03-12 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660629', 'tblTempUsageDetail_20' ) start [2025-03-12 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660629', 'tblTempUsageDetail_20' ) end [2025-03-12 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660629', 'tblTempVendorCDR_20' ) start [2025-03-12 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660629', 'tblTempVendorCDR_20' ) end [2025-03-12 00:54:17] Production.INFO: ProcessCDR(1,14660629,1,1,2) [2025-03-12 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660629', 'tblTempUsageDetail_20' ) start [2025-03-12 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660629', 'tblTempUsageDetail_20' ) end [2025-03-12 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:54:20] Production.INFO: ==26180== Releasing lock... [2025-03-12 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:54:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:55:05 [end_date_ymd] => 2025-03-12 00:55:05 [RateCDR] => 1 ) [2025-03-12 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:55:05' and `end` < '2025-03-12 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:55:17] Production.INFO: count ==398 [2025-03-12 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:55:05 - End Time 2025-03-12 00:55:05 [2025-03-12 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660634', 'tblTempUsageDetail_20' ) start [2025-03-12 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660634', 'tblTempUsageDetail_20' ) end [2025-03-12 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660634', 'tblTempVendorCDR_20' ) start [2025-03-12 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660634', 'tblTempVendorCDR_20' ) end [2025-03-12 00:55:17] Production.INFO: ProcessCDR(1,14660634,1,1,2) [2025-03-12 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660634', 'tblTempUsageDetail_20' ) start [2025-03-12 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660634', 'tblTempUsageDetail_20' ) end [2025-03-12 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:55:20] Production.INFO: ==26251== Releasing lock... [2025-03-12 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:55:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:56:06 [end_date_ymd] => 2025-03-12 00:56:06 [RateCDR] => 1 ) [2025-03-12 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:56:06' and `end` < '2025-03-12 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:56:18] Production.INFO: count ==398 [2025-03-12 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:56:06 - End Time 2025-03-12 00:56:06 [2025-03-12 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660639', 'tblTempUsageDetail_20' ) start [2025-03-12 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660639', 'tblTempUsageDetail_20' ) end [2025-03-12 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660639', 'tblTempVendorCDR_20' ) start [2025-03-12 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660639', 'tblTempVendorCDR_20' ) end [2025-03-12 00:56:18] Production.INFO: ProcessCDR(1,14660639,1,1,2) [2025-03-12 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660639', 'tblTempUsageDetail_20' ) start [2025-03-12 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660639', 'tblTempUsageDetail_20' ) end [2025-03-12 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:56:21] Production.INFO: ==26328== Releasing lock... [2025-03-12 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:57:05 [end_date_ymd] => 2025-03-12 00:57:05 [RateCDR] => 1 ) [2025-03-12 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:57:05' and `end` < '2025-03-12 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:57:17] Production.INFO: count ==400 [2025-03-12 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:57:05 - End Time 2025-03-12 00:57:05 [2025-03-12 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660644', 'tblTempUsageDetail_20' ) start [2025-03-12 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660644', 'tblTempUsageDetail_20' ) end [2025-03-12 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660644', 'tblTempVendorCDR_20' ) start [2025-03-12 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660644', 'tblTempVendorCDR_20' ) end [2025-03-12 00:57:17] Production.INFO: ProcessCDR(1,14660644,1,1,2) [2025-03-12 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660644', 'tblTempUsageDetail_20' ) start [2025-03-12 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660644', 'tblTempUsageDetail_20' ) end [2025-03-12 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:57:22] Production.INFO: ==26398== Releasing lock... [2025-03-12 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:57:22] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:58:06 [end_date_ymd] => 2025-03-12 00:58:06 [RateCDR] => 1 ) [2025-03-12 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:58:06' and `end` < '2025-03-12 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:58:18] Production.INFO: count ==400 [2025-03-12 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-11 21:58:06 - End Time 2025-03-12 00:58:06 [2025-03-12 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660649', 'tblTempUsageDetail_20' ) start [2025-03-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660649', 'tblTempUsageDetail_20' ) end [2025-03-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660649', 'tblTempVendorCDR_20' ) start [2025-03-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660649', 'tblTempVendorCDR_20' ) end [2025-03-12 00:58:18] Production.INFO: ProcessCDR(1,14660649,1,1,2) [2025-03-12 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660649', 'tblTempUsageDetail_20' ) start [2025-03-12 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660649', 'tblTempUsageDetail_20' ) end [2025-03-12 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:58:21] Production.INFO: ==26475== Releasing lock... [2025-03-12 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:58:21] Production.INFO: 32 MB #Memory Used# [2025-03-12 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 21:59:05 [end_date_ymd] => 2025-03-12 00:59:05 [RateCDR] => 1 ) [2025-03-12 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 21:59:05' and `end` < '2025-03-12 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 00:59:17] Production.INFO: count ==394 [2025-03-12 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 21:59:05 - End Time 2025-03-12 00:59:05 [2025-03-12 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660654', 'tblTempUsageDetail_20' ) start [2025-03-12 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660654', 'tblTempUsageDetail_20' ) end [2025-03-12 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660654', 'tblTempVendorCDR_20' ) start [2025-03-12 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660654', 'tblTempVendorCDR_20' ) end [2025-03-12 00:59:17] Production.INFO: ProcessCDR(1,14660654,1,1,2) [2025-03-12 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660654', 'tblTempUsageDetail_20' ) start [2025-03-12 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660654', 'tblTempUsageDetail_20' ) end [2025-03-12 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 00:59:22] Production.INFO: ==26544== Releasing lock... [2025-03-12 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 00:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:00:06 [end_date_ymd] => 2025-03-12 01:00:06 [RateCDR] => 1 ) [2025-03-12 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:00:06' and `end` < '2025-03-12 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:00:19] Production.INFO: count ==400 [2025-03-12 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-11 22:00:06 - End Time 2025-03-12 01:00:06 [2025-03-12 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660660', 'tblTempUsageDetail_20' ) start [2025-03-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660660', 'tblTempUsageDetail_20' ) end [2025-03-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660660', 'tblTempVendorCDR_20' ) start [2025-03-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660660', 'tblTempVendorCDR_20' ) end [2025-03-12 01:00:19] Production.INFO: ProcessCDR(1,14660660,1,1,2) [2025-03-12 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660660', 'tblTempUsageDetail_20' ) start [2025-03-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660660', 'tblTempUsageDetail_20' ) end [2025-03-12 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:00:22] Production.INFO: ==26620== Releasing lock... [2025-03-12 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:01:05 [end_date_ymd] => 2025-03-12 01:01:05 [RateCDR] => 1 ) [2025-03-12 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:01:05' and `end` < '2025-03-12 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:01:17] Production.INFO: count ==399 [2025-03-12 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:01:05 - End Time 2025-03-12 01:01:05 [2025-03-12 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660665', 'tblTempUsageDetail_20' ) start [2025-03-12 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660665', 'tblTempUsageDetail_20' ) end [2025-03-12 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660665', 'tblTempVendorCDR_20' ) start [2025-03-12 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660665', 'tblTempVendorCDR_20' ) end [2025-03-12 01:01:17] Production.INFO: ProcessCDR(1,14660665,1,1,2) [2025-03-12 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660665', 'tblTempUsageDetail_20' ) start [2025-03-12 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660665', 'tblTempUsageDetail_20' ) end [2025-03-12 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:01:21] Production.INFO: ==26718== Releasing lock... [2025-03-12 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:02:05 [end_date_ymd] => 2025-03-12 01:02:05 [RateCDR] => 1 ) [2025-03-12 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:02:05' and `end` < '2025-03-12 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:02:17] Production.INFO: count ==399 [2025-03-12 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:02:05 - End Time 2025-03-12 01:02:05 [2025-03-12 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660670', 'tblTempUsageDetail_20' ) start [2025-03-12 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660670', 'tblTempUsageDetail_20' ) end [2025-03-12 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660670', 'tblTempVendorCDR_20' ) start [2025-03-12 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660670', 'tblTempVendorCDR_20' ) end [2025-03-12 01:02:17] Production.INFO: ProcessCDR(1,14660670,1,1,2) [2025-03-12 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660670', 'tblTempUsageDetail_20' ) start [2025-03-12 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660670', 'tblTempUsageDetail_20' ) end [2025-03-12 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:02:20] Production.INFO: ==26791== Releasing lock... [2025-03-12 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:02:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:03:05 [end_date_ymd] => 2025-03-12 01:03:05 [RateCDR] => 1 ) [2025-03-12 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:03:05' and `end` < '2025-03-12 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:03:17] Production.INFO: count ==394 [2025-03-12 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:03:05 - End Time 2025-03-12 01:03:05 [2025-03-12 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660675', 'tblTempUsageDetail_20' ) start [2025-03-12 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660675', 'tblTempUsageDetail_20' ) end [2025-03-12 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660675', 'tblTempVendorCDR_20' ) start [2025-03-12 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660675', 'tblTempVendorCDR_20' ) end [2025-03-12 01:03:17] Production.INFO: ProcessCDR(1,14660675,1,1,2) [2025-03-12 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660675', 'tblTempUsageDetail_20' ) start [2025-03-12 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660675', 'tblTempUsageDetail_20' ) end [2025-03-12 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:03:20] Production.INFO: ==26863== Releasing lock... [2025-03-12 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:03:20] Production.INFO: 32 MB #Memory Used# [2025-03-12 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:04:06 [end_date_ymd] => 2025-03-12 01:04:06 [RateCDR] => 1 ) [2025-03-12 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:04:06' and `end` < '2025-03-12 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:04:18] Production.INFO: count ==390 [2025-03-12 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:04:06 - End Time 2025-03-12 01:04:06 [2025-03-12 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660680', 'tblTempUsageDetail_20' ) start [2025-03-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660680', 'tblTempUsageDetail_20' ) end [2025-03-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660680', 'tblTempVendorCDR_20' ) start [2025-03-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660680', 'tblTempVendorCDR_20' ) end [2025-03-12 01:04:18] Production.INFO: ProcessCDR(1,14660680,1,1,2) [2025-03-12 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660680', 'tblTempUsageDetail_20' ) start [2025-03-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660680', 'tblTempUsageDetail_20' ) end [2025-03-12 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:04:21] Production.INFO: ==26934== Releasing lock... [2025-03-12 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:05:05 [end_date_ymd] => 2025-03-12 01:05:05 [RateCDR] => 1 ) [2025-03-12 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:05:05' and `end` < '2025-03-12 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:05:17] Production.INFO: count ==390 [2025-03-12 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:05:05 - End Time 2025-03-12 01:05:05 [2025-03-12 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660685', 'tblTempUsageDetail_20' ) start [2025-03-12 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660685', 'tblTempUsageDetail_20' ) end [2025-03-12 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660685', 'tblTempVendorCDR_20' ) start [2025-03-12 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660685', 'tblTempVendorCDR_20' ) end [2025-03-12 01:05:17] Production.INFO: ProcessCDR(1,14660685,1,1,2) [2025-03-12 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660685', 'tblTempUsageDetail_20' ) start [2025-03-12 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660685', 'tblTempUsageDetail_20' ) end [2025-03-12 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:05:20] Production.INFO: ==27006== Releasing lock... [2025-03-12 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:05:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:06:05 [end_date_ymd] => 2025-03-12 01:06:05 [RateCDR] => 1 ) [2025-03-12 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:06:05' and `end` < '2025-03-12 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:06:17] Production.INFO: count ==390 [2025-03-12 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:06:05 - End Time 2025-03-12 01:06:05 [2025-03-12 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660690', 'tblTempUsageDetail_20' ) start [2025-03-12 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660690', 'tblTempUsageDetail_20' ) end [2025-03-12 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660690', 'tblTempVendorCDR_20' ) start [2025-03-12 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660690', 'tblTempVendorCDR_20' ) end [2025-03-12 01:06:17] Production.INFO: ProcessCDR(1,14660690,1,1,2) [2025-03-12 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660690', 'tblTempUsageDetail_20' ) start [2025-03-12 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660690', 'tblTempUsageDetail_20' ) end [2025-03-12 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:06:21] Production.INFO: ==27077== Releasing lock... [2025-03-12 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:07:05 [end_date_ymd] => 2025-03-12 01:07:05 [RateCDR] => 1 ) [2025-03-12 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:07:05' and `end` < '2025-03-12 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:07:17] Production.INFO: count ==389 [2025-03-12 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:07:05 - End Time 2025-03-12 01:07:05 [2025-03-12 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660695', 'tblTempUsageDetail_20' ) start [2025-03-12 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660695', 'tblTempUsageDetail_20' ) end [2025-03-12 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660695', 'tblTempVendorCDR_20' ) start [2025-03-12 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660695', 'tblTempVendorCDR_20' ) end [2025-03-12 01:07:17] Production.INFO: ProcessCDR(1,14660695,1,1,2) [2025-03-12 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660695', 'tblTempUsageDetail_20' ) start [2025-03-12 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660695', 'tblTempUsageDetail_20' ) end [2025-03-12 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:07:20] Production.INFO: ==27148== Releasing lock... [2025-03-12 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:07:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:08:05 [end_date_ymd] => 2025-03-12 01:08:05 [RateCDR] => 1 ) [2025-03-12 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:08:05' and `end` < '2025-03-12 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:08:17] Production.INFO: count ==389 [2025-03-12 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:08:05 - End Time 2025-03-12 01:08:05 [2025-03-12 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660700', 'tblTempUsageDetail_20' ) start [2025-03-12 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660700', 'tblTempUsageDetail_20' ) end [2025-03-12 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660700', 'tblTempVendorCDR_20' ) start [2025-03-12 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660700', 'tblTempVendorCDR_20' ) end [2025-03-12 01:08:17] Production.INFO: ProcessCDR(1,14660700,1,1,2) [2025-03-12 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660700', 'tblTempUsageDetail_20' ) start [2025-03-12 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660700', 'tblTempUsageDetail_20' ) end [2025-03-12 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:08:20] Production.INFO: ==27221== Releasing lock... [2025-03-12 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:08:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:09:05 [end_date_ymd] => 2025-03-12 01:09:05 [RateCDR] => 1 ) [2025-03-12 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:09:05' and `end` < '2025-03-12 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:09:17] Production.INFO: count ==389 [2025-03-12 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:09:05 - End Time 2025-03-12 01:09:05 [2025-03-12 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660705', 'tblTempUsageDetail_20' ) start [2025-03-12 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660705', 'tblTempUsageDetail_20' ) end [2025-03-12 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660705', 'tblTempVendorCDR_20' ) start [2025-03-12 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660705', 'tblTempVendorCDR_20' ) end [2025-03-12 01:09:17] Production.INFO: ProcessCDR(1,14660705,1,1,2) [2025-03-12 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660705', 'tblTempUsageDetail_20' ) start [2025-03-12 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660705', 'tblTempUsageDetail_20' ) end [2025-03-12 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:09:20] Production.INFO: ==27292== Releasing lock... [2025-03-12 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:09:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:10:06 [end_date_ymd] => 2025-03-12 01:10:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 22:10:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 01:10:18] Production.INFO: count ==397 [2025-03-12 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:10:06 - End Time 2025-03-12 01:10:06 [2025-03-12 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660711', 'tblTempUsageDetail_20' ) start [2025-03-12 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660711', 'tblTempUsageDetail_20' ) end [2025-03-12 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660711', 'tblTempVendorCDR_20' ) start [2025-03-12 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660711', 'tblTempVendorCDR_20' ) end [2025-03-12 01:10:18] Production.INFO: ProcessCDR(1,14660711,1,1,2) [2025-03-12 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660711', 'tblTempUsageDetail_20' ) start [2025-03-12 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660711', 'tblTempUsageDetail_20' ) end [2025-03-12 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:10:22] Production.INFO: ==27366== Releasing lock... [2025-03-12 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:11:05 [end_date_ymd] => 2025-03-12 01:11:05 [RateCDR] => 1 ) [2025-03-12 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:11:05' and `end` < '2025-03-12 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:11:17] Production.INFO: count ==399 [2025-03-12 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:11:05 - End Time 2025-03-12 01:11:05 [2025-03-12 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660716', 'tblTempUsageDetail_20' ) start [2025-03-12 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660716', 'tblTempUsageDetail_20' ) end [2025-03-12 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660716', 'tblTempVendorCDR_20' ) start [2025-03-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660716', 'tblTempVendorCDR_20' ) end [2025-03-12 01:11:18] Production.INFO: ProcessCDR(1,14660716,1,1,2) [2025-03-12 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660716', 'tblTempUsageDetail_20' ) start [2025-03-12 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660716', 'tblTempUsageDetail_20' ) end [2025-03-12 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:11:21] Production.INFO: ==27446== Releasing lock... [2025-03-12 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:12:05 [end_date_ymd] => 2025-03-12 01:12:05 [RateCDR] => 1 ) [2025-03-12 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:12:05' and `end` < '2025-03-12 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:12:17] Production.INFO: count ==395 [2025-03-12 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:12:05 - End Time 2025-03-12 01:12:05 [2025-03-12 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660721', 'tblTempUsageDetail_20' ) start [2025-03-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660721', 'tblTempUsageDetail_20' ) end [2025-03-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660721', 'tblTempVendorCDR_20' ) start [2025-03-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660721', 'tblTempVendorCDR_20' ) end [2025-03-12 01:12:17] Production.INFO: ProcessCDR(1,14660721,1,1,2) [2025-03-12 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660721', 'tblTempUsageDetail_20' ) start [2025-03-12 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660721', 'tblTempUsageDetail_20' ) end [2025-03-12 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:12:21] Production.INFO: ==27521== Releasing lock... [2025-03-12 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:13:06 [end_date_ymd] => 2025-03-12 01:13:06 [RateCDR] => 1 ) [2025-03-12 01:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:13:06' and `end` < '2025-03-12 01:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:13:18] Production.INFO: count ==392 [2025-03-12 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:13:06 - End Time 2025-03-12 01:13:06 [2025-03-12 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660726', 'tblTempUsageDetail_20' ) start [2025-03-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660726', 'tblTempUsageDetail_20' ) end [2025-03-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660726', 'tblTempVendorCDR_20' ) start [2025-03-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660726', 'tblTempVendorCDR_20' ) end [2025-03-12 01:13:18] Production.INFO: ProcessCDR(1,14660726,1,1,2) [2025-03-12 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660726', 'tblTempUsageDetail_20' ) start [2025-03-12 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660726', 'tblTempUsageDetail_20' ) end [2025-03-12 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:13:21] Production.INFO: ==27590== Releasing lock... [2025-03-12 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:14:05 [end_date_ymd] => 2025-03-12 01:14:05 [RateCDR] => 1 ) [2025-03-12 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:14:05' and `end` < '2025-03-12 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:14:17] Production.INFO: count ==394 [2025-03-12 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:14:05 - End Time 2025-03-12 01:14:05 [2025-03-12 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660731', 'tblTempUsageDetail_20' ) start [2025-03-12 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660731', 'tblTempUsageDetail_20' ) end [2025-03-12 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660731', 'tblTempVendorCDR_20' ) start [2025-03-12 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660731', 'tblTempVendorCDR_20' ) end [2025-03-12 01:14:17] Production.INFO: ProcessCDR(1,14660731,1,1,2) [2025-03-12 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660731', 'tblTempUsageDetail_20' ) start [2025-03-12 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660731', 'tblTempUsageDetail_20' ) end [2025-03-12 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:14:20] Production.INFO: ==27660== Releasing lock... [2025-03-12 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:14:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:15:06 [end_date_ymd] => 2025-03-12 01:15:06 [RateCDR] => 1 ) [2025-03-12 01:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:15:06' and `end` < '2025-03-12 01:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:15:18] Production.INFO: count ==395 [2025-03-12 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:15:06 - End Time 2025-03-12 01:15:06 [2025-03-12 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660736', 'tblTempUsageDetail_20' ) start [2025-03-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660736', 'tblTempUsageDetail_20' ) end [2025-03-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660736', 'tblTempVendorCDR_20' ) start [2025-03-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660736', 'tblTempVendorCDR_20' ) end [2025-03-12 01:15:18] Production.INFO: ProcessCDR(1,14660736,1,1,2) [2025-03-12 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660736', 'tblTempUsageDetail_20' ) start [2025-03-12 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660736', 'tblTempUsageDetail_20' ) end [2025-03-12 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:15:21] Production.INFO: ==27733== Releasing lock... [2025-03-12 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:16:05 [end_date_ymd] => 2025-03-12 01:16:05 [RateCDR] => 1 ) [2025-03-12 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:16:05' and `end` < '2025-03-12 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:16:17] Production.INFO: count ==404 [2025-03-12 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:16:05 - End Time 2025-03-12 01:16:05 [2025-03-12 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660741', 'tblTempUsageDetail_20' ) start [2025-03-12 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660741', 'tblTempUsageDetail_20' ) end [2025-03-12 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660741', 'tblTempVendorCDR_20' ) start [2025-03-12 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660741', 'tblTempVendorCDR_20' ) end [2025-03-12 01:16:17] Production.INFO: ProcessCDR(1,14660741,1,1,2) [2025-03-12 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660741', 'tblTempUsageDetail_20' ) start [2025-03-12 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660741', 'tblTempUsageDetail_20' ) end [2025-03-12 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:16:21] Production.INFO: ==27804== Releasing lock... [2025-03-12 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-12 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:17:06 [end_date_ymd] => 2025-03-12 01:17:06 [RateCDR] => 1 ) [2025-03-12 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:17:06' and `end` < '2025-03-12 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:17:18] Production.INFO: count ==401 [2025-03-12 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:17:06 - End Time 2025-03-12 01:17:06 [2025-03-12 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660746', 'tblTempUsageDetail_20' ) start [2025-03-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660746', 'tblTempUsageDetail_20' ) end [2025-03-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660746', 'tblTempVendorCDR_20' ) start [2025-03-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660746', 'tblTempVendorCDR_20' ) end [2025-03-12 01:17:18] Production.INFO: ProcessCDR(1,14660746,1,1,2) [2025-03-12 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660746', 'tblTempUsageDetail_20' ) start [2025-03-12 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660746', 'tblTempUsageDetail_20' ) end [2025-03-12 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:17:21] Production.INFO: ==27875== Releasing lock... [2025-03-12 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:18:05 [end_date_ymd] => 2025-03-12 01:18:05 [RateCDR] => 1 ) [2025-03-12 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:18:05' and `end` < '2025-03-12 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:18:17] Production.INFO: count ==399 [2025-03-12 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:18:05 - End Time 2025-03-12 01:18:05 [2025-03-12 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660751', 'tblTempUsageDetail_20' ) start [2025-03-12 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660751', 'tblTempUsageDetail_20' ) end [2025-03-12 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660751', 'tblTempVendorCDR_20' ) start [2025-03-12 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660751', 'tblTempVendorCDR_20' ) end [2025-03-12 01:18:17] Production.INFO: ProcessCDR(1,14660751,1,1,2) [2025-03-12 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660751', 'tblTempUsageDetail_20' ) start [2025-03-12 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660751', 'tblTempUsageDetail_20' ) end [2025-03-12 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:18:21] Production.INFO: ==27958== Releasing lock... [2025-03-12 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:19:06 [end_date_ymd] => 2025-03-12 01:19:06 [RateCDR] => 1 ) [2025-03-12 01: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` >= '2025-03-11 22:19:06' and `end` < '2025-03-12 01: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 ,'') [2025-03-12 01:19:18] Production.INFO: count ==395 [2025-03-12 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:19:06 - End Time 2025-03-12 01:19:06 [2025-03-12 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660756', 'tblTempUsageDetail_20' ) start [2025-03-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660756', 'tblTempUsageDetail_20' ) end [2025-03-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660756', 'tblTempVendorCDR_20' ) start [2025-03-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660756', 'tblTempVendorCDR_20' ) end [2025-03-12 01:19:18] Production.INFO: ProcessCDR(1,14660756,1,1,2) [2025-03-12 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660756', 'tblTempUsageDetail_20' ) start [2025-03-12 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660756', 'tblTempUsageDetail_20' ) end [2025-03-12 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:19:21] Production.INFO: ==28032== Releasing lock... [2025-03-12 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:20:05 [end_date_ymd] => 2025-03-12 01:20:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 22:20:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 01:20:17] Production.INFO: count ==401 [2025-03-12 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:20:05 - End Time 2025-03-12 01:20:05 [2025-03-12 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660761', 'tblTempUsageDetail_20' ) start [2025-03-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660761', 'tblTempUsageDetail_20' ) end [2025-03-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660761', 'tblTempVendorCDR_20' ) start [2025-03-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660761', 'tblTempVendorCDR_20' ) end [2025-03-12 01:20:18] Production.INFO: ProcessCDR(1,14660761,1,1,2) [2025-03-12 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660761', 'tblTempUsageDetail_20' ) start [2025-03-12 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660761', 'tblTempUsageDetail_20' ) end [2025-03-12 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:20:21] Production.INFO: ==28110== Releasing lock... [2025-03-12 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:21:05 [end_date_ymd] => 2025-03-12 01:21:05 [RateCDR] => 1 ) [2025-03-12 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:21:05' and `end` < '2025-03-12 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:21:17] Production.INFO: count ==403 [2025-03-12 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:21:05 - End Time 2025-03-12 01:21:05 [2025-03-12 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660767', 'tblTempUsageDetail_20' ) start [2025-03-12 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660767', 'tblTempUsageDetail_20' ) end [2025-03-12 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660767', 'tblTempVendorCDR_20' ) start [2025-03-12 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660767', 'tblTempVendorCDR_20' ) end [2025-03-12 01:21:17] Production.INFO: ProcessCDR(1,14660767,1,1,2) [2025-03-12 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660767', 'tblTempUsageDetail_20' ) start [2025-03-12 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660767', 'tblTempUsageDetail_20' ) end [2025-03-12 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:21:21] Production.INFO: ==28183== Releasing lock... [2025-03-12 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:22:05 [end_date_ymd] => 2025-03-12 01:22:05 [RateCDR] => 1 ) [2025-03-12 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:22:05' and `end` < '2025-03-12 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:22:17] Production.INFO: count ==407 [2025-03-12 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:22:05 - End Time 2025-03-12 01:22:05 [2025-03-12 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660772', 'tblTempUsageDetail_20' ) start [2025-03-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660772', 'tblTempUsageDetail_20' ) end [2025-03-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660772', 'tblTempVendorCDR_20' ) start [2025-03-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660772', 'tblTempVendorCDR_20' ) end [2025-03-12 01:22:17] Production.INFO: ProcessCDR(1,14660772,1,1,2) [2025-03-12 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660772', 'tblTempUsageDetail_20' ) start [2025-03-12 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660772', 'tblTempUsageDetail_20' ) end [2025-03-12 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:22:21] Production.INFO: ==28253== Releasing lock... [2025-03-12 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:23:05 [end_date_ymd] => 2025-03-12 01:23:05 [RateCDR] => 1 ) [2025-03-12 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:23:05' and `end` < '2025-03-12 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:23:17] Production.INFO: count ==402 [2025-03-12 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:23:05 - End Time 2025-03-12 01:23:05 [2025-03-12 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660777', 'tblTempUsageDetail_20' ) start [2025-03-12 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660777', 'tblTempUsageDetail_20' ) end [2025-03-12 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660777', 'tblTempVendorCDR_20' ) start [2025-03-12 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660777', 'tblTempVendorCDR_20' ) end [2025-03-12 01:23:17] Production.INFO: ProcessCDR(1,14660777,1,1,2) [2025-03-12 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660777', 'tblTempUsageDetail_20' ) start [2025-03-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660777', 'tblTempUsageDetail_20' ) end [2025-03-12 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:23:21] Production.INFO: ==28325== Releasing lock... [2025-03-12 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:24:06 [end_date_ymd] => 2025-03-12 01:24:06 [RateCDR] => 1 ) [2025-03-12 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:24:06' and `end` < '2025-03-12 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:24:18] Production.INFO: count ==397 [2025-03-12 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:24:06 - End Time 2025-03-12 01:24:06 [2025-03-12 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660782', 'tblTempUsageDetail_20' ) start [2025-03-12 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660782', 'tblTempUsageDetail_20' ) end [2025-03-12 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660782', 'tblTempVendorCDR_20' ) start [2025-03-12 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660782', 'tblTempVendorCDR_20' ) end [2025-03-12 01:24:18] Production.INFO: ProcessCDR(1,14660782,1,1,2) [2025-03-12 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660782', 'tblTempUsageDetail_20' ) start [2025-03-12 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660782', 'tblTempUsageDetail_20' ) end [2025-03-12 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:24:21] Production.INFO: ==28399== Releasing lock... [2025-03-12 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:25:06 [end_date_ymd] => 2025-03-12 01:25:06 [RateCDR] => 1 ) [2025-03-12 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:25:06' and `end` < '2025-03-12 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:25:18] Production.INFO: count ==395 [2025-03-12 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:25:06 - End Time 2025-03-12 01:25:06 [2025-03-12 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660787', 'tblTempUsageDetail_20' ) start [2025-03-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660787', 'tblTempUsageDetail_20' ) end [2025-03-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660787', 'tblTempVendorCDR_20' ) start [2025-03-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660787', 'tblTempVendorCDR_20' ) end [2025-03-12 01:25:18] Production.INFO: ProcessCDR(1,14660787,1,1,2) [2025-03-12 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660787', 'tblTempUsageDetail_20' ) start [2025-03-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660787', 'tblTempUsageDetail_20' ) end [2025-03-12 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:25:21] Production.INFO: ==28470== Releasing lock... [2025-03-12 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:26:04 [end_date_ymd] => 2025-03-12 01:26:04 [RateCDR] => 1 ) [2025-03-12 01: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` >= '2025-03-11 22:26:04' and `end` < '2025-03-12 01: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 ,'') [2025-03-12 01:26:16] Production.INFO: count ==389 [2025-03-12 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:26:04 - End Time 2025-03-12 01:26:04 [2025-03-12 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660792', 'tblTempUsageDetail_20' ) start [2025-03-12 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660792', 'tblTempUsageDetail_20' ) end [2025-03-12 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660792', 'tblTempVendorCDR_20' ) start [2025-03-12 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660792', 'tblTempVendorCDR_20' ) end [2025-03-12 01:26:17] Production.INFO: ProcessCDR(1,14660792,1,1,2) [2025-03-12 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660792', 'tblTempUsageDetail_20' ) start [2025-03-12 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660792', 'tblTempUsageDetail_20' ) end [2025-03-12 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:26:21] Production.INFO: ==28540== Releasing lock... [2025-03-12 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:27:05 [end_date_ymd] => 2025-03-12 01:27:05 [RateCDR] => 1 ) [2025-03-12 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:27:05' and `end` < '2025-03-12 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:27:17] Production.INFO: count ==396 [2025-03-12 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:27:05 - End Time 2025-03-12 01:27:05 [2025-03-12 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660797', 'tblTempUsageDetail_20' ) start [2025-03-12 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660797', 'tblTempUsageDetail_20' ) end [2025-03-12 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660797', 'tblTempVendorCDR_20' ) start [2025-03-12 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660797', 'tblTempVendorCDR_20' ) end [2025-03-12 01:27:17] Production.INFO: ProcessCDR(1,14660797,1,1,2) [2025-03-12 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660797', 'tblTempUsageDetail_20' ) start [2025-03-12 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660797', 'tblTempUsageDetail_20' ) end [2025-03-12 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:27:21] Production.INFO: ==28651== Releasing lock... [2025-03-12 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:28:05 [end_date_ymd] => 2025-03-12 01:28:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 22:28:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 01:28:17] Production.INFO: count ==399 [2025-03-12 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:28:05 - End Time 2025-03-12 01:28:05 [2025-03-12 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660802', 'tblTempUsageDetail_20' ) start [2025-03-12 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660802', 'tblTempUsageDetail_20' ) end [2025-03-12 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660802', 'tblTempVendorCDR_20' ) start [2025-03-12 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660802', 'tblTempVendorCDR_20' ) end [2025-03-12 01:28:17] Production.INFO: ProcessCDR(1,14660802,1,1,2) [2025-03-12 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660802', 'tblTempUsageDetail_20' ) start [2025-03-12 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660802', 'tblTempUsageDetail_20' ) end [2025-03-12 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:28:20] Production.INFO: ==28725== Releasing lock... [2025-03-12 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:28:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:29:05 [end_date_ymd] => 2025-03-12 01:29:05 [RateCDR] => 1 ) [2025-03-12 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:29:05' and `end` < '2025-03-12 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:29:17] Production.INFO: count ==398 [2025-03-12 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:29:05 - End Time 2025-03-12 01:29:05 [2025-03-12 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660807', 'tblTempUsageDetail_20' ) start [2025-03-12 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660807', 'tblTempUsageDetail_20' ) end [2025-03-12 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660807', 'tblTempVendorCDR_20' ) start [2025-03-12 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660807', 'tblTempVendorCDR_20' ) end [2025-03-12 01:29:17] Production.INFO: ProcessCDR(1,14660807,1,1,2) [2025-03-12 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660807', 'tblTempUsageDetail_20' ) start [2025-03-12 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660807', 'tblTempUsageDetail_20' ) end [2025-03-12 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:29:20] Production.INFO: ==28797== Releasing lock... [2025-03-12 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:30:05 [end_date_ymd] => 2025-03-12 01:30:05 [RateCDR] => 1 ) [2025-03-12 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:30:05' and `end` < '2025-03-12 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:30:17] Production.INFO: count ==403 [2025-03-12 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:30:05 - End Time 2025-03-12 01:30:05 [2025-03-12 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660813', 'tblTempUsageDetail_20' ) start [2025-03-12 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660813', 'tblTempUsageDetail_20' ) end [2025-03-12 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660813', 'tblTempVendorCDR_20' ) start [2025-03-12 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660813', 'tblTempVendorCDR_20' ) end [2025-03-12 01:30:18] Production.INFO: ProcessCDR(1,14660813,1,1,2) [2025-03-12 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660813', 'tblTempUsageDetail_20' ) start [2025-03-12 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660813', 'tblTempUsageDetail_20' ) end [2025-03-12 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:30:21] Production.INFO: ==28870== Releasing lock... [2025-03-12 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:31:05 [end_date_ymd] => 2025-03-12 01:31:05 [RateCDR] => 1 ) [2025-03-12 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:31:05' and `end` < '2025-03-12 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:31:17] Production.INFO: count ==409 [2025-03-12 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:31:05 - End Time 2025-03-12 01:31:05 [2025-03-12 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660818', 'tblTempUsageDetail_20' ) start [2025-03-12 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660818', 'tblTempUsageDetail_20' ) end [2025-03-12 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660818', 'tblTempVendorCDR_20' ) start [2025-03-12 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660818', 'tblTempVendorCDR_20' ) end [2025-03-12 01:31:17] Production.INFO: ProcessCDR(1,14660818,1,1,2) [2025-03-12 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660818', 'tblTempUsageDetail_20' ) start [2025-03-12 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660818', 'tblTempUsageDetail_20' ) end [2025-03-12 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:31:20] Production.INFO: ==28942== Releasing lock... [2025-03-12 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:31:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:32:05 [end_date_ymd] => 2025-03-12 01:32:05 [RateCDR] => 1 ) [2025-03-12 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:32:05' and `end` < '2025-03-12 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:32:17] Production.INFO: count ==408 [2025-03-12 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:32:05 - End Time 2025-03-12 01:32:05 [2025-03-12 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660823', 'tblTempUsageDetail_20' ) start [2025-03-12 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660823', 'tblTempUsageDetail_20' ) end [2025-03-12 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660823', 'tblTempVendorCDR_20' ) start [2025-03-12 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660823', 'tblTempVendorCDR_20' ) end [2025-03-12 01:32:17] Production.INFO: ProcessCDR(1,14660823,1,1,2) [2025-03-12 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660823', 'tblTempUsageDetail_20' ) start [2025-03-12 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660823', 'tblTempUsageDetail_20' ) end [2025-03-12 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:32:20] Production.INFO: ==29014== Releasing lock... [2025-03-12 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:32:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:33:06 [end_date_ymd] => 2025-03-12 01:33:06 [RateCDR] => 1 ) [2025-03-12 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:33:06' and `end` < '2025-03-12 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:33:18] Production.INFO: count ==407 [2025-03-12 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:33:06 - End Time 2025-03-12 01:33:06 [2025-03-12 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660828', 'tblTempUsageDetail_20' ) start [2025-03-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660828', 'tblTempUsageDetail_20' ) end [2025-03-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660828', 'tblTempVendorCDR_20' ) start [2025-03-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660828', 'tblTempVendorCDR_20' ) end [2025-03-12 01:33:18] Production.INFO: ProcessCDR(1,14660828,1,1,2) [2025-03-12 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660828', 'tblTempUsageDetail_20' ) start [2025-03-12 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660828', 'tblTempUsageDetail_20' ) end [2025-03-12 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:33:21] Production.INFO: ==29084== Releasing lock... [2025-03-12 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:34:05 [end_date_ymd] => 2025-03-12 01:34:05 [RateCDR] => 1 ) [2025-03-12 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:34:05' and `end` < '2025-03-12 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:34:16] Production.INFO: count ==410 [2025-03-12 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:34:05 - End Time 2025-03-12 01:34:05 [2025-03-12 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660833', 'tblTempUsageDetail_20' ) start [2025-03-12 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660833', 'tblTempUsageDetail_20' ) end [2025-03-12 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660833', 'tblTempVendorCDR_20' ) start [2025-03-12 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660833', 'tblTempVendorCDR_20' ) end [2025-03-12 01:34:17] Production.INFO: ProcessCDR(1,14660833,1,1,2) [2025-03-12 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660833', 'tblTempUsageDetail_20' ) start [2025-03-12 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660833', 'tblTempUsageDetail_20' ) end [2025-03-12 01:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:34:20] Production.INFO: ==29156== Releasing lock... [2025-03-12 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:34:20] Production.INFO: 32 MB #Memory Used# [2025-03-12 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:35:05 [end_date_ymd] => 2025-03-12 01:35:05 [RateCDR] => 1 ) [2025-03-12 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:35:05' and `end` < '2025-03-12 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:35:17] Production.INFO: count ==399 [2025-03-12 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:35:05 - End Time 2025-03-12 01:35:05 [2025-03-12 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660838', 'tblTempUsageDetail_20' ) start [2025-03-12 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660838', 'tblTempUsageDetail_20' ) end [2025-03-12 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660838', 'tblTempVendorCDR_20' ) start [2025-03-12 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660838', 'tblTempVendorCDR_20' ) end [2025-03-12 01:35:17] Production.INFO: ProcessCDR(1,14660838,1,1,2) [2025-03-12 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660838', 'tblTempUsageDetail_20' ) start [2025-03-12 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660838', 'tblTempUsageDetail_20' ) end [2025-03-12 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:35:21] Production.INFO: ==29230== Releasing lock... [2025-03-12 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:36:05 [end_date_ymd] => 2025-03-12 01:36:05 [RateCDR] => 1 ) [2025-03-12 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:36:05' and `end` < '2025-03-12 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:36:17] Production.INFO: count ==391 [2025-03-12 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:36:05 - End Time 2025-03-12 01:36:05 [2025-03-12 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660843', 'tblTempUsageDetail_20' ) start [2025-03-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660843', 'tblTempUsageDetail_20' ) end [2025-03-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660843', 'tblTempVendorCDR_20' ) start [2025-03-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660843', 'tblTempVendorCDR_20' ) end [2025-03-12 01:36:18] Production.INFO: ProcessCDR(1,14660843,1,1,2) [2025-03-12 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660843', 'tblTempUsageDetail_20' ) start [2025-03-12 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660843', 'tblTempUsageDetail_20' ) end [2025-03-12 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:36:22] Production.INFO: ==29308== Releasing lock... [2025-03-12 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:37:05 [end_date_ymd] => 2025-03-12 01:37:05 [RateCDR] => 1 ) [2025-03-12 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:37:05' and `end` < '2025-03-12 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:37:17] Production.INFO: count ==383 [2025-03-12 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:37:05 - End Time 2025-03-12 01:37:05 [2025-03-12 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660848', 'tblTempUsageDetail_20' ) start [2025-03-12 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660848', 'tblTempUsageDetail_20' ) end [2025-03-12 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660848', 'tblTempVendorCDR_20' ) start [2025-03-12 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660848', 'tblTempVendorCDR_20' ) end [2025-03-12 01:37:17] Production.INFO: ProcessCDR(1,14660848,1,1,2) [2025-03-12 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660848', 'tblTempUsageDetail_20' ) start [2025-03-12 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660848', 'tblTempUsageDetail_20' ) end [2025-03-12 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:37:22] Production.INFO: ==29389== Releasing lock... [2025-03-12 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:38:06 [end_date_ymd] => 2025-03-12 01:38:06 [RateCDR] => 1 ) [2025-03-12 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:38:06' and `end` < '2025-03-12 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:38:18] Production.INFO: count ==382 [2025-03-12 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:38:06 - End Time 2025-03-12 01:38:06 [2025-03-12 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660851', 'tblTempUsageDetail_20' ) start [2025-03-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660851', 'tblTempUsageDetail_20' ) end [2025-03-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660851', 'tblTempVendorCDR_20' ) start [2025-03-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660851', 'tblTempVendorCDR_20' ) end [2025-03-12 01:38:18] Production.INFO: ProcessCDR(1,14660851,1,1,2) [2025-03-12 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660851', 'tblTempUsageDetail_20' ) start [2025-03-12 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660851', 'tblTempUsageDetail_20' ) end [2025-03-12 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:38:21] Production.INFO: ==29491== Releasing lock... [2025-03-12 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:39:05 [end_date_ymd] => 2025-03-12 01:39:05 [RateCDR] => 1 ) [2025-03-12 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:39:05' and `end` < '2025-03-12 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:39:17] Production.INFO: count ==382 [2025-03-12 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:39:05 - End Time 2025-03-12 01:39:05 [2025-03-12 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660858', 'tblTempUsageDetail_20' ) start [2025-03-12 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660858', 'tblTempUsageDetail_20' ) end [2025-03-12 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660858', 'tblTempVendorCDR_20' ) start [2025-03-12 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660858', 'tblTempVendorCDR_20' ) end [2025-03-12 01:39:17] Production.INFO: ProcessCDR(1,14660858,1,1,2) [2025-03-12 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660858', 'tblTempUsageDetail_20' ) start [2025-03-12 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660858', 'tblTempUsageDetail_20' ) end [2025-03-12 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:39:21] Production.INFO: ==29587== Releasing lock... [2025-03-12 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:40:05 [end_date_ymd] => 2025-03-12 01:40:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 22:40:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 01:40:18] Production.INFO: count ==389 [2025-03-12 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:40:05 - End Time 2025-03-12 01:40:05 [2025-03-12 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660863', 'tblTempUsageDetail_20' ) start [2025-03-12 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660863', 'tblTempUsageDetail_20' ) end [2025-03-12 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660863', 'tblTempVendorCDR_20' ) start [2025-03-12 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660863', 'tblTempVendorCDR_20' ) end [2025-03-12 01:40:18] Production.INFO: ProcessCDR(1,14660863,1,1,2) [2025-03-12 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660863', 'tblTempUsageDetail_20' ) start [2025-03-12 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660863', 'tblTempUsageDetail_20' ) end [2025-03-12 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:40:23] Production.INFO: ==29692== Releasing lock... [2025-03-12 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:41:05 [end_date_ymd] => 2025-03-12 01:41:05 [RateCDR] => 1 ) [2025-03-12 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:41:05' and `end` < '2025-03-12 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:41:17] Production.INFO: count ==388 [2025-03-12 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:41:05 - End Time 2025-03-12 01:41:05 [2025-03-12 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660869', 'tblTempUsageDetail_20' ) start [2025-03-12 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660869', 'tblTempUsageDetail_20' ) end [2025-03-12 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660869', 'tblTempVendorCDR_20' ) start [2025-03-12 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660869', 'tblTempVendorCDR_20' ) end [2025-03-12 01:41:17] Production.INFO: ProcessCDR(1,14660869,1,1,2) [2025-03-12 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660869', 'tblTempUsageDetail_20' ) start [2025-03-12 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660869', 'tblTempUsageDetail_20' ) end [2025-03-12 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:41:20] Production.INFO: ==29793== Releasing lock... [2025-03-12 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:42:06 [end_date_ymd] => 2025-03-12 01:42:06 [RateCDR] => 1 ) [2025-03-12 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:42:06' and `end` < '2025-03-12 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:42:18] Production.INFO: count ==384 [2025-03-12 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:42:06 - End Time 2025-03-12 01:42:06 [2025-03-12 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660874', 'tblTempUsageDetail_20' ) start [2025-03-12 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660874', 'tblTempUsageDetail_20' ) end [2025-03-12 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660874', 'tblTempVendorCDR_20' ) start [2025-03-12 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660874', 'tblTempVendorCDR_20' ) end [2025-03-12 01:42:18] Production.INFO: ProcessCDR(1,14660874,1,1,2) [2025-03-12 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660874', 'tblTempUsageDetail_20' ) start [2025-03-12 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660874', 'tblTempUsageDetail_20' ) end [2025-03-12 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:42:21] Production.INFO: ==29889== Releasing lock... [2025-03-12 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:43:05 [end_date_ymd] => 2025-03-12 01:43:05 [RateCDR] => 1 ) [2025-03-12 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:43:05' and `end` < '2025-03-12 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:43:17] Production.INFO: count ==381 [2025-03-12 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:43:05 - End Time 2025-03-12 01:43:05 [2025-03-12 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660879', 'tblTempUsageDetail_20' ) start [2025-03-12 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660879', 'tblTempUsageDetail_20' ) end [2025-03-12 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660879', 'tblTempVendorCDR_20' ) start [2025-03-12 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660879', 'tblTempVendorCDR_20' ) end [2025-03-12 01:43:17] Production.INFO: ProcessCDR(1,14660879,1,1,2) [2025-03-12 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660879', 'tblTempUsageDetail_20' ) start [2025-03-12 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660879', 'tblTempUsageDetail_20' ) end [2025-03-12 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:43:21] Production.INFO: ==30026== Releasing lock... [2025-03-12 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:44:05 [end_date_ymd] => 2025-03-12 01:44:05 [RateCDR] => 1 ) [2025-03-12 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:44:05' and `end` < '2025-03-12 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:44:17] Production.INFO: count ==380 [2025-03-12 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:44:05 - End Time 2025-03-12 01:44:05 [2025-03-12 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660884', 'tblTempUsageDetail_20' ) start [2025-03-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660884', 'tblTempUsageDetail_20' ) end [2025-03-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660884', 'tblTempVendorCDR_20' ) start [2025-03-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660884', 'tblTempVendorCDR_20' ) end [2025-03-12 01:44:18] Production.INFO: ProcessCDR(1,14660884,1,1,2) [2025-03-12 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660884', 'tblTempUsageDetail_20' ) start [2025-03-12 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660884', 'tblTempUsageDetail_20' ) end [2025-03-12 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:44:21] Production.INFO: ==30129== Releasing lock... [2025-03-12 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:45:05 [end_date_ymd] => 2025-03-12 01:45:05 [RateCDR] => 1 ) [2025-03-12 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:45:05' and `end` < '2025-03-12 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:45:17] Production.INFO: count ==379 [2025-03-12 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:45:05 - End Time 2025-03-12 01:45:05 [2025-03-12 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660889', 'tblTempUsageDetail_20' ) start [2025-03-12 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660889', 'tblTempUsageDetail_20' ) end [2025-03-12 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660889', 'tblTempVendorCDR_20' ) start [2025-03-12 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660889', 'tblTempVendorCDR_20' ) end [2025-03-12 01:45:17] Production.INFO: ProcessCDR(1,14660889,1,1,2) [2025-03-12 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660889', 'tblTempUsageDetail_20' ) start [2025-03-12 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660889', 'tblTempUsageDetail_20' ) end [2025-03-12 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:45:20] Production.INFO: ==30226== Releasing lock... [2025-03-12 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:45:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:46:05 [end_date_ymd] => 2025-03-12 01:46:05 [RateCDR] => 1 ) [2025-03-12 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:46:05' and `end` < '2025-03-12 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:46:17] Production.INFO: count ==377 [2025-03-12 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:46:05 - End Time 2025-03-12 01:46:05 [2025-03-12 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660894', 'tblTempUsageDetail_20' ) start [2025-03-12 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660894', 'tblTempUsageDetail_20' ) end [2025-03-12 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660894', 'tblTempVendorCDR_20' ) start [2025-03-12 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660894', 'tblTempVendorCDR_20' ) end [2025-03-12 01:46:17] Production.INFO: ProcessCDR(1,14660894,1,1,2) [2025-03-12 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660894', 'tblTempUsageDetail_20' ) start [2025-03-12 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660894', 'tblTempUsageDetail_20' ) end [2025-03-12 01:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:46:20] Production.INFO: ==30323== Releasing lock... [2025-03-12 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:46:20] Production.INFO: 31 MB #Memory Used# [2025-03-12 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:47:05 [end_date_ymd] => 2025-03-12 01:47:05 [RateCDR] => 1 ) [2025-03-12 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:47:05' and `end` < '2025-03-12 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:47:17] Production.INFO: count ==375 [2025-03-12 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:47:05 - End Time 2025-03-12 01:47:05 [2025-03-12 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660899', 'tblTempUsageDetail_20' ) start [2025-03-12 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660899', 'tblTempUsageDetail_20' ) end [2025-03-12 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660899', 'tblTempVendorCDR_20' ) start [2025-03-12 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660899', 'tblTempVendorCDR_20' ) end [2025-03-12 01:47:17] Production.INFO: ProcessCDR(1,14660899,1,1,2) [2025-03-12 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660899', 'tblTempUsageDetail_20' ) start [2025-03-12 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660899', 'tblTempUsageDetail_20' ) end [2025-03-12 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:47:20] Production.INFO: ==30419== Releasing lock... [2025-03-12 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:47:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:48:05 [end_date_ymd] => 2025-03-12 01:48:05 [RateCDR] => 1 ) [2025-03-12 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:48:05' and `end` < '2025-03-12 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:48:17] Production.INFO: count ==373 [2025-03-12 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:48:05 - End Time 2025-03-12 01:48:05 [2025-03-12 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660904', 'tblTempUsageDetail_20' ) start [2025-03-12 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660904', 'tblTempUsageDetail_20' ) end [2025-03-12 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660904', 'tblTempVendorCDR_20' ) start [2025-03-12 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660904', 'tblTempVendorCDR_20' ) end [2025-03-12 01:48:17] Production.INFO: ProcessCDR(1,14660904,1,1,2) [2025-03-12 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660904', 'tblTempUsageDetail_20' ) start [2025-03-12 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660904', 'tblTempUsageDetail_20' ) end [2025-03-12 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:48:21] Production.INFO: ==30518== Releasing lock... [2025-03-12 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:49:05 [end_date_ymd] => 2025-03-12 01:49:05 [RateCDR] => 1 ) [2025-03-12 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:49:05' and `end` < '2025-03-12 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:49:17] Production.INFO: count ==372 [2025-03-12 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:49:05 - End Time 2025-03-12 01:49:05 [2025-03-12 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660909', 'tblTempUsageDetail_20' ) start [2025-03-12 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660909', 'tblTempUsageDetail_20' ) end [2025-03-12 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660909', 'tblTempVendorCDR_20' ) start [2025-03-12 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660909', 'tblTempVendorCDR_20' ) end [2025-03-12 01:49:17] Production.INFO: ProcessCDR(1,14660909,1,1,2) [2025-03-12 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660909', 'tblTempUsageDetail_20' ) start [2025-03-12 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660909', 'tblTempUsageDetail_20' ) end [2025-03-12 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:49:21] Production.INFO: ==30629== Releasing lock... [2025-03-12 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:50:06 [end_date_ymd] => 2025-03-12 01:50:06 [RateCDR] => 1 ) [2025-03-12 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:50:06' and `end` < '2025-03-12 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:50:18] Production.INFO: count ==378 [2025-03-12 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:50:06 - End Time 2025-03-12 01:50:06 [2025-03-12 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660915', 'tblTempUsageDetail_20' ) start [2025-03-12 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660915', 'tblTempUsageDetail_20' ) end [2025-03-12 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660915', 'tblTempVendorCDR_20' ) start [2025-03-12 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660915', 'tblTempVendorCDR_20' ) end [2025-03-12 01:50:18] Production.INFO: ProcessCDR(1,14660915,1,1,2) [2025-03-12 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660915', 'tblTempUsageDetail_20' ) start [2025-03-12 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660915', 'tblTempUsageDetail_20' ) end [2025-03-12 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:50:21] Production.INFO: ==30740== Releasing lock... [2025-03-12 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:51:06 [end_date_ymd] => 2025-03-12 01:51:06 [RateCDR] => 1 ) [2025-03-12 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:51:06' and `end` < '2025-03-12 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:51:18] Production.INFO: count ==383 [2025-03-12 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:51:06 - End Time 2025-03-12 01:51:06 [2025-03-12 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660920', 'tblTempUsageDetail_20' ) start [2025-03-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660920', 'tblTempUsageDetail_20' ) end [2025-03-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660920', 'tblTempVendorCDR_20' ) start [2025-03-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660920', 'tblTempVendorCDR_20' ) end [2025-03-12 01:51:18] Production.INFO: ProcessCDR(1,14660920,1,1,2) [2025-03-12 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660920', 'tblTempUsageDetail_20' ) start [2025-03-12 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660920', 'tblTempUsageDetail_20' ) end [2025-03-12 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:51:21] Production.INFO: ==30856== Releasing lock... [2025-03-12 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:52:05 [end_date_ymd] => 2025-03-12 01:52:05 [RateCDR] => 1 ) [2025-03-12 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:52:05' and `end` < '2025-03-12 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:52:17] Production.INFO: count ==383 [2025-03-12 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:52:05 - End Time 2025-03-12 01:52:05 [2025-03-12 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660924', 'tblTempUsageDetail_20' ) start [2025-03-12 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660924', 'tblTempUsageDetail_20' ) end [2025-03-12 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660924', 'tblTempVendorCDR_20' ) start [2025-03-12 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660924', 'tblTempVendorCDR_20' ) end [2025-03-12 01:52:17] Production.INFO: ProcessCDR(1,14660924,1,1,2) [2025-03-12 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660924', 'tblTempUsageDetail_20' ) start [2025-03-12 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660924', 'tblTempUsageDetail_20' ) end [2025-03-12 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:52:20] Production.INFO: ==30968== Releasing lock... [2025-03-12 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:52:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:53:06 [end_date_ymd] => 2025-03-12 01:53:06 [RateCDR] => 1 ) [2025-03-12 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:53:06' and `end` < '2025-03-12 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:53:18] Production.INFO: count ==383 [2025-03-12 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-11 22:53:06 - End Time 2025-03-12 01:53:06 [2025-03-12 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660930', 'tblTempUsageDetail_20' ) start [2025-03-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660930', 'tblTempUsageDetail_20' ) end [2025-03-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660930', 'tblTempVendorCDR_20' ) start [2025-03-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660930', 'tblTempVendorCDR_20' ) end [2025-03-12 01:53:18] Production.INFO: ProcessCDR(1,14660930,1,1,2) [2025-03-12 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660930', 'tblTempUsageDetail_20' ) start [2025-03-12 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660930', 'tblTempUsageDetail_20' ) end [2025-03-12 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:53:21] Production.INFO: ==31079== Releasing lock... [2025-03-12 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:54:05 [end_date_ymd] => 2025-03-12 01:54:05 [RateCDR] => 1 ) [2025-03-12 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:54:05' and `end` < '2025-03-12 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:54:17] Production.INFO: count ==384 [2025-03-12 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:54:05 - End Time 2025-03-12 01:54:05 [2025-03-12 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660935', 'tblTempUsageDetail_20' ) start [2025-03-12 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660935', 'tblTempUsageDetail_20' ) end [2025-03-12 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660935', 'tblTempVendorCDR_20' ) start [2025-03-12 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660935', 'tblTempVendorCDR_20' ) end [2025-03-12 01:54:17] Production.INFO: ProcessCDR(1,14660935,1,1,2) [2025-03-12 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660935', 'tblTempUsageDetail_20' ) start [2025-03-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660935', 'tblTempUsageDetail_20' ) end [2025-03-12 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:54:22] Production.INFO: ==31185== Releasing lock... [2025-03-12 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:55:05 [end_date_ymd] => 2025-03-12 01:55:05 [RateCDR] => 1 ) [2025-03-12 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:55:05' and `end` < '2025-03-12 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:55:17] Production.INFO: count ==383 [2025-03-12 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:55:05 - End Time 2025-03-12 01:55:05 [2025-03-12 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660940', 'tblTempUsageDetail_20' ) start [2025-03-12 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660940', 'tblTempUsageDetail_20' ) end [2025-03-12 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660940', 'tblTempVendorCDR_20' ) start [2025-03-12 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660940', 'tblTempVendorCDR_20' ) end [2025-03-12 01:55:17] Production.INFO: ProcessCDR(1,14660940,1,1,2) [2025-03-12 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660940', 'tblTempUsageDetail_20' ) start [2025-03-12 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660940', 'tblTempUsageDetail_20' ) end [2025-03-12 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:55:21] Production.INFO: ==31280== Releasing lock... [2025-03-12 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:56:05 [end_date_ymd] => 2025-03-12 01:56:05 [RateCDR] => 1 ) [2025-03-12 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:56:05' and `end` < '2025-03-12 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:56:17] Production.INFO: count ==383 [2025-03-12 01:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:56:05 - End Time 2025-03-12 01:56:05 [2025-03-12 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660945', 'tblTempUsageDetail_20' ) start [2025-03-12 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660945', 'tblTempUsageDetail_20' ) end [2025-03-12 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660945', 'tblTempVendorCDR_20' ) start [2025-03-12 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660945', 'tblTempVendorCDR_20' ) end [2025-03-12 01:56:17] Production.INFO: ProcessCDR(1,14660945,1,1,2) [2025-03-12 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660945', 'tblTempUsageDetail_20' ) start [2025-03-12 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660945', 'tblTempUsageDetail_20' ) end [2025-03-12 01:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:56:20] Production.INFO: ==31351== Releasing lock... [2025-03-12 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:56:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:57:05 [end_date_ymd] => 2025-03-12 01:57:05 [RateCDR] => 1 ) [2025-03-12 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:57:05' and `end` < '2025-03-12 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:57:17] Production.INFO: count ==383 [2025-03-12 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:57:05 - End Time 2025-03-12 01:57:05 [2025-03-12 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660950', 'tblTempUsageDetail_20' ) start [2025-03-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660950', 'tblTempUsageDetail_20' ) end [2025-03-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660950', 'tblTempVendorCDR_20' ) start [2025-03-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660950', 'tblTempVendorCDR_20' ) end [2025-03-12 01:57:18] Production.INFO: ProcessCDR(1,14660950,1,1,2) [2025-03-12 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660950', 'tblTempUsageDetail_20' ) start [2025-03-12 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660950', 'tblTempUsageDetail_20' ) end [2025-03-12 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:57:21] Production.INFO: ==31421== Releasing lock... [2025-03-12 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:58:05 [end_date_ymd] => 2025-03-12 01:58:05 [RateCDR] => 1 ) [2025-03-12 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 22:58:05' and `end` < '2025-03-12 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 01:58:17] Production.INFO: count ==382 [2025-03-12 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:58:05 - End Time 2025-03-12 01:58:05 [2025-03-12 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660955', 'tblTempUsageDetail_20' ) start [2025-03-12 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660955', 'tblTempUsageDetail_20' ) end [2025-03-12 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660955', 'tblTempVendorCDR_20' ) start [2025-03-12 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660955', 'tblTempVendorCDR_20' ) end [2025-03-12 01:58:17] Production.INFO: ProcessCDR(1,14660955,1,1,2) [2025-03-12 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660955', 'tblTempUsageDetail_20' ) start [2025-03-12 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660955', 'tblTempUsageDetail_20' ) end [2025-03-12 01:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:58:20] Production.INFO: ==31531== Releasing lock... [2025-03-12 01:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:58:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 22:59:05 [end_date_ymd] => 2025-03-12 01:59:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 22:59:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 01:59:17] Production.INFO: count ==382 [2025-03-12 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-11 22:59:05 - End Time 2025-03-12 01:59:05 [2025-03-12 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660960', 'tblTempUsageDetail_20' ) start [2025-03-12 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660960', 'tblTempUsageDetail_20' ) end [2025-03-12 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660960', 'tblTempVendorCDR_20' ) start [2025-03-12 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660960', 'tblTempVendorCDR_20' ) end [2025-03-12 01:59:17] Production.INFO: ProcessCDR(1,14660960,1,1,2) [2025-03-12 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660960', 'tblTempUsageDetail_20' ) start [2025-03-12 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660960', 'tblTempUsageDetail_20' ) end [2025-03-12 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 01:59:21] Production.INFO: ==31607== Releasing lock... [2025-03-12 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 01:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:00:06 [end_date_ymd] => 2025-03-12 02:00:06 [RateCDR] => 1 ) [2025-03-12 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:00:06' and `end` < '2025-03-12 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:00:18] Production.INFO: count ==382 [2025-03-12 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:00:06 - End Time 2025-03-12 02:00:06 [2025-03-12 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660966', 'tblTempUsageDetail_20' ) start [2025-03-12 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660966', 'tblTempUsageDetail_20' ) end [2025-03-12 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660966', 'tblTempVendorCDR_20' ) start [2025-03-12 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660966', 'tblTempVendorCDR_20' ) end [2025-03-12 02:00:18] Production.INFO: ProcessCDR(1,14660966,1,1,2) [2025-03-12 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660966', 'tblTempUsageDetail_20' ) start [2025-03-12 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660966', 'tblTempUsageDetail_20' ) end [2025-03-12 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:00:22] Production.INFO: ==31679== Releasing lock... [2025-03-12 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:00:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:01:05 [end_date_ymd] => 2025-03-12 02:01:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:01:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:01:17] Production.INFO: count ==377 [2025-03-12 02:01:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:01:05 - End Time 2025-03-12 02:01:05 [2025-03-12 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660971', 'tblTempUsageDetail_20' ) start [2025-03-12 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660971', 'tblTempUsageDetail_20' ) end [2025-03-12 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660971', 'tblTempVendorCDR_20' ) start [2025-03-12 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660971', 'tblTempVendorCDR_20' ) end [2025-03-12 02:01:17] Production.INFO: ProcessCDR(1,14660971,1,1,2) [2025-03-12 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660971', 'tblTempUsageDetail_20' ) start [2025-03-12 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660971', 'tblTempUsageDetail_20' ) end [2025-03-12 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:01:21] Production.INFO: ==31769== Releasing lock... [2025-03-12 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:02:06 [end_date_ymd] => 2025-03-12 02:02:06 [RateCDR] => 1 ) [2025-03-12 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:02:06' and `end` < '2025-03-12 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:02:18] Production.INFO: count ==376 [2025-03-12 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:02:06 - End Time 2025-03-12 02:02:06 [2025-03-12 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660976', 'tblTempUsageDetail_20' ) start [2025-03-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660976', 'tblTempUsageDetail_20' ) end [2025-03-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660976', 'tblTempVendorCDR_20' ) start [2025-03-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660976', 'tblTempVendorCDR_20' ) end [2025-03-12 02:02:18] Production.INFO: ProcessCDR(1,14660976,1,1,2) [2025-03-12 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660976', 'tblTempUsageDetail_20' ) start [2025-03-12 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660976', 'tblTempUsageDetail_20' ) end [2025-03-12 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:02:21] Production.INFO: ==31924== Releasing lock... [2025-03-12 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:03:05 [end_date_ymd] => 2025-03-12 02:03:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:03:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:03:18] Production.INFO: count ==373 [2025-03-12 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:03:05 - End Time 2025-03-12 02:03:05 [2025-03-12 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660981', 'tblTempUsageDetail_20' ) start [2025-03-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660981', 'tblTempUsageDetail_20' ) end [2025-03-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660981', 'tblTempVendorCDR_20' ) start [2025-03-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660981', 'tblTempVendorCDR_20' ) end [2025-03-12 02:03:18] Production.INFO: ProcessCDR(1,14660981,1,1,2) [2025-03-12 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660981', 'tblTempUsageDetail_20' ) start [2025-03-12 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660981', 'tblTempUsageDetail_20' ) end [2025-03-12 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:03:21] Production.INFO: ==31998== Releasing lock... [2025-03-12 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:04:06 [end_date_ymd] => 2025-03-12 02:04:06 [RateCDR] => 1 ) [2025-03-12 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:04:06' and `end` < '2025-03-12 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:04:18] Production.INFO: count ==373 [2025-03-12 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:04:06 - End Time 2025-03-12 02:04:06 [2025-03-12 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660986', 'tblTempUsageDetail_20' ) start [2025-03-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660986', 'tblTempUsageDetail_20' ) end [2025-03-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660986', 'tblTempVendorCDR_20' ) start [2025-03-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660986', 'tblTempVendorCDR_20' ) end [2025-03-12 02:04:18] Production.INFO: ProcessCDR(1,14660986,1,1,2) [2025-03-12 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660986', 'tblTempUsageDetail_20' ) start [2025-03-12 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660986', 'tblTempUsageDetail_20' ) end [2025-03-12 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:04:21] Production.INFO: ==32075== Releasing lock... [2025-03-12 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:05:06 [end_date_ymd] => 2025-03-12 02:05:06 [RateCDR] => 1 ) [2025-03-12 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:05:06' and `end` < '2025-03-12 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:05:18] Production.INFO: count ==369 [2025-03-12 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:05:06 - End Time 2025-03-12 02:05:06 [2025-03-12 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660991', 'tblTempUsageDetail_20' ) start [2025-03-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660991', 'tblTempUsageDetail_20' ) end [2025-03-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660991', 'tblTempVendorCDR_20' ) start [2025-03-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660991', 'tblTempVendorCDR_20' ) end [2025-03-12 02:05:18] Production.INFO: ProcessCDR(1,14660991,1,1,2) [2025-03-12 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660991', 'tblTempUsageDetail_20' ) start [2025-03-12 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660991', 'tblTempUsageDetail_20' ) end [2025-03-12 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:05:21] Production.INFO: ==32147== Releasing lock... [2025-03-12 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:06:05 [end_date_ymd] => 2025-03-12 02:06:05 [RateCDR] => 1 ) [2025-03-12 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:06:05' and `end` < '2025-03-12 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:06:17] Production.INFO: count ==369 [2025-03-12 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:06:05 - End Time 2025-03-12 02:06:05 [2025-03-12 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660996', 'tblTempUsageDetail_20' ) start [2025-03-12 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14660996', 'tblTempUsageDetail_20' ) end [2025-03-12 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660996', 'tblTempVendorCDR_20' ) start [2025-03-12 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14660996', 'tblTempVendorCDR_20' ) end [2025-03-12 02:06:17] Production.INFO: ProcessCDR(1,14660996,1,1,2) [2025-03-12 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14660996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14660996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14660996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14660996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660996', 'tblTempUsageDetail_20' ) start [2025-03-12 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14660996', 'tblTempUsageDetail_20' ) end [2025-03-12 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:06:20] Production.INFO: ==32216== Releasing lock... [2025-03-12 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:07:05 [end_date_ymd] => 2025-03-12 02:07:05 [RateCDR] => 1 ) [2025-03-12 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:07:05' and `end` < '2025-03-12 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:07:17] Production.INFO: count ==368 [2025-03-12 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:07:05 - End Time 2025-03-12 02:07:05 [2025-03-12 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661001', 'tblTempUsageDetail_20' ) start [2025-03-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661001', 'tblTempUsageDetail_20' ) end [2025-03-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661001', 'tblTempVendorCDR_20' ) start [2025-03-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661001', 'tblTempVendorCDR_20' ) end [2025-03-12 02:07:18] Production.INFO: ProcessCDR(1,14661001,1,1,2) [2025-03-12 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661001', 'tblTempUsageDetail_20' ) start [2025-03-12 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661001', 'tblTempUsageDetail_20' ) end [2025-03-12 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:07:21] Production.INFO: ==32289== Releasing lock... [2025-03-12 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:08:05 [end_date_ymd] => 2025-03-12 02:08:05 [RateCDR] => 1 ) [2025-03-12 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:08:05' and `end` < '2025-03-12 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:08:17] Production.INFO: count ==368 [2025-03-12 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:08:05 - End Time 2025-03-12 02:08:05 [2025-03-12 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661006', 'tblTempUsageDetail_20' ) start [2025-03-12 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661006', 'tblTempUsageDetail_20' ) end [2025-03-12 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661006', 'tblTempVendorCDR_20' ) start [2025-03-12 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661006', 'tblTempVendorCDR_20' ) end [2025-03-12 02:08:17] Production.INFO: ProcessCDR(1,14661006,1,1,2) [2025-03-12 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661006', 'tblTempUsageDetail_20' ) start [2025-03-12 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661006', 'tblTempUsageDetail_20' ) end [2025-03-12 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:08:21] Production.INFO: ==32362== Releasing lock... [2025-03-12 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:09:05 [end_date_ymd] => 2025-03-12 02:09:05 [RateCDR] => 1 ) [2025-03-12 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:09:05' and `end` < '2025-03-12 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:09:17] Production.INFO: count ==368 [2025-03-12 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:09:05 - End Time 2025-03-12 02:09:05 [2025-03-12 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661011', 'tblTempUsageDetail_20' ) start [2025-03-12 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661011', 'tblTempUsageDetail_20' ) end [2025-03-12 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661011', 'tblTempVendorCDR_20' ) start [2025-03-12 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661011', 'tblTempVendorCDR_20' ) end [2025-03-12 02:09:17] Production.INFO: ProcessCDR(1,14661011,1,1,2) [2025-03-12 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661011', 'tblTempUsageDetail_20' ) start [2025-03-12 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661011', 'tblTempUsageDetail_20' ) end [2025-03-12 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:09:20] Production.INFO: ==32435== Releasing lock... [2025-03-12 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:09:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:10:06 [end_date_ymd] => 2025-03-12 02:10:06 [RateCDR] => 1 ) [2025-03-12 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:10:06' and `end` < '2025-03-12 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:10:18] Production.INFO: count ==370 [2025-03-12 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:10:06 - End Time 2025-03-12 02:10:06 [2025-03-12 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661017', 'tblTempUsageDetail_20' ) start [2025-03-12 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661017', 'tblTempUsageDetail_20' ) end [2025-03-12 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661017', 'tblTempVendorCDR_20' ) start [2025-03-12 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661017', 'tblTempVendorCDR_20' ) end [2025-03-12 02:10:18] Production.INFO: ProcessCDR(1,14661017,1,1,2) [2025-03-12 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661017', 'tblTempUsageDetail_20' ) start [2025-03-12 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661017', 'tblTempUsageDetail_20' ) end [2025-03-12 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:10:21] Production.INFO: ==32506== Releasing lock... [2025-03-12 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:10:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:11:05 [end_date_ymd] => 2025-03-12 02:11:05 [RateCDR] => 1 ) [2025-03-12 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:11:05' and `end` < '2025-03-12 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:11:17] Production.INFO: count ==367 [2025-03-12 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:11:05 - End Time 2025-03-12 02:11:05 [2025-03-12 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661022', 'tblTempUsageDetail_20' ) start [2025-03-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661022', 'tblTempUsageDetail_20' ) end [2025-03-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661022', 'tblTempVendorCDR_20' ) start [2025-03-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661022', 'tblTempVendorCDR_20' ) end [2025-03-12 02:11:18] Production.INFO: ProcessCDR(1,14661022,1,1,2) [2025-03-12 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661022', 'tblTempUsageDetail_20' ) start [2025-03-12 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661022', 'tblTempUsageDetail_20' ) end [2025-03-12 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:11:22] Production.INFO: ==32580== Releasing lock... [2025-03-12 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:12:05 [end_date_ymd] => 2025-03-12 02:12:05 [RateCDR] => 1 ) [2025-03-12 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:12:05' and `end` < '2025-03-12 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:12:18] Production.INFO: count ==371 [2025-03-12 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:12:05 - End Time 2025-03-12 02:12:05 [2025-03-12 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661027', 'tblTempUsageDetail_20' ) start [2025-03-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661027', 'tblTempUsageDetail_20' ) end [2025-03-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661027', 'tblTempVendorCDR_20' ) start [2025-03-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661027', 'tblTempVendorCDR_20' ) end [2025-03-12 02:12:18] Production.INFO: ProcessCDR(1,14661027,1,1,2) [2025-03-12 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661027', 'tblTempUsageDetail_20' ) start [2025-03-12 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661027', 'tblTempUsageDetail_20' ) end [2025-03-12 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:12:21] Production.INFO: ==32652== Releasing lock... [2025-03-12 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:13:05 [end_date_ymd] => 2025-03-12 02:13:05 [RateCDR] => 1 ) [2025-03-12 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:13:05' and `end` < '2025-03-12 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:13:17] Production.INFO: count ==371 [2025-03-12 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:13:05 - End Time 2025-03-12 02:13:05 [2025-03-12 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661032', 'tblTempUsageDetail_20' ) start [2025-03-12 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661032', 'tblTempUsageDetail_20' ) end [2025-03-12 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661032', 'tblTempVendorCDR_20' ) start [2025-03-12 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661032', 'tblTempVendorCDR_20' ) end [2025-03-12 02:13:17] Production.INFO: ProcessCDR(1,14661032,1,1,2) [2025-03-12 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661032', 'tblTempUsageDetail_20' ) start [2025-03-12 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661032', 'tblTempUsageDetail_20' ) end [2025-03-12 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:13:20] Production.INFO: ==32721== Releasing lock... [2025-03-12 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:13:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:14:06 [end_date_ymd] => 2025-03-12 02:14:06 [RateCDR] => 1 ) [2025-03-12 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:14:06' and `end` < '2025-03-12 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:14:18] Production.INFO: count ==371 [2025-03-12 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:14:06 - End Time 2025-03-12 02:14:06 [2025-03-12 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661037', 'tblTempUsageDetail_20' ) start [2025-03-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661037', 'tblTempUsageDetail_20' ) end [2025-03-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661037', 'tblTempVendorCDR_20' ) start [2025-03-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661037', 'tblTempVendorCDR_20' ) end [2025-03-12 02:14:18] Production.INFO: ProcessCDR(1,14661037,1,1,2) [2025-03-12 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661037', 'tblTempUsageDetail_20' ) start [2025-03-12 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661037', 'tblTempUsageDetail_20' ) end [2025-03-12 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:14:21] Production.INFO: ==384== Releasing lock... [2025-03-12 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:15:05 [end_date_ymd] => 2025-03-12 02:15:05 [RateCDR] => 1 ) [2025-03-12 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:15:05' and `end` < '2025-03-12 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:15:17] Production.INFO: count ==371 [2025-03-12 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:15:05 - End Time 2025-03-12 02:15:05 [2025-03-12 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661042', 'tblTempUsageDetail_20' ) start [2025-03-12 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661042', 'tblTempUsageDetail_20' ) end [2025-03-12 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661042', 'tblTempVendorCDR_20' ) start [2025-03-12 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661042', 'tblTempVendorCDR_20' ) end [2025-03-12 02:15:17] Production.INFO: ProcessCDR(1,14661042,1,1,2) [2025-03-12 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661042', 'tblTempUsageDetail_20' ) start [2025-03-12 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661042', 'tblTempUsageDetail_20' ) end [2025-03-12 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:15:21] Production.INFO: ==455== Releasing lock... [2025-03-12 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:16:05 [end_date_ymd] => 2025-03-12 02:16:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:16:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:16:18] Production.INFO: count ==371 [2025-03-12 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:16:05 - End Time 2025-03-12 02:16:05 [2025-03-12 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661047', 'tblTempUsageDetail_20' ) start [2025-03-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661047', 'tblTempUsageDetail_20' ) end [2025-03-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661047', 'tblTempVendorCDR_20' ) start [2025-03-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661047', 'tblTempVendorCDR_20' ) end [2025-03-12 02:16:18] Production.INFO: ProcessCDR(1,14661047,1,1,2) [2025-03-12 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661047', 'tblTempUsageDetail_20' ) start [2025-03-12 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661047', 'tblTempUsageDetail_20' ) end [2025-03-12 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:16:21] Production.INFO: ==531== Releasing lock... [2025-03-12 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:17:05 [end_date_ymd] => 2025-03-12 02:17:05 [RateCDR] => 1 ) [2025-03-12 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:17:05' and `end` < '2025-03-12 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:17:17] Production.INFO: count ==370 [2025-03-12 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:17:05 - End Time 2025-03-12 02:17:05 [2025-03-12 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661052', 'tblTempUsageDetail_20' ) start [2025-03-12 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661052', 'tblTempUsageDetail_20' ) end [2025-03-12 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661052', 'tblTempVendorCDR_20' ) start [2025-03-12 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661052', 'tblTempVendorCDR_20' ) end [2025-03-12 02:17:17] Production.INFO: ProcessCDR(1,14661052,1,1,2) [2025-03-12 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661052', 'tblTempUsageDetail_20' ) start [2025-03-12 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661052', 'tblTempUsageDetail_20' ) end [2025-03-12 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:17:21] Production.INFO: ==606== Releasing lock... [2025-03-12 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:18:06 [end_date_ymd] => 2025-03-12 02:18:06 [RateCDR] => 1 ) [2025-03-12 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:18:06' and `end` < '2025-03-12 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:18:18] Production.INFO: count ==364 [2025-03-12 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:18:06 - End Time 2025-03-12 02:18:06 [2025-03-12 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661057', 'tblTempUsageDetail_20' ) start [2025-03-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661057', 'tblTempUsageDetail_20' ) end [2025-03-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661057', 'tblTempVendorCDR_20' ) start [2025-03-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661057', 'tblTempVendorCDR_20' ) end [2025-03-12 02:18:18] Production.INFO: ProcessCDR(1,14661057,1,1,2) [2025-03-12 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661057', 'tblTempUsageDetail_20' ) start [2025-03-12 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661057', 'tblTempUsageDetail_20' ) end [2025-03-12 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:18:21] Production.INFO: ==711== Releasing lock... [2025-03-12 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:19:05 [end_date_ymd] => 2025-03-12 02:19:05 [RateCDR] => 1 ) [2025-03-12 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:19:05' and `end` < '2025-03-12 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:19:17] Production.INFO: count ==364 [2025-03-12 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:19:05 - End Time 2025-03-12 02:19:05 [2025-03-12 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661062', 'tblTempUsageDetail_20' ) start [2025-03-12 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661062', 'tblTempUsageDetail_20' ) end [2025-03-12 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661062', 'tblTempVendorCDR_20' ) start [2025-03-12 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661062', 'tblTempVendorCDR_20' ) end [2025-03-12 02:19:17] Production.INFO: ProcessCDR(1,14661062,1,1,2) [2025-03-12 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661062', 'tblTempUsageDetail_20' ) start [2025-03-12 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661062', 'tblTempUsageDetail_20' ) end [2025-03-12 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:19:20] Production.INFO: ==789== Releasing lock... [2025-03-12 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:20:06 [end_date_ymd] => 2025-03-12 02:20:06 [RateCDR] => 1 ) [2025-03-12 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:20:06' and `end` < '2025-03-12 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:20:18] Production.INFO: count ==364 [2025-03-12 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:20:06 - End Time 2025-03-12 02:20:06 [2025-03-12 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661068', 'tblTempUsageDetail_20' ) start [2025-03-12 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661068', 'tblTempUsageDetail_20' ) end [2025-03-12 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661068', 'tblTempVendorCDR_20' ) start [2025-03-12 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661068', 'tblTempVendorCDR_20' ) end [2025-03-12 02:20:18] Production.INFO: ProcessCDR(1,14661068,1,1,2) [2025-03-12 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661068', 'tblTempUsageDetail_20' ) start [2025-03-12 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661068', 'tblTempUsageDetail_20' ) end [2025-03-12 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:20:22] Production.INFO: ==868== Releasing lock... [2025-03-12 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:21:05 [end_date_ymd] => 2025-03-12 02:21:05 [RateCDR] => 1 ) [2025-03-12 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:21:05' and `end` < '2025-03-12 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:21:17] Production.INFO: count ==364 [2025-03-12 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:21:05 - End Time 2025-03-12 02:21:05 [2025-03-12 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661073', 'tblTempUsageDetail_20' ) start [2025-03-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661073', 'tblTempUsageDetail_20' ) end [2025-03-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661073', 'tblTempVendorCDR_20' ) start [2025-03-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661073', 'tblTempVendorCDR_20' ) end [2025-03-12 02:21:17] Production.INFO: ProcessCDR(1,14661073,1,1,2) [2025-03-12 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661073', 'tblTempUsageDetail_20' ) start [2025-03-12 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661073', 'tblTempUsageDetail_20' ) end [2025-03-12 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:21:20] Production.INFO: ==942== Releasing lock... [2025-03-12 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:22:05 [end_date_ymd] => 2025-03-12 02:22:05 [RateCDR] => 1 ) [2025-03-12 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:22:05' and `end` < '2025-03-12 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:22:17] Production.INFO: count ==360 [2025-03-12 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:22:05 - End Time 2025-03-12 02:22:05 [2025-03-12 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661078', 'tblTempUsageDetail_20' ) start [2025-03-12 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661078', 'tblTempUsageDetail_20' ) end [2025-03-12 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661078', 'tblTempVendorCDR_20' ) start [2025-03-12 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661078', 'tblTempVendorCDR_20' ) end [2025-03-12 02:22:17] Production.INFO: ProcessCDR(1,14661078,1,1,2) [2025-03-12 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661078', 'tblTempUsageDetail_20' ) start [2025-03-12 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661078', 'tblTempUsageDetail_20' ) end [2025-03-12 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:22:21] Production.INFO: ==1013== Releasing lock... [2025-03-12 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:23:05 [end_date_ymd] => 2025-03-12 02:23:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:23:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:23:17] Production.INFO: count ==360 [2025-03-12 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:23:05 - End Time 2025-03-12 02:23:05 [2025-03-12 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661083', 'tblTempUsageDetail_20' ) start [2025-03-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661083', 'tblTempUsageDetail_20' ) end [2025-03-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661083', 'tblTempVendorCDR_20' ) start [2025-03-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661083', 'tblTempVendorCDR_20' ) end [2025-03-12 02:23:17] Production.INFO: ProcessCDR(1,14661083,1,1,2) [2025-03-12 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661083', 'tblTempUsageDetail_20' ) start [2025-03-12 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661083', 'tblTempUsageDetail_20' ) end [2025-03-12 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:23:20] Production.INFO: ==1083== Releasing lock... [2025-03-12 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:23:20] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:24:05 [end_date_ymd] => 2025-03-12 02:24:05 [RateCDR] => 1 ) [2025-03-12 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:24:05' and `end` < '2025-03-12 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:24:17] Production.INFO: count ==363 [2025-03-12 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:24:05 - End Time 2025-03-12 02:24:05 [2025-03-12 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661088', 'tblTempUsageDetail_20' ) start [2025-03-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661088', 'tblTempUsageDetail_20' ) end [2025-03-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661088', 'tblTempVendorCDR_20' ) start [2025-03-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661088', 'tblTempVendorCDR_20' ) end [2025-03-12 02:24:18] Production.INFO: ProcessCDR(1,14661088,1,1,2) [2025-03-12 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661088', 'tblTempUsageDetail_20' ) start [2025-03-12 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661088', 'tblTempUsageDetail_20' ) end [2025-03-12 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:24:21] Production.INFO: ==1158== Releasing lock... [2025-03-12 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:24:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:25:05 [end_date_ymd] => 2025-03-12 02:25:05 [RateCDR] => 1 ) [2025-03-12 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:25:05' and `end` < '2025-03-12 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:25:17] Production.INFO: count ==356 [2025-03-12 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:25:05 - End Time 2025-03-12 02:25:05 [2025-03-12 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661093', 'tblTempUsageDetail_20' ) start [2025-03-12 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661093', 'tblTempUsageDetail_20' ) end [2025-03-12 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661093', 'tblTempVendorCDR_20' ) start [2025-03-12 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661093', 'tblTempVendorCDR_20' ) end [2025-03-12 02:25:17] Production.INFO: ProcessCDR(1,14661093,1,1,2) [2025-03-12 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661093', 'tblTempUsageDetail_20' ) start [2025-03-12 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661093', 'tblTempUsageDetail_20' ) end [2025-03-12 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:25:20] Production.INFO: ==1231== Releasing lock... [2025-03-12 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:26:05 [end_date_ymd] => 2025-03-12 02:26:05 [RateCDR] => 1 ) [2025-03-12 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:26:05' and `end` < '2025-03-12 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:26:17] Production.INFO: count ==356 [2025-03-12 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:26:05 - End Time 2025-03-12 02:26:05 [2025-03-12 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661098', 'tblTempUsageDetail_20' ) start [2025-03-12 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661098', 'tblTempUsageDetail_20' ) end [2025-03-12 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661098', 'tblTempVendorCDR_20' ) start [2025-03-12 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661098', 'tblTempVendorCDR_20' ) end [2025-03-12 02:26:17] Production.INFO: ProcessCDR(1,14661098,1,1,2) [2025-03-12 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661098', 'tblTempUsageDetail_20' ) start [2025-03-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661098', 'tblTempUsageDetail_20' ) end [2025-03-12 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:26:22] Production.INFO: ==1316== Releasing lock... [2025-03-12 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:26:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:27:05 [end_date_ymd] => 2025-03-12 02:27:05 [RateCDR] => 1 ) [2025-03-12 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:27:05' and `end` < '2025-03-12 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:27:17] Production.INFO: count ==355 [2025-03-12 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:27:05 - End Time 2025-03-12 02:27:05 [2025-03-12 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661103', 'tblTempUsageDetail_20' ) start [2025-03-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661103', 'tblTempUsageDetail_20' ) end [2025-03-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661103', 'tblTempVendorCDR_20' ) start [2025-03-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661103', 'tblTempVendorCDR_20' ) end [2025-03-12 02:27:17] Production.INFO: ProcessCDR(1,14661103,1,1,2) [2025-03-12 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661103', 'tblTempUsageDetail_20' ) start [2025-03-12 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661103', 'tblTempUsageDetail_20' ) end [2025-03-12 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:27:21] Production.INFO: ==1386== Releasing lock... [2025-03-12 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:28:05 [end_date_ymd] => 2025-03-12 02:28:05 [RateCDR] => 1 ) [2025-03-12 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:28:05' and `end` < '2025-03-12 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:28:17] Production.INFO: count ==342 [2025-03-12 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:28:05 - End Time 2025-03-12 02:28:05 [2025-03-12 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661108', 'tblTempUsageDetail_20' ) start [2025-03-12 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661108', 'tblTempUsageDetail_20' ) end [2025-03-12 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661108', 'tblTempVendorCDR_20' ) start [2025-03-12 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661108', 'tblTempVendorCDR_20' ) end [2025-03-12 02:28:17] Production.INFO: ProcessCDR(1,14661108,1,1,2) [2025-03-12 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661108', 'tblTempUsageDetail_20' ) start [2025-03-12 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661108', 'tblTempUsageDetail_20' ) end [2025-03-12 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:28:20] Production.INFO: ==1457== Releasing lock... [2025-03-12 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:29:05 [end_date_ymd] => 2025-03-12 02:29:05 [RateCDR] => 1 ) [2025-03-12 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:29:05' and `end` < '2025-03-12 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:29:17] Production.INFO: count ==337 [2025-03-12 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:29:05 - End Time 2025-03-12 02:29:05 [2025-03-12 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661113', 'tblTempUsageDetail_20' ) start [2025-03-12 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661113', 'tblTempUsageDetail_20' ) end [2025-03-12 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661113', 'tblTempVendorCDR_20' ) start [2025-03-12 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661113', 'tblTempVendorCDR_20' ) end [2025-03-12 02:29:17] Production.INFO: ProcessCDR(1,14661113,1,1,2) [2025-03-12 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661113', 'tblTempUsageDetail_20' ) start [2025-03-12 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661113', 'tblTempUsageDetail_20' ) end [2025-03-12 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:29:20] Production.INFO: ==1604== Releasing lock... [2025-03-12 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:29:20] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:30:05 [end_date_ymd] => 2025-03-12 02:30:05 [RateCDR] => 1 ) [2025-03-12 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:30:05' and `end` < '2025-03-12 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:30:17] Production.INFO: count ==341 [2025-03-12 02:30:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:30:05 - End Time 2025-03-12 02:30:05 [2025-03-12 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661119', 'tblTempUsageDetail_20' ) start [2025-03-12 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661119', 'tblTempUsageDetail_20' ) end [2025-03-12 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661119', 'tblTempVendorCDR_20' ) start [2025-03-12 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661119', 'tblTempVendorCDR_20' ) end [2025-03-12 02:30:17] Production.INFO: ProcessCDR(1,14661119,1,1,2) [2025-03-12 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661119', 'tblTempUsageDetail_20' ) start [2025-03-12 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661119', 'tblTempUsageDetail_20' ) end [2025-03-12 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:30:22] Production.INFO: ==1682== Releasing lock... [2025-03-12 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:30:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:31:05 [end_date_ymd] => 2025-03-12 02:31:05 [RateCDR] => 1 ) [2025-03-12 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:31:05' and `end` < '2025-03-12 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:31:17] Production.INFO: count ==349 [2025-03-12 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:31:05 - End Time 2025-03-12 02:31:05 [2025-03-12 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661124', 'tblTempUsageDetail_20' ) start [2025-03-12 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661124', 'tblTempUsageDetail_20' ) end [2025-03-12 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661124', 'tblTempVendorCDR_20' ) start [2025-03-12 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661124', 'tblTempVendorCDR_20' ) end [2025-03-12 02:31:17] Production.INFO: ProcessCDR(1,14661124,1,1,2) [2025-03-12 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661124', 'tblTempUsageDetail_20' ) start [2025-03-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661124', 'tblTempUsageDetail_20' ) end [2025-03-12 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:31:21] Production.INFO: ==1753== Releasing lock... [2025-03-12 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:32:05 [end_date_ymd] => 2025-03-12 02:32:05 [RateCDR] => 1 ) [2025-03-12 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:32:05' and `end` < '2025-03-12 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:32:17] Production.INFO: count ==348 [2025-03-12 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:32:05 - End Time 2025-03-12 02:32:05 [2025-03-12 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661129', 'tblTempUsageDetail_20' ) start [2025-03-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661129', 'tblTempUsageDetail_20' ) end [2025-03-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661129', 'tblTempVendorCDR_20' ) start [2025-03-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661129', 'tblTempVendorCDR_20' ) end [2025-03-12 02:32:17] Production.INFO: ProcessCDR(1,14661129,1,1,2) [2025-03-12 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661129', 'tblTempUsageDetail_20' ) start [2025-03-12 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661129', 'tblTempUsageDetail_20' ) end [2025-03-12 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:32:20] Production.INFO: ==1823== Releasing lock... [2025-03-12 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:32:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:33:05 [end_date_ymd] => 2025-03-12 02:33:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:33:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:33:17] Production.INFO: count ==348 [2025-03-12 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:33:05 - End Time 2025-03-12 02:33:05 [2025-03-12 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661134', 'tblTempUsageDetail_20' ) start [2025-03-12 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661134', 'tblTempUsageDetail_20' ) end [2025-03-12 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661134', 'tblTempVendorCDR_20' ) start [2025-03-12 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661134', 'tblTempVendorCDR_20' ) end [2025-03-12 02:33:17] Production.INFO: ProcessCDR(1,14661134,1,1,2) [2025-03-12 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661134', 'tblTempUsageDetail_20' ) start [2025-03-12 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661134', 'tblTempUsageDetail_20' ) end [2025-03-12 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:33:21] Production.INFO: ==1896== Releasing lock... [2025-03-12 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:34:05 [end_date_ymd] => 2025-03-12 02:34:05 [RateCDR] => 1 ) [2025-03-12 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:34:05' and `end` < '2025-03-12 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:34:17] Production.INFO: count ==347 [2025-03-12 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:34:05 - End Time 2025-03-12 02:34:05 [2025-03-12 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661139', 'tblTempUsageDetail_20' ) start [2025-03-12 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661139', 'tblTempUsageDetail_20' ) end [2025-03-12 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661139', 'tblTempVendorCDR_20' ) start [2025-03-12 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661139', 'tblTempVendorCDR_20' ) end [2025-03-12 02:34:17] Production.INFO: ProcessCDR(1,14661139,1,1,2) [2025-03-12 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661139', 'tblTempUsageDetail_20' ) start [2025-03-12 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661139', 'tblTempUsageDetail_20' ) end [2025-03-12 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:34:21] Production.INFO: ==1971== Releasing lock... [2025-03-12 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:35:05 [end_date_ymd] => 2025-03-12 02:35:05 [RateCDR] => 1 ) [2025-03-12 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:35:05' and `end` < '2025-03-12 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:35:17] Production.INFO: count ==346 [2025-03-12 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:35:05 - End Time 2025-03-12 02:35:05 [2025-03-12 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661144', 'tblTempUsageDetail_20' ) start [2025-03-12 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661144', 'tblTempUsageDetail_20' ) end [2025-03-12 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661144', 'tblTempVendorCDR_20' ) start [2025-03-12 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661144', 'tblTempVendorCDR_20' ) end [2025-03-12 02:35:18] Production.INFO: ProcessCDR(1,14661144,1,1,2) [2025-03-12 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661144', 'tblTempUsageDetail_20' ) start [2025-03-12 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661144', 'tblTempUsageDetail_20' ) end [2025-03-12 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:35:21] Production.INFO: ==2073== Releasing lock... [2025-03-12 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:36:05 [end_date_ymd] => 2025-03-12 02:36:05 [RateCDR] => 1 ) [2025-03-12 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:36:05' and `end` < '2025-03-12 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:36:17] Production.INFO: count ==346 [2025-03-12 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:36:05 - End Time 2025-03-12 02:36:05 [2025-03-12 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661149', 'tblTempUsageDetail_20' ) start [2025-03-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661149', 'tblTempUsageDetail_20' ) end [2025-03-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661149', 'tblTempVendorCDR_20' ) start [2025-03-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661149', 'tblTempVendorCDR_20' ) end [2025-03-12 02:36:18] Production.INFO: ProcessCDR(1,14661149,1,1,2) [2025-03-12 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661149', 'tblTempUsageDetail_20' ) start [2025-03-12 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661149', 'tblTempUsageDetail_20' ) end [2025-03-12 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:36:21] Production.INFO: ==2176== Releasing lock... [2025-03-12 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:37:06 [end_date_ymd] => 2025-03-12 02:37:06 [RateCDR] => 1 ) [2025-03-12 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:37:06' and `end` < '2025-03-12 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:37:18] Production.INFO: count ==343 [2025-03-12 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:37:06 - End Time 2025-03-12 02:37:06 [2025-03-12 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661154', 'tblTempUsageDetail_20' ) start [2025-03-12 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661154', 'tblTempUsageDetail_20' ) end [2025-03-12 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661154', 'tblTempVendorCDR_20' ) start [2025-03-12 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661154', 'tblTempVendorCDR_20' ) end [2025-03-12 02:37:18] Production.INFO: ProcessCDR(1,14661154,1,1,2) [2025-03-12 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661154', 'tblTempUsageDetail_20' ) start [2025-03-12 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661154', 'tblTempUsageDetail_20' ) end [2025-03-12 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:37:22] Production.INFO: ==2269== Releasing lock... [2025-03-12 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:38:06 [end_date_ymd] => 2025-03-12 02:38:06 [RateCDR] => 1 ) [2025-03-12 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:38:06' and `end` < '2025-03-12 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:38:18] Production.INFO: count ==343 [2025-03-12 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:38:06 - End Time 2025-03-12 02:38:06 [2025-03-12 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661159', 'tblTempUsageDetail_20' ) start [2025-03-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661159', 'tblTempUsageDetail_20' ) end [2025-03-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661159', 'tblTempVendorCDR_20' ) start [2025-03-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661159', 'tblTempVendorCDR_20' ) end [2025-03-12 02:38:18] Production.INFO: ProcessCDR(1,14661159,1,1,2) [2025-03-12 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661159', 'tblTempUsageDetail_20' ) start [2025-03-12 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661159', 'tblTempUsageDetail_20' ) end [2025-03-12 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:38:22] Production.INFO: ==2344== Releasing lock... [2025-03-12 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:39:06 [end_date_ymd] => 2025-03-12 02:39:06 [RateCDR] => 1 ) [2025-03-12 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:39:06' and `end` < '2025-03-12 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:39:18] Production.INFO: count ==343 [2025-03-12 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:39:06 - End Time 2025-03-12 02:39:06 [2025-03-12 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661164', 'tblTempUsageDetail_20' ) start [2025-03-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661164', 'tblTempUsageDetail_20' ) end [2025-03-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661164', 'tblTempVendorCDR_20' ) start [2025-03-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661164', 'tblTempVendorCDR_20' ) end [2025-03-12 02:39:18] Production.INFO: ProcessCDR(1,14661164,1,1,2) [2025-03-12 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661164', 'tblTempUsageDetail_20' ) start [2025-03-12 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661164', 'tblTempUsageDetail_20' ) end [2025-03-12 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:39:22] Production.INFO: ==2418== Releasing lock... [2025-03-12 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:39:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:40:06 [end_date_ymd] => 2025-03-12 02:40:06 [RateCDR] => 1 ) [2025-03-12 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:40:06' and `end` < '2025-03-12 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:40:18] Production.INFO: count ==353 [2025-03-12 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:40:06 - End Time 2025-03-12 02:40:06 [2025-03-12 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661170', 'tblTempUsageDetail_20' ) start [2025-03-12 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661170', 'tblTempUsageDetail_20' ) end [2025-03-12 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661170', 'tblTempVendorCDR_20' ) start [2025-03-12 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661170', 'tblTempVendorCDR_20' ) end [2025-03-12 02:40:18] Production.INFO: ProcessCDR(1,14661170,1,1,2) [2025-03-12 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661170', 'tblTempUsageDetail_20' ) start [2025-03-12 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661170', 'tblTempUsageDetail_20' ) end [2025-03-12 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:40:22] Production.INFO: ==2491== Releasing lock... [2025-03-12 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:41:06 [end_date_ymd] => 2025-03-12 02:41:06 [RateCDR] => 1 ) [2025-03-12 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:41:06' and `end` < '2025-03-12 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:41:18] Production.INFO: count ==353 [2025-03-12 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:41:06 - End Time 2025-03-12 02:41:06 [2025-03-12 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661175', 'tblTempUsageDetail_20' ) start [2025-03-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661175', 'tblTempUsageDetail_20' ) end [2025-03-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661175', 'tblTempVendorCDR_20' ) start [2025-03-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661175', 'tblTempVendorCDR_20' ) end [2025-03-12 02:41:18] Production.INFO: ProcessCDR(1,14661175,1,1,2) [2025-03-12 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661175', 'tblTempUsageDetail_20' ) start [2025-03-12 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661175', 'tblTempUsageDetail_20' ) end [2025-03-12 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:41:22] Production.INFO: ==2566== Releasing lock... [2025-03-12 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:41:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:42:05 [end_date_ymd] => 2025-03-12 02:42:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:42:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:42:17] Production.INFO: count ==350 [2025-03-12 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:42:05 - End Time 2025-03-12 02:42:05 [2025-03-12 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661180', 'tblTempUsageDetail_20' ) start [2025-03-12 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661180', 'tblTempUsageDetail_20' ) end [2025-03-12 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661180', 'tblTempVendorCDR_20' ) start [2025-03-12 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661180', 'tblTempVendorCDR_20' ) end [2025-03-12 02:42:17] Production.INFO: ProcessCDR(1,14661180,1,1,2) [2025-03-12 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661180', 'tblTempUsageDetail_20' ) start [2025-03-12 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661180', 'tblTempUsageDetail_20' ) end [2025-03-12 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:42:21] Production.INFO: ==2646== Releasing lock... [2025-03-12 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:43:06 [end_date_ymd] => 2025-03-12 02:43:06 [RateCDR] => 1 ) [2025-03-12 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:43:06' and `end` < '2025-03-12 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:43:19] Production.INFO: count ==349 [2025-03-12 02:43:19] Production.ERROR: pbx CDR StartTime 2025-03-11 23:43:06 - End Time 2025-03-12 02:43:06 [2025-03-12 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661185', 'tblTempUsageDetail_20' ) start [2025-03-12 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661185', 'tblTempUsageDetail_20' ) end [2025-03-12 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661185', 'tblTempVendorCDR_20' ) start [2025-03-12 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661185', 'tblTempVendorCDR_20' ) end [2025-03-12 02:43:19] Production.INFO: ProcessCDR(1,14661185,1,1,2) [2025-03-12 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661185', 'tblTempUsageDetail_20' ) start [2025-03-12 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661185', 'tblTempUsageDetail_20' ) end [2025-03-12 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:43:22] Production.INFO: ==2726== Releasing lock... [2025-03-12 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:44:06 [end_date_ymd] => 2025-03-12 02:44:06 [RateCDR] => 1 ) [2025-03-12 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:44:06' and `end` < '2025-03-12 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:44:18] Production.INFO: count ==347 [2025-03-12 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:44:06 - End Time 2025-03-12 02:44:06 [2025-03-12 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661190', 'tblTempUsageDetail_20' ) start [2025-03-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661190', 'tblTempUsageDetail_20' ) end [2025-03-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661190', 'tblTempVendorCDR_20' ) start [2025-03-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661190', 'tblTempVendorCDR_20' ) end [2025-03-12 02:44:18] Production.INFO: ProcessCDR(1,14661190,1,1,2) [2025-03-12 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661190', 'tblTempUsageDetail_20' ) start [2025-03-12 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661190', 'tblTempUsageDetail_20' ) end [2025-03-12 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:44:22] Production.INFO: ==2839== Releasing lock... [2025-03-12 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:45:05 [end_date_ymd] => 2025-03-12 02:45:05 [RateCDR] => 1 ) [2025-03-12 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:45:05' and `end` < '2025-03-12 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:45:17] Production.INFO: count ==347 [2025-03-12 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:45:05 - End Time 2025-03-12 02:45:05 [2025-03-12 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661195', 'tblTempUsageDetail_20' ) start [2025-03-12 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661195', 'tblTempUsageDetail_20' ) end [2025-03-12 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661195', 'tblTempVendorCDR_20' ) start [2025-03-12 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661195', 'tblTempVendorCDR_20' ) end [2025-03-12 02:45:17] Production.INFO: ProcessCDR(1,14661195,1,1,2) [2025-03-12 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661195', 'tblTempUsageDetail_20' ) start [2025-03-12 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661195', 'tblTempUsageDetail_20' ) end [2025-03-12 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:45:21] Production.INFO: ==2910== Releasing lock... [2025-03-12 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:46:06 [end_date_ymd] => 2025-03-12 02:46:06 [RateCDR] => 1 ) [2025-03-12 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:46:06' and `end` < '2025-03-12 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:46:18] Production.INFO: count ==347 [2025-03-12 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:46:06 - End Time 2025-03-12 02:46:06 [2025-03-12 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661200', 'tblTempUsageDetail_20' ) start [2025-03-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661200', 'tblTempUsageDetail_20' ) end [2025-03-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661200', 'tblTempVendorCDR_20' ) start [2025-03-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661200', 'tblTempVendorCDR_20' ) end [2025-03-12 02:46:18] Production.INFO: ProcessCDR(1,14661200,1,1,2) [2025-03-12 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661200', 'tblTempUsageDetail_20' ) start [2025-03-12 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661200', 'tblTempUsageDetail_20' ) end [2025-03-12 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:46:21] Production.INFO: ==2982== Releasing lock... [2025-03-12 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:47:05 [end_date_ymd] => 2025-03-12 02:47:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:47:05' and `end` < '2025-03-12 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:47:17] Production.INFO: count ==354 [2025-03-12 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:47:05 - End Time 2025-03-12 02:47:05 [2025-03-12 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661205', 'tblTempUsageDetail_20' ) start [2025-03-12 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661205', 'tblTempUsageDetail_20' ) end [2025-03-12 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661205', 'tblTempVendorCDR_20' ) start [2025-03-12 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661205', 'tblTempVendorCDR_20' ) end [2025-03-12 02:47:17] Production.INFO: ProcessCDR(1,14661205,1,1,2) [2025-03-12 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661205', 'tblTempUsageDetail_20' ) start [2025-03-12 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661205', 'tblTempUsageDetail_20' ) end [2025-03-12 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:47:21] Production.INFO: ==3058== Releasing lock... [2025-03-12 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:48:06 [end_date_ymd] => 2025-03-12 02:48:06 [RateCDR] => 1 ) [2025-03-12 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:48:06' and `end` < '2025-03-12 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:48:18] Production.INFO: count ==354 [2025-03-12 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:48:06 - End Time 2025-03-12 02:48:06 [2025-03-12 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661210', 'tblTempUsageDetail_20' ) start [2025-03-12 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661210', 'tblTempUsageDetail_20' ) end [2025-03-12 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661210', 'tblTempVendorCDR_20' ) start [2025-03-12 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661210', 'tblTempVendorCDR_20' ) end [2025-03-12 02:48:18] Production.INFO: ProcessCDR(1,14661210,1,1,2) [2025-03-12 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661210', 'tblTempUsageDetail_20' ) start [2025-03-12 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661210', 'tblTempUsageDetail_20' ) end [2025-03-12 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:48:22] Production.INFO: ==3135== Releasing lock... [2025-03-12 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:49:05 [end_date_ymd] => 2025-03-12 02:49:05 [RateCDR] => 1 ) [2025-03-12 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:49:05' and `end` < '2025-03-12 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:49:17] Production.INFO: count ==354 [2025-03-12 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:49:05 - End Time 2025-03-12 02:49:05 [2025-03-12 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661215', 'tblTempUsageDetail_20' ) start [2025-03-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661215', 'tblTempUsageDetail_20' ) end [2025-03-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661215', 'tblTempVendorCDR_20' ) start [2025-03-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661215', 'tblTempVendorCDR_20' ) end [2025-03-12 02:49:18] Production.INFO: ProcessCDR(1,14661215,1,1,2) [2025-03-12 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661215', 'tblTempUsageDetail_20' ) start [2025-03-12 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661215', 'tblTempUsageDetail_20' ) end [2025-03-12 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:49:21] Production.INFO: ==3207== Releasing lock... [2025-03-12 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:50:07 [end_date_ymd] => 2025-03-12 02:50:07 [RateCDR] => 1 ) [2025-03-12 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:50:07' and `end` < '2025-03-12 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:50:19] Production.INFO: count ==359 [2025-03-12 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-11 23:50:07 - End Time 2025-03-12 02:50:07 [2025-03-12 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661221', 'tblTempUsageDetail_20' ) start [2025-03-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661221', 'tblTempUsageDetail_20' ) end [2025-03-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661221', 'tblTempVendorCDR_20' ) start [2025-03-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661221', 'tblTempVendorCDR_20' ) end [2025-03-12 02:50:19] Production.INFO: ProcessCDR(1,14661221,1,1,2) [2025-03-12 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661221', 'tblTempUsageDetail_20' ) start [2025-03-12 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661221', 'tblTempUsageDetail_20' ) end [2025-03-12 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:50:23] Production.INFO: ==3283== Releasing lock... [2025-03-12 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:51:05 [end_date_ymd] => 2025-03-12 02:51:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:51:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:51:17] Production.INFO: count ==356 [2025-03-12 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:51:05 - End Time 2025-03-12 02:51:05 [2025-03-12 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661226', 'tblTempUsageDetail_20' ) start [2025-03-12 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661226', 'tblTempUsageDetail_20' ) end [2025-03-12 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661226', 'tblTempVendorCDR_20' ) start [2025-03-12 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661226', 'tblTempVendorCDR_20' ) end [2025-03-12 02:51:17] Production.INFO: ProcessCDR(1,14661226,1,1,2) [2025-03-12 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661226', 'tblTempUsageDetail_20' ) start [2025-03-12 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661226', 'tblTempUsageDetail_20' ) end [2025-03-12 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:51:22] Production.INFO: ==3361== Releasing lock... [2025-03-12 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:52:06 [end_date_ymd] => 2025-03-12 02:52:06 [RateCDR] => 1 ) [2025-03-12 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:52:06' and `end` < '2025-03-12 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:52:18] Production.INFO: count ==351 [2025-03-12 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:52:06 - End Time 2025-03-12 02:52:06 [2025-03-12 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661231', 'tblTempUsageDetail_20' ) start [2025-03-12 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661231', 'tblTempUsageDetail_20' ) end [2025-03-12 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661231', 'tblTempVendorCDR_20' ) start [2025-03-12 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661231', 'tblTempVendorCDR_20' ) end [2025-03-12 02:52:18] Production.INFO: ProcessCDR(1,14661231,1,1,2) [2025-03-12 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661231', 'tblTempUsageDetail_20' ) start [2025-03-12 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661231', 'tblTempUsageDetail_20' ) end [2025-03-12 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:52:22] Production.INFO: ==3436== Releasing lock... [2025-03-12 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:53:05 [end_date_ymd] => 2025-03-12 02:53:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-11 23:53:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 02:53:17] Production.INFO: count ==354 [2025-03-12 02:53:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:53:05 - End Time 2025-03-12 02:53:05 [2025-03-12 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661236', 'tblTempUsageDetail_20' ) start [2025-03-12 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661236', 'tblTempUsageDetail_20' ) end [2025-03-12 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661236', 'tblTempVendorCDR_20' ) start [2025-03-12 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661236', 'tblTempVendorCDR_20' ) end [2025-03-12 02:53:17] Production.INFO: ProcessCDR(1,14661236,1,1,2) [2025-03-12 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661236', 'tblTempUsageDetail_20' ) start [2025-03-12 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661236', 'tblTempUsageDetail_20' ) end [2025-03-12 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:53:21] Production.INFO: ==3510== Releasing lock... [2025-03-12 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:53:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:54:06 [end_date_ymd] => 2025-03-12 02:54:06 [RateCDR] => 1 ) [2025-03-12 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:54:06' and `end` < '2025-03-12 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:54:18] Production.INFO: count ==354 [2025-03-12 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:54:06 - End Time 2025-03-12 02:54:06 [2025-03-12 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661241', 'tblTempUsageDetail_20' ) start [2025-03-12 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661241', 'tblTempUsageDetail_20' ) end [2025-03-12 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661241', 'tblTempVendorCDR_20' ) start [2025-03-12 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661241', 'tblTempVendorCDR_20' ) end [2025-03-12 02:54:18] Production.INFO: ProcessCDR(1,14661241,1,1,2) [2025-03-12 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661241', 'tblTempUsageDetail_20' ) start [2025-03-12 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661241', 'tblTempUsageDetail_20' ) end [2025-03-12 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:54:22] Production.INFO: ==3583== Releasing lock... [2025-03-12 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:54:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:55:06 [end_date_ymd] => 2025-03-12 02:55:06 [RateCDR] => 1 ) [2025-03-12 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:55:06' and `end` < '2025-03-12 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:55:18] Production.INFO: count ==354 [2025-03-12 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:55:06 - End Time 2025-03-12 02:55:06 [2025-03-12 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661246', 'tblTempUsageDetail_20' ) start [2025-03-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661246', 'tblTempUsageDetail_20' ) end [2025-03-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661246', 'tblTempVendorCDR_20' ) start [2025-03-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661246', 'tblTempVendorCDR_20' ) end [2025-03-12 02:55:18] Production.INFO: ProcessCDR(1,14661246,1,1,2) [2025-03-12 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661246', 'tblTempUsageDetail_20' ) start [2025-03-12 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661246', 'tblTempUsageDetail_20' ) end [2025-03-12 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:55:21] Production.INFO: ==3658== Releasing lock... [2025-03-12 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-12 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:56:05 [end_date_ymd] => 2025-03-12 02:56:05 [RateCDR] => 1 ) [2025-03-12 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:56:05' and `end` < '2025-03-12 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:56:17] Production.INFO: count ==355 [2025-03-12 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:56:05 - End Time 2025-03-12 02:56:05 [2025-03-12 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661251', 'tblTempUsageDetail_20' ) start [2025-03-12 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661251', 'tblTempUsageDetail_20' ) end [2025-03-12 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661251', 'tblTempVendorCDR_20' ) start [2025-03-12 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661251', 'tblTempVendorCDR_20' ) end [2025-03-12 02:56:17] Production.INFO: ProcessCDR(1,14661251,1,1,2) [2025-03-12 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661251', 'tblTempUsageDetail_20' ) start [2025-03-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661251', 'tblTempUsageDetail_20' ) end [2025-03-12 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:56:22] Production.INFO: ==3733== Releasing lock... [2025-03-12 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:57:06 [end_date_ymd] => 2025-03-12 02:57:06 [RateCDR] => 1 ) [2025-03-12 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:57:06' and `end` < '2025-03-12 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:57:18] Production.INFO: count ==355 [2025-03-12 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:57:06 - End Time 2025-03-12 02:57:06 [2025-03-12 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661256', 'tblTempUsageDetail_20' ) start [2025-03-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661256', 'tblTempUsageDetail_20' ) end [2025-03-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661256', 'tblTempVendorCDR_20' ) start [2025-03-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661256', 'tblTempVendorCDR_20' ) end [2025-03-12 02:57:18] Production.INFO: ProcessCDR(1,14661256,1,1,2) [2025-03-12 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661256', 'tblTempUsageDetail_20' ) start [2025-03-12 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661256', 'tblTempUsageDetail_20' ) end [2025-03-12 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:57:21] Production.INFO: ==3818== Releasing lock... [2025-03-12 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:58:05 [end_date_ymd] => 2025-03-12 02:58:05 [RateCDR] => 1 ) [2025-03-12 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:58:05' and `end` < '2025-03-12 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:58:17] Production.INFO: count ==355 [2025-03-12 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-11 23:58:05 - End Time 2025-03-12 02:58:05 [2025-03-12 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661261', 'tblTempUsageDetail_20' ) start [2025-03-12 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661261', 'tblTempUsageDetail_20' ) end [2025-03-12 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661261', 'tblTempVendorCDR_20' ) start [2025-03-12 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661261', 'tblTempVendorCDR_20' ) end [2025-03-12 02:58:17] Production.INFO: ProcessCDR(1,14661261,1,1,2) [2025-03-12 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661261', 'tblTempUsageDetail_20' ) start [2025-03-12 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661261', 'tblTempUsageDetail_20' ) end [2025-03-12 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:58:21] Production.INFO: ==3889== Releasing lock... [2025-03-12 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-11 23:59:06 [end_date_ymd] => 2025-03-12 02:59:06 [RateCDR] => 1 ) [2025-03-12 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-11 23:59:06' and `end` < '2025-03-12 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 02:59:18] Production.INFO: count ==353 [2025-03-12 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-11 23:59:06 - End Time 2025-03-12 02:59:06 [2025-03-12 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661266', 'tblTempUsageDetail_20' ) start [2025-03-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661266', 'tblTempUsageDetail_20' ) end [2025-03-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661266', 'tblTempVendorCDR_20' ) start [2025-03-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661266', 'tblTempVendorCDR_20' ) end [2025-03-12 02:59:18] Production.INFO: ProcessCDR(1,14661266,1,1,2) [2025-03-12 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661266', 'tblTempUsageDetail_20' ) start [2025-03-12 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661266', 'tblTempUsageDetail_20' ) end [2025-03-12 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 02:59:22] Production.INFO: ==3965== Releasing lock... [2025-03-12 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 02:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:00:06 [end_date_ymd] => 2025-03-12 03:00:06 [RateCDR] => 1 ) [2025-03-12 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:00:06' and `end` < '2025-03-12 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:00:18] Production.INFO: count ==352 [2025-03-12 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-12 00:00:06 - End Time 2025-03-12 03:00:06 [2025-03-12 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661272', 'tblTempUsageDetail_20' ) start [2025-03-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661272', 'tblTempUsageDetail_20' ) end [2025-03-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661272', 'tblTempVendorCDR_20' ) start [2025-03-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661272', 'tblTempVendorCDR_20' ) end [2025-03-12 03:00:19] Production.INFO: ProcessCDR(1,14661272,1,1,2) [2025-03-12 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661272', 'tblTempUsageDetail_20' ) start [2025-03-12 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661272', 'tblTempUsageDetail_20' ) end [2025-03-12 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:00:22] Production.INFO: ==4087== Releasing lock... [2025-03-12 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:01:06 [end_date_ymd] => 2025-03-12 03:01:06 [RateCDR] => 1 ) [2025-03-12 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:01:06' and `end` < '2025-03-12 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:01:18] Production.INFO: count ==352 [2025-03-12 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:01:06 - End Time 2025-03-12 03:01:06 [2025-03-12 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661277', 'tblTempUsageDetail_20' ) start [2025-03-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661277', 'tblTempUsageDetail_20' ) end [2025-03-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661277', 'tblTempVendorCDR_20' ) start [2025-03-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661277', 'tblTempVendorCDR_20' ) end [2025-03-12 03:01:18] Production.INFO: ProcessCDR(1,14661277,1,1,2) [2025-03-12 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661277', 'tblTempUsageDetail_20' ) start [2025-03-12 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661277', 'tblTempUsageDetail_20' ) end [2025-03-12 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:01:21] Production.INFO: ==4178== Releasing lock... [2025-03-12 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:02:05 [end_date_ymd] => 2025-03-12 03:02:05 [RateCDR] => 1 ) [2025-03-12 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:02:05' and `end` < '2025-03-12 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:02:17] Production.INFO: count ==352 [2025-03-12 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:02:05 - End Time 2025-03-12 03:02:05 [2025-03-12 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661282', 'tblTempUsageDetail_20' ) start [2025-03-12 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661282', 'tblTempUsageDetail_20' ) end [2025-03-12 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661282', 'tblTempVendorCDR_20' ) start [2025-03-12 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661282', 'tblTempVendorCDR_20' ) end [2025-03-12 03:02:17] Production.INFO: ProcessCDR(1,14661282,1,1,2) [2025-03-12 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661282', 'tblTempUsageDetail_20' ) start [2025-03-12 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661282', 'tblTempUsageDetail_20' ) end [2025-03-12 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:02:21] Production.INFO: ==4329== Releasing lock... [2025-03-12 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:03:06 [end_date_ymd] => 2025-03-12 03:03:06 [RateCDR] => 1 ) [2025-03-12 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:03:06' and `end` < '2025-03-12 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:03:18] Production.INFO: count ==350 [2025-03-12 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:03:06 - End Time 2025-03-12 03:03:06 [2025-03-12 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661287', 'tblTempUsageDetail_20' ) start [2025-03-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661287', 'tblTempUsageDetail_20' ) end [2025-03-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661287', 'tblTempVendorCDR_20' ) start [2025-03-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661287', 'tblTempVendorCDR_20' ) end [2025-03-12 03:03:18] Production.INFO: ProcessCDR(1,14661287,1,1,2) [2025-03-12 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661287', 'tblTempUsageDetail_20' ) start [2025-03-12 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661287', 'tblTempUsageDetail_20' ) end [2025-03-12 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:03:22] Production.INFO: ==4404== Releasing lock... [2025-03-12 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:04:05 [end_date_ymd] => 2025-03-12 03:04:05 [RateCDR] => 1 ) [2025-03-12 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:04:05' and `end` < '2025-03-12 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:04:17] Production.INFO: count ==346 [2025-03-12 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:04:05 - End Time 2025-03-12 03:04:05 [2025-03-12 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661292', 'tblTempUsageDetail_20' ) start [2025-03-12 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661292', 'tblTempUsageDetail_20' ) end [2025-03-12 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661292', 'tblTempVendorCDR_20' ) start [2025-03-12 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661292', 'tblTempVendorCDR_20' ) end [2025-03-12 03:04:17] Production.INFO: ProcessCDR(1,14661292,1,1,2) [2025-03-12 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661292', 'tblTempUsageDetail_20' ) start [2025-03-12 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661292', 'tblTempUsageDetail_20' ) end [2025-03-12 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:04:21] Production.INFO: ==4481== Releasing lock... [2025-03-12 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:05:05 [end_date_ymd] => 2025-03-12 03:05:05 [RateCDR] => 1 ) [2025-03-12 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:05:05' and `end` < '2025-03-12 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:05:17] Production.INFO: count ==349 [2025-03-12 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:05:05 - End Time 2025-03-12 03:05:05 [2025-03-12 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661297', 'tblTempUsageDetail_20' ) start [2025-03-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661297', 'tblTempUsageDetail_20' ) end [2025-03-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661297', 'tblTempVendorCDR_20' ) start [2025-03-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661297', 'tblTempVendorCDR_20' ) end [2025-03-12 03:05:17] Production.INFO: ProcessCDR(1,14661297,1,1,2) [2025-03-12 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661297', 'tblTempUsageDetail_20' ) start [2025-03-12 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661297', 'tblTempUsageDetail_20' ) end [2025-03-12 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:05:21] Production.INFO: ==4557== Releasing lock... [2025-03-12 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:06:05 [end_date_ymd] => 2025-03-12 03:06:05 [RateCDR] => 1 ) [2025-03-12 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:06:05' and `end` < '2025-03-12 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:06:17] Production.INFO: count ==348 [2025-03-12 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:06:05 - End Time 2025-03-12 03:06:05 [2025-03-12 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661302', 'tblTempUsageDetail_20' ) start [2025-03-12 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661302', 'tblTempUsageDetail_20' ) end [2025-03-12 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661302', 'tblTempVendorCDR_20' ) start [2025-03-12 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661302', 'tblTempVendorCDR_20' ) end [2025-03-12 03:06:17] Production.INFO: ProcessCDR(1,14661302,1,1,2) [2025-03-12 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661302', 'tblTempUsageDetail_20' ) start [2025-03-12 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661302', 'tblTempUsageDetail_20' ) end [2025-03-12 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:06:20] Production.INFO: ==4721== Releasing lock... [2025-03-12 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:06:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:07:05 [end_date_ymd] => 2025-03-12 03:07:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:07:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:07:17] Production.INFO: count ==342 [2025-03-12 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:07:05 - End Time 2025-03-12 03:07:05 [2025-03-12 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661307', 'tblTempUsageDetail_20' ) start [2025-03-12 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661307', 'tblTempUsageDetail_20' ) end [2025-03-12 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661307', 'tblTempVendorCDR_20' ) start [2025-03-12 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661307', 'tblTempVendorCDR_20' ) end [2025-03-12 03:07:17] Production.INFO: ProcessCDR(1,14661307,1,1,2) [2025-03-12 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661307', 'tblTempUsageDetail_20' ) start [2025-03-12 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661307', 'tblTempUsageDetail_20' ) end [2025-03-12 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:07:21] Production.INFO: ==4801== Releasing lock... [2025-03-12 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:08:05 [end_date_ymd] => 2025-03-12 03:08:05 [RateCDR] => 1 ) [2025-03-12 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:08:05' and `end` < '2025-03-12 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:08:17] Production.INFO: count ==341 [2025-03-12 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:08:05 - End Time 2025-03-12 03:08:05 [2025-03-12 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661312', 'tblTempUsageDetail_20' ) start [2025-03-12 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661312', 'tblTempUsageDetail_20' ) end [2025-03-12 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661312', 'tblTempVendorCDR_20' ) start [2025-03-12 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661312', 'tblTempVendorCDR_20' ) end [2025-03-12 03:08:17] Production.INFO: ProcessCDR(1,14661312,1,1,2) [2025-03-12 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661312', 'tblTempUsageDetail_20' ) start [2025-03-12 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661312', 'tblTempUsageDetail_20' ) end [2025-03-12 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:08:20] Production.INFO: ==4879== Releasing lock... [2025-03-12 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:09:05 [end_date_ymd] => 2025-03-12 03:09:05 [RateCDR] => 1 ) [2025-03-12 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:09:05' and `end` < '2025-03-12 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:09:17] Production.INFO: count ==341 [2025-03-12 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:09:05 - End Time 2025-03-12 03:09:05 [2025-03-12 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661317', 'tblTempUsageDetail_20' ) start [2025-03-12 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661317', 'tblTempUsageDetail_20' ) end [2025-03-12 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661317', 'tblTempVendorCDR_20' ) start [2025-03-12 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661317', 'tblTempVendorCDR_20' ) end [2025-03-12 03:09:17] Production.INFO: ProcessCDR(1,14661317,1,1,2) [2025-03-12 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661317', 'tblTempUsageDetail_20' ) start [2025-03-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661317', 'tblTempUsageDetail_20' ) end [2025-03-12 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:09:21] Production.INFO: ==5032== Releasing lock... [2025-03-12 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:10:05 [end_date_ymd] => 2025-03-12 03:10:05 [RateCDR] => 1 ) [2025-03-12 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:10:05' and `end` < '2025-03-12 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:10:17] Production.INFO: count ==331 [2025-03-12 03:10:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:10:05 - End Time 2025-03-12 03:10:05 [2025-03-12 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661322', 'tblTempUsageDetail_20' ) start [2025-03-12 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661322', 'tblTempUsageDetail_20' ) end [2025-03-12 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661322', 'tblTempVendorCDR_20' ) start [2025-03-12 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661322', 'tblTempVendorCDR_20' ) end [2025-03-12 03:10:17] Production.INFO: ProcessCDR(1,14661322,1,1,2) [2025-03-12 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661322', 'tblTempUsageDetail_20' ) start [2025-03-12 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661322', 'tblTempUsageDetail_20' ) end [2025-03-12 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:10:21] Production.INFO: ==5118== Releasing lock... [2025-03-12 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:10:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:11:05 [end_date_ymd] => 2025-03-12 03:11:05 [RateCDR] => 1 ) [2025-03-12 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:11:05' and `end` < '2025-03-12 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:11:17] Production.INFO: count ==310 [2025-03-12 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:11:05 - End Time 2025-03-12 03:11:05 [2025-03-12 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661328', 'tblTempUsageDetail_20' ) start [2025-03-12 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661328', 'tblTempUsageDetail_20' ) end [2025-03-12 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661328', 'tblTempVendorCDR_20' ) start [2025-03-12 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661328', 'tblTempVendorCDR_20' ) end [2025-03-12 03:11:17] Production.INFO: ProcessCDR(1,14661328,1,1,2) [2025-03-12 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661328', 'tblTempUsageDetail_20' ) start [2025-03-12 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661328', 'tblTempUsageDetail_20' ) end [2025-03-12 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:11:20] Production.INFO: ==5199== Releasing lock... [2025-03-12 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:12:05 [end_date_ymd] => 2025-03-12 03:12:05 [RateCDR] => 1 ) [2025-03-12 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:12:05' and `end` < '2025-03-12 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:12:17] Production.INFO: count ==304 [2025-03-12 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:12:05 - End Time 2025-03-12 03:12:05 [2025-03-12 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661333', 'tblTempUsageDetail_20' ) start [2025-03-12 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661333', 'tblTempUsageDetail_20' ) end [2025-03-12 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661333', 'tblTempVendorCDR_20' ) start [2025-03-12 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661333', 'tblTempVendorCDR_20' ) end [2025-03-12 03:12:17] Production.INFO: ProcessCDR(1,14661333,1,1,2) [2025-03-12 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661333', 'tblTempUsageDetail_20' ) start [2025-03-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661333', 'tblTempUsageDetail_20' ) end [2025-03-12 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:12:21] Production.INFO: ==5279== Releasing lock... [2025-03-12 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:13:05 [end_date_ymd] => 2025-03-12 03:13:05 [RateCDR] => 1 ) [2025-03-12 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:13:05' and `end` < '2025-03-12 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:13:17] Production.INFO: count ==298 [2025-03-12 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:13:05 - End Time 2025-03-12 03:13:05 [2025-03-12 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661338', 'tblTempUsageDetail_20' ) start [2025-03-12 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661338', 'tblTempUsageDetail_20' ) end [2025-03-12 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661338', 'tblTempVendorCDR_20' ) start [2025-03-12 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661338', 'tblTempVendorCDR_20' ) end [2025-03-12 03:13:17] Production.INFO: ProcessCDR(1,14661338,1,1,2) [2025-03-12 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661338', 'tblTempUsageDetail_20' ) start [2025-03-12 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661338', 'tblTempUsageDetail_20' ) end [2025-03-12 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:13:20] Production.INFO: ==5430== Releasing lock... [2025-03-12 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:13:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:14:05 [end_date_ymd] => 2025-03-12 03:14:05 [RateCDR] => 1 ) [2025-03-12 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:14:05' and `end` < '2025-03-12 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:14:17] Production.INFO: count ==297 [2025-03-12 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:14:05 - End Time 2025-03-12 03:14:05 [2025-03-12 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661343', 'tblTempUsageDetail_20' ) start [2025-03-12 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661343', 'tblTempUsageDetail_20' ) end [2025-03-12 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661343', 'tblTempVendorCDR_20' ) start [2025-03-12 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661343', 'tblTempVendorCDR_20' ) end [2025-03-12 03:14:17] Production.INFO: ProcessCDR(1,14661343,1,1,2) [2025-03-12 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661343', 'tblTempUsageDetail_20' ) start [2025-03-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661343', 'tblTempUsageDetail_20' ) end [2025-03-12 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:14:21] Production.INFO: ==5506== Releasing lock... [2025-03-12 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:15:05 [end_date_ymd] => 2025-03-12 03:15:05 [RateCDR] => 1 ) [2025-03-12 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:15:05' and `end` < '2025-03-12 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:15:17] Production.INFO: count ==296 [2025-03-12 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:15:05 - End Time 2025-03-12 03:15:05 [2025-03-12 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661348', 'tblTempUsageDetail_20' ) start [2025-03-12 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661348', 'tblTempUsageDetail_20' ) end [2025-03-12 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661348', 'tblTempVendorCDR_20' ) start [2025-03-12 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661348', 'tblTempVendorCDR_20' ) end [2025-03-12 03:15:17] Production.INFO: ProcessCDR(1,14661348,1,1,2) [2025-03-12 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661348', 'tblTempUsageDetail_20' ) start [2025-03-12 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661348', 'tblTempUsageDetail_20' ) end [2025-03-12 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:15:20] Production.INFO: ==5622== Releasing lock... [2025-03-12 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:16:06 [end_date_ymd] => 2025-03-12 03:16:06 [RateCDR] => 1 ) [2025-03-12 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:16:06' and `end` < '2025-03-12 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:16:18] Production.INFO: count ==296 [2025-03-12 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:16:06 - End Time 2025-03-12 03:16:06 [2025-03-12 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661353', 'tblTempUsageDetail_20' ) start [2025-03-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661353', 'tblTempUsageDetail_20' ) end [2025-03-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661353', 'tblTempVendorCDR_20' ) start [2025-03-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661353', 'tblTempVendorCDR_20' ) end [2025-03-12 03:16:18] Production.INFO: ProcessCDR(1,14661353,1,1,2) [2025-03-12 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661353', 'tblTempUsageDetail_20' ) start [2025-03-12 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661353', 'tblTempUsageDetail_20' ) end [2025-03-12 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:16:21] Production.INFO: ==5708== Releasing lock... [2025-03-12 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:17:05 [end_date_ymd] => 2025-03-12 03:17:05 [RateCDR] => 1 ) [2025-03-12 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:17:05' and `end` < '2025-03-12 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:17:17] Production.INFO: count ==296 [2025-03-12 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:17:05 - End Time 2025-03-12 03:17:05 [2025-03-12 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661358', 'tblTempUsageDetail_20' ) start [2025-03-12 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661358', 'tblTempUsageDetail_20' ) end [2025-03-12 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661358', 'tblTempVendorCDR_20' ) start [2025-03-12 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661358', 'tblTempVendorCDR_20' ) end [2025-03-12 03:17:17] Production.INFO: ProcessCDR(1,14661358,1,1,2) [2025-03-12 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661358', 'tblTempUsageDetail_20' ) start [2025-03-12 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661358', 'tblTempUsageDetail_20' ) end [2025-03-12 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:17:20] Production.INFO: ==5858== Releasing lock... [2025-03-12 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:18:05 [end_date_ymd] => 2025-03-12 03:18:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:18:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:18:17] Production.INFO: count ==298 [2025-03-12 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:18:05 - End Time 2025-03-12 03:18:05 [2025-03-12 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661363', 'tblTempUsageDetail_20' ) start [2025-03-12 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661363', 'tblTempUsageDetail_20' ) end [2025-03-12 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661363', 'tblTempVendorCDR_20' ) start [2025-03-12 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661363', 'tblTempVendorCDR_20' ) end [2025-03-12 03:18:17] Production.INFO: ProcessCDR(1,14661363,1,1,2) [2025-03-12 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661363', 'tblTempUsageDetail_20' ) start [2025-03-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661363', 'tblTempUsageDetail_20' ) end [2025-03-12 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:18:22] Production.INFO: ==5937== Releasing lock... [2025-03-12 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:19:05 [end_date_ymd] => 2025-03-12 03:19:05 [RateCDR] => 1 ) [2025-03-12 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:19:05' and `end` < '2025-03-12 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:19:17] Production.INFO: count ==304 [2025-03-12 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:19:05 - End Time 2025-03-12 03:19:05 [2025-03-12 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661368', 'tblTempUsageDetail_20' ) start [2025-03-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661368', 'tblTempUsageDetail_20' ) end [2025-03-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661368', 'tblTempVendorCDR_20' ) start [2025-03-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661368', 'tblTempVendorCDR_20' ) end [2025-03-12 03:19:17] Production.INFO: ProcessCDR(1,14661368,1,1,2) [2025-03-12 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661368', 'tblTempUsageDetail_20' ) start [2025-03-12 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661368', 'tblTempUsageDetail_20' ) end [2025-03-12 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:19:20] Production.INFO: ==6012== Releasing lock... [2025-03-12 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:19:20] Production.INFO: 30 MB #Memory Used# [2025-03-12 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:20:06 [end_date_ymd] => 2025-03-12 03:20:06 [RateCDR] => 1 ) [2025-03-12 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:20:06' and `end` < '2025-03-12 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:20:18] Production.INFO: count ==304 [2025-03-12 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:20:06 - End Time 2025-03-12 03:20:06 [2025-03-12 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661374', 'tblTempUsageDetail_20' ) start [2025-03-12 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661374', 'tblTempUsageDetail_20' ) end [2025-03-12 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661374', 'tblTempVendorCDR_20' ) start [2025-03-12 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661374', 'tblTempVendorCDR_20' ) end [2025-03-12 03:20:18] Production.INFO: ProcessCDR(1,14661374,1,1,2) [2025-03-12 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661374', 'tblTempUsageDetail_20' ) start [2025-03-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661374', 'tblTempUsageDetail_20' ) end [2025-03-12 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:20:22] Production.INFO: ==6088== Releasing lock... [2025-03-12 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:20:22] Production.INFO: 30 MB #Memory Used# [2025-03-12 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:21:04 [end_date_ymd] => 2025-03-12 03:21:04 [RateCDR] => 1 ) [2025-03-12 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:21:04' and `end` < '2025-03-12 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:21:16] Production.INFO: count ==296 [2025-03-12 03:21:16] Production.ERROR: pbx CDR StartTime 2025-03-12 00:21:04 - End Time 2025-03-12 03:21:04 [2025-03-12 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661379', 'tblTempUsageDetail_20' ) start [2025-03-12 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661379', 'tblTempUsageDetail_20' ) end [2025-03-12 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661379', 'tblTempVendorCDR_20' ) start [2025-03-12 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661379', 'tblTempVendorCDR_20' ) end [2025-03-12 03:21:16] Production.INFO: ProcessCDR(1,14661379,1,1,2) [2025-03-12 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661379', 'tblTempUsageDetail_20' ) start [2025-03-12 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661379', 'tblTempUsageDetail_20' ) end [2025-03-12 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:21:20] Production.INFO: ==6165== Releasing lock... [2025-03-12 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:22:05 [end_date_ymd] => 2025-03-12 03:22:05 [RateCDR] => 1 ) [2025-03-12 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:22:05' and `end` < '2025-03-12 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:22:17] Production.INFO: count ==295 [2025-03-12 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:22:05 - End Time 2025-03-12 03:22:05 [2025-03-12 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661384', 'tblTempUsageDetail_20' ) start [2025-03-12 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661384', 'tblTempUsageDetail_20' ) end [2025-03-12 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661384', 'tblTempVendorCDR_20' ) start [2025-03-12 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661384', 'tblTempVendorCDR_20' ) end [2025-03-12 03:22:17] Production.INFO: ProcessCDR(1,14661384,1,1,2) [2025-03-12 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661384', 'tblTempUsageDetail_20' ) start [2025-03-12 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661384', 'tblTempUsageDetail_20' ) end [2025-03-12 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:22:20] Production.INFO: ==6239== Releasing lock... [2025-03-12 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:23:05 [end_date_ymd] => 2025-03-12 03:23:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:23:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:23:17] Production.INFO: count ==295 [2025-03-12 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:23:05 - End Time 2025-03-12 03:23:05 [2025-03-12 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661389', 'tblTempUsageDetail_20' ) start [2025-03-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661389', 'tblTempUsageDetail_20' ) end [2025-03-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661389', 'tblTempVendorCDR_20' ) start [2025-03-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661389', 'tblTempVendorCDR_20' ) end [2025-03-12 03:23:17] Production.INFO: ProcessCDR(1,14661389,1,1,2) [2025-03-12 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661389', 'tblTempUsageDetail_20' ) start [2025-03-12 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661389', 'tblTempUsageDetail_20' ) end [2025-03-12 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:23:21] Production.INFO: ==6317== Releasing lock... [2025-03-12 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:24:05 [end_date_ymd] => 2025-03-12 03:24:05 [RateCDR] => 1 ) [2025-03-12 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:24:05' and `end` < '2025-03-12 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:24:17] Production.INFO: count ==294 [2025-03-12 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:24:05 - End Time 2025-03-12 03:24:05 [2025-03-12 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661394', 'tblTempUsageDetail_20' ) start [2025-03-12 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661394', 'tblTempUsageDetail_20' ) end [2025-03-12 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661394', 'tblTempVendorCDR_20' ) start [2025-03-12 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661394', 'tblTempVendorCDR_20' ) end [2025-03-12 03:24:17] Production.INFO: ProcessCDR(1,14661394,1,1,2) [2025-03-12 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661394', 'tblTempUsageDetail_20' ) start [2025-03-12 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661394', 'tblTempUsageDetail_20' ) end [2025-03-12 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:24:20] Production.INFO: ==6392== Releasing lock... [2025-03-12 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:24:20] Production.INFO: 30 MB #Memory Used# [2025-03-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:25:05 [end_date_ymd] => 2025-03-12 03:25:05 [RateCDR] => 1 ) [2025-03-12 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:25:05' and `end` < '2025-03-12 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:25:17] Production.INFO: count ==294 [2025-03-12 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:25:05 - End Time 2025-03-12 03:25:05 [2025-03-12 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661399', 'tblTempUsageDetail_20' ) start [2025-03-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661399', 'tblTempUsageDetail_20' ) end [2025-03-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661399', 'tblTempVendorCDR_20' ) start [2025-03-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661399', 'tblTempVendorCDR_20' ) end [2025-03-12 03:25:17] Production.INFO: ProcessCDR(1,14661399,1,1,2) [2025-03-12 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661399', 'tblTempUsageDetail_20' ) start [2025-03-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661399', 'tblTempUsageDetail_20' ) end [2025-03-12 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:25:21] Production.INFO: ==6469== Releasing lock... [2025-03-12 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-12 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:26:05 [end_date_ymd] => 2025-03-12 03:26:05 [RateCDR] => 1 ) [2025-03-12 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:26:05' and `end` < '2025-03-12 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:26:17] Production.INFO: count ==292 [2025-03-12 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:26:05 - End Time 2025-03-12 03:26:05 [2025-03-12 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661404', 'tblTempUsageDetail_20' ) start [2025-03-12 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661404', 'tblTempUsageDetail_20' ) end [2025-03-12 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661404', 'tblTempVendorCDR_20' ) start [2025-03-12 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661404', 'tblTempVendorCDR_20' ) end [2025-03-12 03:26:17] Production.INFO: ProcessCDR(1,14661404,1,1,2) [2025-03-12 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661404', 'tblTempUsageDetail_20' ) start [2025-03-12 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661404', 'tblTempUsageDetail_20' ) end [2025-03-12 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:26:20] Production.INFO: ==6548== Releasing lock... [2025-03-12 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:27:05 [end_date_ymd] => 2025-03-12 03:27:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:27:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:27:17] Production.INFO: count ==291 [2025-03-12 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:27:05 - End Time 2025-03-12 03:27:05 [2025-03-12 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661409', 'tblTempUsageDetail_20' ) start [2025-03-12 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661409', 'tblTempUsageDetail_20' ) end [2025-03-12 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661409', 'tblTempVendorCDR_20' ) start [2025-03-12 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661409', 'tblTempVendorCDR_20' ) end [2025-03-12 03:27:17] Production.INFO: ProcessCDR(1,14661409,1,1,2) [2025-03-12 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661409', 'tblTempUsageDetail_20' ) start [2025-03-12 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661409', 'tblTempUsageDetail_20' ) end [2025-03-12 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:27:21] Production.INFO: ==6653== Releasing lock... [2025-03-12 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:28:05 [end_date_ymd] => 2025-03-12 03:28:05 [RateCDR] => 1 ) [2025-03-12 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:28:05' and `end` < '2025-03-12 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:28:17] Production.INFO: count ==291 [2025-03-12 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:28:05 - End Time 2025-03-12 03:28:05 [2025-03-12 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661414', 'tblTempUsageDetail_20' ) start [2025-03-12 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661414', 'tblTempUsageDetail_20' ) end [2025-03-12 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661414', 'tblTempVendorCDR_20' ) start [2025-03-12 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661414', 'tblTempVendorCDR_20' ) end [2025-03-12 03:28:17] Production.INFO: ProcessCDR(1,14661414,1,1,2) [2025-03-12 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661414', 'tblTempUsageDetail_20' ) start [2025-03-12 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661414', 'tblTempUsageDetail_20' ) end [2025-03-12 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:28:20] Production.INFO: ==6727== Releasing lock... [2025-03-12 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:29:05 [end_date_ymd] => 2025-03-12 03:29:05 [RateCDR] => 1 ) [2025-03-12 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:29:05' and `end` < '2025-03-12 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:29:17] Production.INFO: count ==293 [2025-03-12 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:29:05 - End Time 2025-03-12 03:29:05 [2025-03-12 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661419', 'tblTempUsageDetail_20' ) start [2025-03-12 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661419', 'tblTempUsageDetail_20' ) end [2025-03-12 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661419', 'tblTempVendorCDR_20' ) start [2025-03-12 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661419', 'tblTempVendorCDR_20' ) end [2025-03-12 03:29:17] Production.INFO: ProcessCDR(1,14661419,1,1,2) [2025-03-12 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661419', 'tblTempUsageDetail_20' ) start [2025-03-12 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661419', 'tblTempUsageDetail_20' ) end [2025-03-12 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:29:21] Production.INFO: ==6800== Releasing lock... [2025-03-12 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:30:06 [end_date_ymd] => 2025-03-12 03:30:06 [RateCDR] => 1 ) [2025-03-12 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:30:06' and `end` < '2025-03-12 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:30:18] Production.INFO: count ==286 [2025-03-12 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:30:06 - End Time 2025-03-12 03:30:06 [2025-03-12 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661424', 'tblTempUsageDetail_20' ) start [2025-03-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661424', 'tblTempUsageDetail_20' ) end [2025-03-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661424', 'tblTempVendorCDR_20' ) start [2025-03-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661424', 'tblTempVendorCDR_20' ) end [2025-03-12 03:30:18] Production.INFO: ProcessCDR(1,14661424,1,1,2) [2025-03-12 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661424', 'tblTempUsageDetail_20' ) start [2025-03-12 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661424', 'tblTempUsageDetail_20' ) end [2025-03-12 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:30:22] Production.INFO: ==6875== Releasing lock... [2025-03-12 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-03-12 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:31:06 [end_date_ymd] => 2025-03-12 03:31:06 [RateCDR] => 1 ) [2025-03-12 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:31:06' and `end` < '2025-03-12 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:31:18] Production.INFO: count ==274 [2025-03-12 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:31:06 - End Time 2025-03-12 03:31:06 [2025-03-12 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661430', 'tblTempUsageDetail_20' ) start [2025-03-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661430', 'tblTempUsageDetail_20' ) end [2025-03-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661430', 'tblTempVendorCDR_20' ) start [2025-03-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661430', 'tblTempVendorCDR_20' ) end [2025-03-12 03:31:18] Production.INFO: ProcessCDR(1,14661430,1,1,2) [2025-03-12 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661430', 'tblTempUsageDetail_20' ) start [2025-03-12 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661430', 'tblTempUsageDetail_20' ) end [2025-03-12 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:31:22] Production.INFO: ==6950== Releasing lock... [2025-03-12 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:32:05 [end_date_ymd] => 2025-03-12 03:32:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:32:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:32:18] Production.INFO: count ==270 [2025-03-12 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:32:05 - End Time 2025-03-12 03:32:05 [2025-03-12 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661435', 'tblTempUsageDetail_20' ) start [2025-03-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661435', 'tblTempUsageDetail_20' ) end [2025-03-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661435', 'tblTempVendorCDR_20' ) start [2025-03-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661435', 'tblTempVendorCDR_20' ) end [2025-03-12 03:32:18] Production.INFO: ProcessCDR(1,14661435,1,1,2) [2025-03-12 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661435', 'tblTempUsageDetail_20' ) start [2025-03-12 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661435', 'tblTempUsageDetail_20' ) end [2025-03-12 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:32:21] Production.INFO: ==7067== Releasing lock... [2025-03-12 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:33:06 [end_date_ymd] => 2025-03-12 03:33:06 [RateCDR] => 1 ) [2025-03-12 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:33:06' and `end` < '2025-03-12 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:33:18] Production.INFO: count ==270 [2025-03-12 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:33:06 - End Time 2025-03-12 03:33:06 [2025-03-12 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661440', 'tblTempUsageDetail_20' ) start [2025-03-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661440', 'tblTempUsageDetail_20' ) end [2025-03-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661440', 'tblTempVendorCDR_20' ) start [2025-03-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661440', 'tblTempVendorCDR_20' ) end [2025-03-12 03:33:18] Production.INFO: ProcessCDR(1,14661440,1,1,2) [2025-03-12 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661440', 'tblTempUsageDetail_20' ) start [2025-03-12 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661440', 'tblTempUsageDetail_20' ) end [2025-03-12 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:33:21] Production.INFO: ==7152== Releasing lock... [2025-03-12 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:34:05 [end_date_ymd] => 2025-03-12 03:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:34:17] Production.INFO: count ==274 [2025-03-12 03:34:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:34:05 - End Time 2025-03-12 03:34:05 [2025-03-12 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661445', 'tblTempUsageDetail_20' ) start [2025-03-12 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661445', 'tblTempUsageDetail_20' ) end [2025-03-12 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661445', 'tblTempVendorCDR_20' ) start [2025-03-12 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661445', 'tblTempVendorCDR_20' ) end [2025-03-12 03:34:17] Production.INFO: ProcessCDR(1,14661445,1,1,2) [2025-03-12 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661445', 'tblTempUsageDetail_20' ) start [2025-03-12 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661445', 'tblTempUsageDetail_20' ) end [2025-03-12 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:34:21] Production.INFO: ==7233== Releasing lock... [2025-03-12 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:35:06 [end_date_ymd] => 2025-03-12 03:35:06 [RateCDR] => 1 ) [2025-03-12 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:35:06' and `end` < '2025-03-12 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:35:18] Production.INFO: count ==274 [2025-03-12 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:35:06 - End Time 2025-03-12 03:35:06 [2025-03-12 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661450', 'tblTempUsageDetail_20' ) start [2025-03-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661450', 'tblTempUsageDetail_20' ) end [2025-03-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661450', 'tblTempVendorCDR_20' ) start [2025-03-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661450', 'tblTempVendorCDR_20' ) end [2025-03-12 03:35:18] Production.INFO: ProcessCDR(1,14661450,1,1,2) [2025-03-12 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661450', 'tblTempUsageDetail_20' ) start [2025-03-12 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661450', 'tblTempUsageDetail_20' ) end [2025-03-12 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:35:22] Production.INFO: ==7318== Releasing lock... [2025-03-12 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:36:05 [end_date_ymd] => 2025-03-12 03:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:36:18] Production.INFO: count ==274 [2025-03-12 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:36:05 - End Time 2025-03-12 03:36:05 [2025-03-12 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661455', 'tblTempUsageDetail_20' ) start [2025-03-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661455', 'tblTempUsageDetail_20' ) end [2025-03-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661455', 'tblTempVendorCDR_20' ) start [2025-03-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661455', 'tblTempVendorCDR_20' ) end [2025-03-12 03:36:18] Production.INFO: ProcessCDR(1,14661455,1,1,2) [2025-03-12 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661455', 'tblTempUsageDetail_20' ) start [2025-03-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661455', 'tblTempUsageDetail_20' ) end [2025-03-12 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:36:21] Production.INFO: ==7406== Releasing lock... [2025-03-12 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:37:06 [end_date_ymd] => 2025-03-12 03:37:06 [RateCDR] => 1 ) [2025-03-12 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:37:06' and `end` < '2025-03-12 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:37:18] Production.INFO: count ==274 [2025-03-12 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:37:06 - End Time 2025-03-12 03:37:06 [2025-03-12 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661460', 'tblTempUsageDetail_20' ) start [2025-03-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661460', 'tblTempUsageDetail_20' ) end [2025-03-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661460', 'tblTempVendorCDR_20' ) start [2025-03-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661460', 'tblTempVendorCDR_20' ) end [2025-03-12 03:37:18] Production.INFO: ProcessCDR(1,14661460,1,1,2) [2025-03-12 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661460', 'tblTempUsageDetail_20' ) start [2025-03-12 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661460', 'tblTempUsageDetail_20' ) end [2025-03-12 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:37:22] Production.INFO: ==7495== Releasing lock... [2025-03-12 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:38:05 [end_date_ymd] => 2025-03-12 03:38:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:38:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:38:17] Production.INFO: count ==274 [2025-03-12 03:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:38:05 - End Time 2025-03-12 03:38:05 [2025-03-12 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661465', 'tblTempUsageDetail_20' ) start [2025-03-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661465', 'tblTempUsageDetail_20' ) end [2025-03-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661465', 'tblTempVendorCDR_20' ) start [2025-03-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661465', 'tblTempVendorCDR_20' ) end [2025-03-12 03:38:17] Production.INFO: ProcessCDR(1,14661465,1,1,2) [2025-03-12 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661465', 'tblTempUsageDetail_20' ) start [2025-03-12 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661465', 'tblTempUsageDetail_20' ) end [2025-03-12 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:38:21] Production.INFO: ==7580== Releasing lock... [2025-03-12 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:39:05 [end_date_ymd] => 2025-03-12 03:39:05 [RateCDR] => 1 ) [2025-03-12 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:39:05' and `end` < '2025-03-12 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:39:17] Production.INFO: count ==273 [2025-03-12 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:39:05 - End Time 2025-03-12 03:39:05 [2025-03-12 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661470', 'tblTempUsageDetail_20' ) start [2025-03-12 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661470', 'tblTempUsageDetail_20' ) end [2025-03-12 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661470', 'tblTempVendorCDR_20' ) start [2025-03-12 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661470', 'tblTempVendorCDR_20' ) end [2025-03-12 03:39:17] Production.INFO: ProcessCDR(1,14661470,1,1,2) [2025-03-12 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661470', 'tblTempUsageDetail_20' ) start [2025-03-12 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661470', 'tblTempUsageDetail_20' ) end [2025-03-12 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:39:21] Production.INFO: ==7666== Releasing lock... [2025-03-12 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:40:06 [end_date_ymd] => 2025-03-12 03:40:06 [RateCDR] => 1 ) [2025-03-12 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:40:06' and `end` < '2025-03-12 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:40:18] Production.INFO: count ==264 [2025-03-12 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:40:06 - End Time 2025-03-12 03:40:06 [2025-03-12 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661473', 'tblTempUsageDetail_20' ) start [2025-03-12 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661473', 'tblTempUsageDetail_20' ) end [2025-03-12 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661473', 'tblTempVendorCDR_20' ) start [2025-03-12 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661473', 'tblTempVendorCDR_20' ) end [2025-03-12 03:40:18] Production.INFO: ProcessCDR(1,14661473,1,1,2) [2025-03-12 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661473', 'tblTempUsageDetail_20' ) start [2025-03-12 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661473', 'tblTempUsageDetail_20' ) end [2025-03-12 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:40:22] Production.INFO: ==7753== Releasing lock... [2025-03-12 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:41:06 [end_date_ymd] => 2025-03-12 03:41:06 [RateCDR] => 1 ) [2025-03-12 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:41:06' and `end` < '2025-03-12 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:41:18] Production.INFO: count ==254 [2025-03-12 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:41:06 - End Time 2025-03-12 03:41:06 [2025-03-12 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661481', 'tblTempUsageDetail_20' ) start [2025-03-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661481', 'tblTempUsageDetail_20' ) end [2025-03-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661481', 'tblTempVendorCDR_20' ) start [2025-03-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661481', 'tblTempVendorCDR_20' ) end [2025-03-12 03:41:18] Production.INFO: ProcessCDR(1,14661481,1,1,2) [2025-03-12 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661481', 'tblTempUsageDetail_20' ) start [2025-03-12 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661481', 'tblTempUsageDetail_20' ) end [2025-03-12 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:41:22] Production.INFO: ==7837== Releasing lock... [2025-03-12 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:42:05 [end_date_ymd] => 2025-03-12 03:42:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:42:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:42:17] Production.INFO: count ==254 [2025-03-12 03:42:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:42:05 - End Time 2025-03-12 03:42:05 [2025-03-12 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661486', 'tblTempUsageDetail_20' ) start [2025-03-12 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661486', 'tblTempUsageDetail_20' ) end [2025-03-12 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661486', 'tblTempVendorCDR_20' ) start [2025-03-12 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661486', 'tblTempVendorCDR_20' ) end [2025-03-12 03:42:17] Production.INFO: ProcessCDR(1,14661486,1,1,2) [2025-03-12 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661486', 'tblTempUsageDetail_20' ) start [2025-03-12 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661486', 'tblTempUsageDetail_20' ) end [2025-03-12 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:42:21] Production.INFO: ==7913== Releasing lock... [2025-03-12 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:43:06 [end_date_ymd] => 2025-03-12 03:43:06 [RateCDR] => 1 ) [2025-03-12 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:43:06' and `end` < '2025-03-12 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:43:18] Production.INFO: count ==254 [2025-03-12 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:43:06 - End Time 2025-03-12 03:43:06 [2025-03-12 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661491', 'tblTempUsageDetail_20' ) start [2025-03-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661491', 'tblTempUsageDetail_20' ) end [2025-03-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661491', 'tblTempVendorCDR_20' ) start [2025-03-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661491', 'tblTempVendorCDR_20' ) end [2025-03-12 03:43:18] Production.INFO: ProcessCDR(1,14661491,1,1,2) [2025-03-12 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661491', 'tblTempUsageDetail_20' ) start [2025-03-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661491', 'tblTempUsageDetail_20' ) end [2025-03-12 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:43:22] Production.INFO: ==7988== Releasing lock... [2025-03-12 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:44:05 [end_date_ymd] => 2025-03-12 03:44:05 [RateCDR] => 1 ) [2025-03-12 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:44:05' and `end` < '2025-03-12 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:44:17] Production.INFO: count ==254 [2025-03-12 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:44:05 - End Time 2025-03-12 03:44:05 [2025-03-12 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661496', 'tblTempUsageDetail_20' ) start [2025-03-12 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661496', 'tblTempUsageDetail_20' ) end [2025-03-12 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661496', 'tblTempVendorCDR_20' ) start [2025-03-12 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661496', 'tblTempVendorCDR_20' ) end [2025-03-12 03:44:17] Production.INFO: ProcessCDR(1,14661496,1,1,2) [2025-03-12 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661496', 'tblTempUsageDetail_20' ) start [2025-03-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661496', 'tblTempUsageDetail_20' ) end [2025-03-12 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:44:21] Production.INFO: ==8058== Releasing lock... [2025-03-12 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:45:06 [end_date_ymd] => 2025-03-12 03:45:06 [RateCDR] => 1 ) [2025-03-12 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:45:06' and `end` < '2025-03-12 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:45:18] Production.INFO: count ==254 [2025-03-12 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:45:06 - End Time 2025-03-12 03:45:06 [2025-03-12 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661501', 'tblTempUsageDetail_20' ) start [2025-03-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661501', 'tblTempUsageDetail_20' ) end [2025-03-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661501', 'tblTempVendorCDR_20' ) start [2025-03-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661501', 'tblTempVendorCDR_20' ) end [2025-03-12 03:45:18] Production.INFO: ProcessCDR(1,14661501,1,1,2) [2025-03-12 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661501', 'tblTempUsageDetail_20' ) start [2025-03-12 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661501', 'tblTempUsageDetail_20' ) end [2025-03-12 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:45:22] Production.INFO: ==8129== Releasing lock... [2025-03-12 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:46:06 [end_date_ymd] => 2025-03-12 03:46:06 [RateCDR] => 1 ) [2025-03-12 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:46:06' and `end` < '2025-03-12 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:46:18] Production.INFO: count ==253 [2025-03-12 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:46:06 - End Time 2025-03-12 03:46:06 [2025-03-12 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661506', 'tblTempUsageDetail_20' ) start [2025-03-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661506', 'tblTempUsageDetail_20' ) end [2025-03-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661506', 'tblTempVendorCDR_20' ) start [2025-03-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661506', 'tblTempVendorCDR_20' ) end [2025-03-12 03:46:18] Production.INFO: ProcessCDR(1,14661506,1,1,2) [2025-03-12 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661506', 'tblTempUsageDetail_20' ) start [2025-03-12 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661506', 'tblTempUsageDetail_20' ) end [2025-03-12 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:46:22] Production.INFO: ==8201== Releasing lock... [2025-03-12 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:47:06 [end_date_ymd] => 2025-03-12 03:47:06 [RateCDR] => 1 ) [2025-03-12 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:47:06' and `end` < '2025-03-12 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:47:18] Production.INFO: count ==253 [2025-03-12 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:47:06 - End Time 2025-03-12 03:47:06 [2025-03-12 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661511', 'tblTempUsageDetail_20' ) start [2025-03-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661511', 'tblTempUsageDetail_20' ) end [2025-03-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661511', 'tblTempVendorCDR_20' ) start [2025-03-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661511', 'tblTempVendorCDR_20' ) end [2025-03-12 03:47:18] Production.INFO: ProcessCDR(1,14661511,1,1,2) [2025-03-12 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661511', 'tblTempUsageDetail_20' ) start [2025-03-12 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661511', 'tblTempUsageDetail_20' ) end [2025-03-12 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:47:21] Production.INFO: ==8276== Releasing lock... [2025-03-12 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:48:05 [end_date_ymd] => 2025-03-12 03:48:05 [RateCDR] => 1 ) [2025-03-12 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:48:05' and `end` < '2025-03-12 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:48:17] Production.INFO: count ==253 [2025-03-12 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:48:05 - End Time 2025-03-12 03:48:05 [2025-03-12 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661516', 'tblTempUsageDetail_20' ) start [2025-03-12 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661516', 'tblTempUsageDetail_20' ) end [2025-03-12 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661516', 'tblTempVendorCDR_20' ) start [2025-03-12 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661516', 'tblTempVendorCDR_20' ) end [2025-03-12 03:48:17] Production.INFO: ProcessCDR(1,14661516,1,1,2) [2025-03-12 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661516', 'tblTempUsageDetail_20' ) start [2025-03-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661516', 'tblTempUsageDetail_20' ) end [2025-03-12 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:48:21] Production.INFO: ==8385== Releasing lock... [2025-03-12 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:49:06 [end_date_ymd] => 2025-03-12 03:49:06 [RateCDR] => 1 ) [2025-03-12 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:49:06' and `end` < '2025-03-12 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:49:18] Production.INFO: count ==253 [2025-03-12 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:49:06 - End Time 2025-03-12 03:49:06 [2025-03-12 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661521', 'tblTempUsageDetail_20' ) start [2025-03-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661521', 'tblTempUsageDetail_20' ) end [2025-03-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661521', 'tblTempVendorCDR_20' ) start [2025-03-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661521', 'tblTempVendorCDR_20' ) end [2025-03-12 03:49:18] Production.INFO: ProcessCDR(1,14661521,1,1,2) [2025-03-12 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661521', 'tblTempUsageDetail_20' ) start [2025-03-12 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661521', 'tblTempUsageDetail_20' ) end [2025-03-12 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:49:22] Production.INFO: ==8464== Releasing lock... [2025-03-12 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:50:07 [end_date_ymd] => 2025-03-12 03:50:07 [RateCDR] => 1 ) [2025-03-12 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:50:07' and `end` < '2025-03-12 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:50:19] Production.INFO: count ==249 [2025-03-12 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 00:50:07 - End Time 2025-03-12 03:50:07 [2025-03-12 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661527', 'tblTempUsageDetail_20' ) start [2025-03-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661527', 'tblTempUsageDetail_20' ) end [2025-03-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661527', 'tblTempVendorCDR_20' ) start [2025-03-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661527', 'tblTempVendorCDR_20' ) end [2025-03-12 03:50:19] Production.INFO: ProcessCDR(1,14661527,1,1,2) [2025-03-12 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661527', 'tblTempUsageDetail_20' ) start [2025-03-12 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661527', 'tblTempUsageDetail_20' ) end [2025-03-12 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:50:22] Production.INFO: ==8537== Releasing lock... [2025-03-12 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:51:06 [end_date_ymd] => 2025-03-12 03:51:06 [RateCDR] => 1 ) [2025-03-12 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:51:06' and `end` < '2025-03-12 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:51:18] Production.INFO: count ==241 [2025-03-12 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:51:06 - End Time 2025-03-12 03:51:06 [2025-03-12 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661532', 'tblTempUsageDetail_20' ) start [2025-03-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661532', 'tblTempUsageDetail_20' ) end [2025-03-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661532', 'tblTempVendorCDR_20' ) start [2025-03-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661532', 'tblTempVendorCDR_20' ) end [2025-03-12 03:51:18] Production.INFO: ProcessCDR(1,14661532,1,1,2) [2025-03-12 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661532', 'tblTempUsageDetail_20' ) start [2025-03-12 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661532', 'tblTempUsageDetail_20' ) end [2025-03-12 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:51:22] Production.INFO: ==8611== Releasing lock... [2025-03-12 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:52:06 [end_date_ymd] => 2025-03-12 03:52:06 [RateCDR] => 1 ) [2025-03-12 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:52:06' and `end` < '2025-03-12 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:52:18] Production.INFO: count ==237 [2025-03-12 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:52:06 - End Time 2025-03-12 03:52:06 [2025-03-12 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661537', 'tblTempUsageDetail_20' ) start [2025-03-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661537', 'tblTempUsageDetail_20' ) end [2025-03-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661537', 'tblTempVendorCDR_20' ) start [2025-03-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661537', 'tblTempVendorCDR_20' ) end [2025-03-12 03:52:18] Production.INFO: ProcessCDR(1,14661537,1,1,2) [2025-03-12 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661537', 'tblTempUsageDetail_20' ) start [2025-03-12 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661537', 'tblTempUsageDetail_20' ) end [2025-03-12 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:52:21] Production.INFO: ==8684== Releasing lock... [2025-03-12 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:53:05 [end_date_ymd] => 2025-03-12 03:53:05 [RateCDR] => 1 ) [2025-03-12 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:53:05' and `end` < '2025-03-12 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:53:17] Production.INFO: count ==237 [2025-03-12 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:53:05 - End Time 2025-03-12 03:53:05 [2025-03-12 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661542', 'tblTempUsageDetail_20' ) start [2025-03-12 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661542', 'tblTempUsageDetail_20' ) end [2025-03-12 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661542', 'tblTempVendorCDR_20' ) start [2025-03-12 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661542', 'tblTempVendorCDR_20' ) end [2025-03-12 03:53:17] Production.INFO: ProcessCDR(1,14661542,1,1,2) [2025-03-12 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661542', 'tblTempUsageDetail_20' ) start [2025-03-12 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661542', 'tblTempUsageDetail_20' ) end [2025-03-12 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:53:21] Production.INFO: ==8757== Releasing lock... [2025-03-12 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:54:05 [end_date_ymd] => 2025-03-12 03:54:05 [RateCDR] => 1 ) [2025-03-12 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:54:05' and `end` < '2025-03-12 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:54:18] Production.INFO: count ==237 [2025-03-12 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:54:05 - End Time 2025-03-12 03:54:05 [2025-03-12 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661547', 'tblTempUsageDetail_20' ) start [2025-03-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661547', 'tblTempUsageDetail_20' ) end [2025-03-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661547', 'tblTempVendorCDR_20' ) start [2025-03-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661547', 'tblTempVendorCDR_20' ) end [2025-03-12 03:54:18] Production.INFO: ProcessCDR(1,14661547,1,1,2) [2025-03-12 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661547', 'tblTempUsageDetail_20' ) start [2025-03-12 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661547', 'tblTempUsageDetail_20' ) end [2025-03-12 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:54:21] Production.INFO: ==8827== Releasing lock... [2025-03-12 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:55:05 [end_date_ymd] => 2025-03-12 03:55:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:55:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:55:17] Production.INFO: count ==237 [2025-03-12 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:55:05 - End Time 2025-03-12 03:55:05 [2025-03-12 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661552', 'tblTempUsageDetail_20' ) start [2025-03-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661552', 'tblTempUsageDetail_20' ) end [2025-03-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661552', 'tblTempVendorCDR_20' ) start [2025-03-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661552', 'tblTempVendorCDR_20' ) end [2025-03-12 03:55:17] Production.INFO: ProcessCDR(1,14661552,1,1,2) [2025-03-12 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661552', 'tblTempUsageDetail_20' ) start [2025-03-12 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661552', 'tblTempUsageDetail_20' ) end [2025-03-12 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:55:21] Production.INFO: ==8902== Releasing lock... [2025-03-12 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:56:05 [end_date_ymd] => 2025-03-12 03:56:05 [RateCDR] => 1 ) [2025-03-12 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:56:05' and `end` < '2025-03-12 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:56:17] Production.INFO: count ==235 [2025-03-12 03:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:56:05 - End Time 2025-03-12 03:56:05 [2025-03-12 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661557', 'tblTempUsageDetail_20' ) start [2025-03-12 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661557', 'tblTempUsageDetail_20' ) end [2025-03-12 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661557', 'tblTempVendorCDR_20' ) start [2025-03-12 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661557', 'tblTempVendorCDR_20' ) end [2025-03-12 03:56:17] Production.INFO: ProcessCDR(1,14661557,1,1,2) [2025-03-12 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661557', 'tblTempUsageDetail_20' ) start [2025-03-12 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661557', 'tblTempUsageDetail_20' ) end [2025-03-12 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:56:21] Production.INFO: ==8975== Releasing lock... [2025-03-12 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:57:05 [end_date_ymd] => 2025-03-12 03:57:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 00:57:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:57:17] Production.INFO: count ==232 [2025-03-12 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:57:05 - End Time 2025-03-12 03:57:05 [2025-03-12 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661562', 'tblTempUsageDetail_20' ) start [2025-03-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661562', 'tblTempUsageDetail_20' ) end [2025-03-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661562', 'tblTempVendorCDR_20' ) start [2025-03-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661562', 'tblTempVendorCDR_20' ) end [2025-03-12 03:57:17] Production.INFO: ProcessCDR(1,14661562,1,1,2) [2025-03-12 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661562', 'tblTempUsageDetail_20' ) start [2025-03-12 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661562', 'tblTempUsageDetail_20' ) end [2025-03-12 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:57:21] Production.INFO: ==9048== Releasing lock... [2025-03-12 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:58:05 [end_date_ymd] => 2025-03-12 03:58:05 [RateCDR] => 1 ) [2025-03-12 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:58:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 03:58:18] Production.INFO: count ==232 [2025-03-12 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 00:58:05 - End Time 2025-03-12 03:58:05 [2025-03-12 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661567', 'tblTempUsageDetail_20' ) start [2025-03-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661567', 'tblTempUsageDetail_20' ) end [2025-03-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661567', 'tblTempVendorCDR_20' ) start [2025-03-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661567', 'tblTempVendorCDR_20' ) end [2025-03-12 03:58:18] Production.INFO: ProcessCDR(1,14661567,1,1,2) [2025-03-12 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661567', 'tblTempUsageDetail_20' ) start [2025-03-12 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661567', 'tblTempUsageDetail_20' ) end [2025-03-12 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:58:21] Production.INFO: ==9120== Releasing lock... [2025-03-12 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 00:59:05 [end_date_ymd] => 2025-03-12 03:59:05 [RateCDR] => 1 ) [2025-03-12 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 00:59:05' and `end` < '2025-03-12 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 03:59:17] Production.INFO: count ==231 [2025-03-12 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 00:59:05 - End Time 2025-03-12 03:59:05 [2025-03-12 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661572', 'tblTempUsageDetail_20' ) start [2025-03-12 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661572', 'tblTempUsageDetail_20' ) end [2025-03-12 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661572', 'tblTempVendorCDR_20' ) start [2025-03-12 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661572', 'tblTempVendorCDR_20' ) end [2025-03-12 03:59:17] Production.INFO: ProcessCDR(1,14661572,1,1,2) [2025-03-12 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661572', 'tblTempUsageDetail_20' ) start [2025-03-12 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661572', 'tblTempUsageDetail_20' ) end [2025-03-12 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 03:59:21] Production.INFO: ==9191== Releasing lock... [2025-03-12 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 03:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:00:07 [end_date_ymd] => 2025-03-12 04:00:07 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:00:07' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:00:19] Production.INFO: count ==225 [2025-03-12 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-12 01:00:07 - End Time 2025-03-12 04:00:07 [2025-03-12 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661578', 'tblTempUsageDetail_20' ) start [2025-03-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661578', 'tblTempUsageDetail_20' ) end [2025-03-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661578', 'tblTempVendorCDR_20' ) start [2025-03-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661578', 'tblTempVendorCDR_20' ) end [2025-03-12 04:00:19] Production.INFO: ProcessCDR(1,14661578,1,1,2) [2025-03-12 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661578', 'tblTempUsageDetail_20' ) start [2025-03-12 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661578', 'tblTempUsageDetail_20' ) end [2025-03-12 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:00:22] Production.INFO: ==9264== Releasing lock... [2025-03-12 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:01:06 [end_date_ymd] => 2025-03-12 04:01:06 [RateCDR] => 1 ) [2025-03-12 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:01:06' and `end` < '2025-03-12 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:01:18] Production.INFO: count ==225 [2025-03-12 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:01:06 - End Time 2025-03-12 04:01:06 [2025-03-12 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661584', 'tblTempUsageDetail_20' ) start [2025-03-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661584', 'tblTempUsageDetail_20' ) end [2025-03-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661584', 'tblTempVendorCDR_20' ) start [2025-03-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661584', 'tblTempVendorCDR_20' ) end [2025-03-12 04:01:18] Production.INFO: ProcessCDR(1,14661584,1,1,2) [2025-03-12 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661584', 'tblTempUsageDetail_20' ) start [2025-03-12 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661584', 'tblTempUsageDetail_20' ) end [2025-03-12 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:01:22] Production.INFO: ==9350== Releasing lock... [2025-03-12 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:02:05 [end_date_ymd] => 2025-03-12 04:02:05 [RateCDR] => 1 ) [2025-03-12 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:02:05' and `end` < '2025-03-12 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:02:17] Production.INFO: count ==225 [2025-03-12 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:02:05 - End Time 2025-03-12 04:02:05 [2025-03-12 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661589', 'tblTempUsageDetail_20' ) start [2025-03-12 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661589', 'tblTempUsageDetail_20' ) end [2025-03-12 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661589', 'tblTempVendorCDR_20' ) start [2025-03-12 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661589', 'tblTempVendorCDR_20' ) end [2025-03-12 04:02:17] Production.INFO: ProcessCDR(1,14661589,1,1,2) [2025-03-12 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661589', 'tblTempUsageDetail_20' ) start [2025-03-12 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661589', 'tblTempUsageDetail_20' ) end [2025-03-12 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:02:21] Production.INFO: ==9427== Releasing lock... [2025-03-12 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:03:05 [end_date_ymd] => 2025-03-12 04:03:05 [RateCDR] => 1 ) [2025-03-12 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:03:05' and `end` < '2025-03-12 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:03:17] Production.INFO: count ==225 [2025-03-12 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:03:05 - End Time 2025-03-12 04:03:05 [2025-03-12 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661594', 'tblTempUsageDetail_20' ) start [2025-03-12 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661594', 'tblTempUsageDetail_20' ) end [2025-03-12 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661594', 'tblTempVendorCDR_20' ) start [2025-03-12 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661594', 'tblTempVendorCDR_20' ) end [2025-03-12 04:03:17] Production.INFO: ProcessCDR(1,14661594,1,1,2) [2025-03-12 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661594', 'tblTempUsageDetail_20' ) start [2025-03-12 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661594', 'tblTempUsageDetail_20' ) end [2025-03-12 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:03:20] Production.INFO: ==9542== Releasing lock... [2025-03-12 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:04:06 [end_date_ymd] => 2025-03-12 04:04:06 [RateCDR] => 1 ) [2025-03-12 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:04:06' and `end` < '2025-03-12 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:04:18] Production.INFO: count ==225 [2025-03-12 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:04:06 - End Time 2025-03-12 04:04:06 [2025-03-12 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661599', 'tblTempUsageDetail_20' ) start [2025-03-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661599', 'tblTempUsageDetail_20' ) end [2025-03-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661599', 'tblTempVendorCDR_20' ) start [2025-03-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661599', 'tblTempVendorCDR_20' ) end [2025-03-12 04:04:18] Production.INFO: ProcessCDR(1,14661599,1,1,2) [2025-03-12 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661599', 'tblTempUsageDetail_20' ) start [2025-03-12 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661599', 'tblTempUsageDetail_20' ) end [2025-03-12 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:04:22] Production.INFO: ==9613== Releasing lock... [2025-03-12 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:05:05 [end_date_ymd] => 2025-03-12 04:05:05 [RateCDR] => 1 ) [2025-03-12 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:05:05' and `end` < '2025-03-12 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:05:17] Production.INFO: count ==221 [2025-03-12 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:05:05 - End Time 2025-03-12 04:05:05 [2025-03-12 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661604', 'tblTempUsageDetail_20' ) start [2025-03-12 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661604', 'tblTempUsageDetail_20' ) end [2025-03-12 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661604', 'tblTempVendorCDR_20' ) start [2025-03-12 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661604', 'tblTempVendorCDR_20' ) end [2025-03-12 04:05:17] Production.INFO: ProcessCDR(1,14661604,1,1,2) [2025-03-12 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661604', 'tblTempUsageDetail_20' ) start [2025-03-12 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661604', 'tblTempUsageDetail_20' ) end [2025-03-12 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:05:21] Production.INFO: ==9687== Releasing lock... [2025-03-12 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:06:06 [end_date_ymd] => 2025-03-12 04:06:06 [RateCDR] => 1 ) [2025-03-12 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:06:06' and `end` < '2025-03-12 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:06:18] Production.INFO: count ==221 [2025-03-12 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:06:06 - End Time 2025-03-12 04:06:06 [2025-03-12 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661609', 'tblTempUsageDetail_20' ) start [2025-03-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661609', 'tblTempUsageDetail_20' ) end [2025-03-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661609', 'tblTempVendorCDR_20' ) start [2025-03-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661609', 'tblTempVendorCDR_20' ) end [2025-03-12 04:06:18] Production.INFO: ProcessCDR(1,14661609,1,1,2) [2025-03-12 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661609', 'tblTempUsageDetail_20' ) start [2025-03-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661609', 'tblTempUsageDetail_20' ) end [2025-03-12 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:06:21] Production.INFO: ==9761== Releasing lock... [2025-03-12 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:07:05 [end_date_ymd] => 2025-03-12 04:07:05 [RateCDR] => 1 ) [2025-03-12 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:07:05' and `end` < '2025-03-12 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:07:17] Production.INFO: count ==221 [2025-03-12 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:07:05 - End Time 2025-03-12 04:07:05 [2025-03-12 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661614', 'tblTempUsageDetail_20' ) start [2025-03-12 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661614', 'tblTempUsageDetail_20' ) end [2025-03-12 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661614', 'tblTempVendorCDR_20' ) start [2025-03-12 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661614', 'tblTempVendorCDR_20' ) end [2025-03-12 04:07:17] Production.INFO: ProcessCDR(1,14661614,1,1,2) [2025-03-12 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661614', 'tblTempUsageDetail_20' ) start [2025-03-12 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661614', 'tblTempUsageDetail_20' ) end [2025-03-12 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:07:21] Production.INFO: ==9835== Releasing lock... [2025-03-12 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:08:05 [end_date_ymd] => 2025-03-12 04:08:05 [RateCDR] => 1 ) [2025-03-12 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:08:05' and `end` < '2025-03-12 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:08:17] Production.INFO: count ==221 [2025-03-12 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:08:05 - End Time 2025-03-12 04:08:05 [2025-03-12 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661619', 'tblTempUsageDetail_20' ) start [2025-03-12 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661619', 'tblTempUsageDetail_20' ) end [2025-03-12 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661619', 'tblTempVendorCDR_20' ) start [2025-03-12 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661619', 'tblTempVendorCDR_20' ) end [2025-03-12 04:08:17] Production.INFO: ProcessCDR(1,14661619,1,1,2) [2025-03-12 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661619', 'tblTempUsageDetail_20' ) start [2025-03-12 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661619', 'tblTempUsageDetail_20' ) end [2025-03-12 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:08:21] Production.INFO: ==9913== Releasing lock... [2025-03-12 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:09:05 [end_date_ymd] => 2025-03-12 04:09:05 [RateCDR] => 1 ) [2025-03-12 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:09:05' and `end` < '2025-03-12 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:09:17] Production.INFO: count ==221 [2025-03-12 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:09:05 - End Time 2025-03-12 04:09:05 [2025-03-12 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661624', 'tblTempUsageDetail_20' ) start [2025-03-12 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661624', 'tblTempUsageDetail_20' ) end [2025-03-12 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661624', 'tblTempVendorCDR_20' ) start [2025-03-12 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661624', 'tblTempVendorCDR_20' ) end [2025-03-12 04:09:17] Production.INFO: ProcessCDR(1,14661624,1,1,2) [2025-03-12 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661624', 'tblTempUsageDetail_20' ) start [2025-03-12 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661624', 'tblTempUsageDetail_20' ) end [2025-03-12 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:09:21] Production.INFO: ==9987== Releasing lock... [2025-03-12 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:10:06 [end_date_ymd] => 2025-03-12 04:10:06 [RateCDR] => 1 ) [2025-03-12 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:10:06' and `end` < '2025-03-12 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:10:18] Production.INFO: count ==213 [2025-03-12 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:10:06 - End Time 2025-03-12 04:10:06 [2025-03-12 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661630', 'tblTempUsageDetail_20' ) start [2025-03-12 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661630', 'tblTempUsageDetail_20' ) end [2025-03-12 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661630', 'tblTempVendorCDR_20' ) start [2025-03-12 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661630', 'tblTempVendorCDR_20' ) end [2025-03-12 04:10:18] Production.INFO: ProcessCDR(1,14661630,1,1,2) [2025-03-12 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661630', 'tblTempUsageDetail_20' ) start [2025-03-12 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661630', 'tblTempUsageDetail_20' ) end [2025-03-12 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:10:22] Production.INFO: ==10062== Releasing lock... [2025-03-12 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:11:05 [end_date_ymd] => 2025-03-12 04:11:05 [RateCDR] => 1 ) [2025-03-12 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:11:05' and `end` < '2025-03-12 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:11:17] Production.INFO: count ==209 [2025-03-12 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:11:05 - End Time 2025-03-12 04:11:05 [2025-03-12 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661635', 'tblTempUsageDetail_20' ) start [2025-03-12 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661635', 'tblTempUsageDetail_20' ) end [2025-03-12 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661635', 'tblTempVendorCDR_20' ) start [2025-03-12 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661635', 'tblTempVendorCDR_20' ) end [2025-03-12 04:11:17] Production.INFO: ProcessCDR(1,14661635,1,1,2) [2025-03-12 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661635', 'tblTempUsageDetail_20' ) start [2025-03-12 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661635', 'tblTempUsageDetail_20' ) end [2025-03-12 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:11:20] Production.INFO: ==10137== Releasing lock... [2025-03-12 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:12:05 [end_date_ymd] => 2025-03-12 04:12:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:12:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:12:17] Production.INFO: count ==209 [2025-03-12 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:12:05 - End Time 2025-03-12 04:12:05 [2025-03-12 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661640', 'tblTempUsageDetail_20' ) start [2025-03-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661640', 'tblTempUsageDetail_20' ) end [2025-03-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661640', 'tblTempVendorCDR_20' ) start [2025-03-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661640', 'tblTempVendorCDR_20' ) end [2025-03-12 04:12:18] Production.INFO: ProcessCDR(1,14661640,1,1,2) [2025-03-12 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661640', 'tblTempUsageDetail_20' ) start [2025-03-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661640', 'tblTempUsageDetail_20' ) end [2025-03-12 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:12:21] Production.INFO: ==10213== Releasing lock... [2025-03-12 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:13:05 [end_date_ymd] => 2025-03-12 04:13:05 [RateCDR] => 1 ) [2025-03-12 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:13:05' and `end` < '2025-03-12 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:13:17] Production.INFO: count ==209 [2025-03-12 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:13:05 - End Time 2025-03-12 04:13:05 [2025-03-12 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661645', 'tblTempUsageDetail_20' ) start [2025-03-12 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661645', 'tblTempUsageDetail_20' ) end [2025-03-12 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661645', 'tblTempVendorCDR_20' ) start [2025-03-12 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661645', 'tblTempVendorCDR_20' ) end [2025-03-12 04:13:17] Production.INFO: ProcessCDR(1,14661645,1,1,2) [2025-03-12 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661645', 'tblTempUsageDetail_20' ) start [2025-03-12 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661645', 'tblTempUsageDetail_20' ) end [2025-03-12 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:13:20] Production.INFO: ==10287== Releasing lock... [2025-03-12 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:14:05 [end_date_ymd] => 2025-03-12 04:14:05 [RateCDR] => 1 ) [2025-03-12 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:14:05' and `end` < '2025-03-12 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:14:17] Production.INFO: count ==209 [2025-03-12 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:14:05 - End Time 2025-03-12 04:14:05 [2025-03-12 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661650', 'tblTempUsageDetail_20' ) start [2025-03-12 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661650', 'tblTempUsageDetail_20' ) end [2025-03-12 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661650', 'tblTempVendorCDR_20' ) start [2025-03-12 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661650', 'tblTempVendorCDR_20' ) end [2025-03-12 04:14:18] Production.INFO: ProcessCDR(1,14661650,1,1,2) [2025-03-12 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661650', 'tblTempUsageDetail_20' ) start [2025-03-12 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661650', 'tblTempUsageDetail_20' ) end [2025-03-12 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:14:21] Production.INFO: ==10366== Releasing lock... [2025-03-12 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:15:04 [end_date_ymd] => 2025-03-12 04:15:04 [RateCDR] => 1 ) [2025-03-12 04:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:15:04' and `end` < '2025-03-12 04:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:15:16] Production.INFO: count ==205 [2025-03-12 04:15:16] Production.ERROR: pbx CDR StartTime 2025-03-12 01:15:04 - End Time 2025-03-12 04:15:04 [2025-03-12 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661655', 'tblTempUsageDetail_20' ) start [2025-03-12 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661655', 'tblTempUsageDetail_20' ) end [2025-03-12 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661655', 'tblTempVendorCDR_20' ) start [2025-03-12 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661655', 'tblTempVendorCDR_20' ) end [2025-03-12 04:15:16] Production.INFO: ProcessCDR(1,14661655,1,1,2) [2025-03-12 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661655', 'tblTempUsageDetail_20' ) start [2025-03-12 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661655', 'tblTempUsageDetail_20' ) end [2025-03-12 04:15:19] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:15:20] Production.INFO: ==10447== Releasing lock... [2025-03-12 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:16:05 [end_date_ymd] => 2025-03-12 04:16:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:16:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:16:17] Production.INFO: count ==198 [2025-03-12 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:16:05 - End Time 2025-03-12 04:16:05 [2025-03-12 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661660', 'tblTempUsageDetail_20' ) start [2025-03-12 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661660', 'tblTempUsageDetail_20' ) end [2025-03-12 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661660', 'tblTempVendorCDR_20' ) start [2025-03-12 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661660', 'tblTempVendorCDR_20' ) end [2025-03-12 04:16:17] Production.INFO: ProcessCDR(1,14661660,1,1,2) [2025-03-12 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661660', 'tblTempUsageDetail_20' ) start [2025-03-12 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661660', 'tblTempUsageDetail_20' ) end [2025-03-12 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:16:20] Production.INFO: ==10525== Releasing lock... [2025-03-12 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:17:05 [end_date_ymd] => 2025-03-12 04:17:05 [RateCDR] => 1 ) [2025-03-12 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:17:05' and `end` < '2025-03-12 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:17:17] Production.INFO: count ==198 [2025-03-12 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:17:05 - End Time 2025-03-12 04:17:05 [2025-03-12 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661665', 'tblTempUsageDetail_20' ) start [2025-03-12 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661665', 'tblTempUsageDetail_20' ) end [2025-03-12 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661665', 'tblTempVendorCDR_20' ) start [2025-03-12 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661665', 'tblTempVendorCDR_20' ) end [2025-03-12 04:17:17] Production.INFO: ProcessCDR(1,14661665,1,1,2) [2025-03-12 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661665', 'tblTempUsageDetail_20' ) start [2025-03-12 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661665', 'tblTempUsageDetail_20' ) end [2025-03-12 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:17:20] Production.INFO: ==10601== Releasing lock... [2025-03-12 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:18:05 [end_date_ymd] => 2025-03-12 04:18:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:18:05' and `end` < '2025-03-12 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:18:17] Production.INFO: count ==198 [2025-03-12 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:18:05 - End Time 2025-03-12 04:18:05 [2025-03-12 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661670', 'tblTempUsageDetail_20' ) start [2025-03-12 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661670', 'tblTempUsageDetail_20' ) end [2025-03-12 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661670', 'tblTempVendorCDR_20' ) start [2025-03-12 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661670', 'tblTempVendorCDR_20' ) end [2025-03-12 04:18:17] Production.INFO: ProcessCDR(1,14661670,1,1,2) [2025-03-12 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661670', 'tblTempUsageDetail_20' ) start [2025-03-12 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661670', 'tblTempUsageDetail_20' ) end [2025-03-12 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:18:20] Production.INFO: ==10680== Releasing lock... [2025-03-12 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:19:05 [end_date_ymd] => 2025-03-12 04:19:05 [RateCDR] => 1 ) [2025-03-12 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:19:05' and `end` < '2025-03-12 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:19:17] Production.INFO: count ==198 [2025-03-12 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:19:05 - End Time 2025-03-12 04:19:05 [2025-03-12 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661675', 'tblTempUsageDetail_20' ) start [2025-03-12 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661675', 'tblTempUsageDetail_20' ) end [2025-03-12 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661675', 'tblTempVendorCDR_20' ) start [2025-03-12 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661675', 'tblTempVendorCDR_20' ) end [2025-03-12 04:19:17] Production.INFO: ProcessCDR(1,14661675,1,1,2) [2025-03-12 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661675', 'tblTempUsageDetail_20' ) start [2025-03-12 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661675', 'tblTempUsageDetail_20' ) end [2025-03-12 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:19:21] Production.INFO: ==10795== Releasing lock... [2025-03-12 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:20:06 [end_date_ymd] => 2025-03-12 04:20:06 [RateCDR] => 1 ) [2025-03-12 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:20:06' and `end` < '2025-03-12 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:20:18] Production.INFO: count ==190 [2025-03-12 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:20:06 - End Time 2025-03-12 04:20:06 [2025-03-12 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661681', 'tblTempUsageDetail_20' ) start [2025-03-12 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661681', 'tblTempUsageDetail_20' ) end [2025-03-12 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661681', 'tblTempVendorCDR_20' ) start [2025-03-12 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661681', 'tblTempVendorCDR_20' ) end [2025-03-12 04:20:18] Production.INFO: ProcessCDR(1,14661681,1,1,2) [2025-03-12 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661681', 'tblTempUsageDetail_20' ) start [2025-03-12 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661681', 'tblTempUsageDetail_20' ) end [2025-03-12 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:20:21] Production.INFO: ==10872== Releasing lock... [2025-03-12 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:21:06 [end_date_ymd] => 2025-03-12 04:21:06 [RateCDR] => 1 ) [2025-03-12 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:21:06' and `end` < '2025-03-12 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:21:18] Production.INFO: count ==186 [2025-03-12 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:21:06 - End Time 2025-03-12 04:21:06 [2025-03-12 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661686', 'tblTempUsageDetail_20' ) start [2025-03-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661686', 'tblTempUsageDetail_20' ) end [2025-03-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661686', 'tblTempVendorCDR_20' ) start [2025-03-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661686', 'tblTempVendorCDR_20' ) end [2025-03-12 04:21:18] Production.INFO: ProcessCDR(1,14661686,1,1,2) [2025-03-12 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661686', 'tblTempUsageDetail_20' ) start [2025-03-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661686', 'tblTempUsageDetail_20' ) end [2025-03-12 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:21:21] Production.INFO: ==10950== Releasing lock... [2025-03-12 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:22:05 [end_date_ymd] => 2025-03-12 04:22:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:22:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:22:17] Production.INFO: count ==182 [2025-03-12 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:22:05 - End Time 2025-03-12 04:22:05 [2025-03-12 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661691', 'tblTempUsageDetail_20' ) start [2025-03-12 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661691', 'tblTempUsageDetail_20' ) end [2025-03-12 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661691', 'tblTempVendorCDR_20' ) start [2025-03-12 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661691', 'tblTempVendorCDR_20' ) end [2025-03-12 04:22:17] Production.INFO: ProcessCDR(1,14661691,1,1,2) [2025-03-12 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661691', 'tblTempUsageDetail_20' ) start [2025-03-12 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661691', 'tblTempUsageDetail_20' ) end [2025-03-12 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:22:20] Production.INFO: ==11029== Releasing lock... [2025-03-12 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:22:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:23:06 [end_date_ymd] => 2025-03-12 04:23:06 [RateCDR] => 1 ) [2025-03-12 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:23:06' and `end` < '2025-03-12 04:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:23:18] Production.INFO: count ==182 [2025-03-12 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:23:06 - End Time 2025-03-12 04:23:06 [2025-03-12 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661696', 'tblTempUsageDetail_20' ) start [2025-03-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661696', 'tblTempUsageDetail_20' ) end [2025-03-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661696', 'tblTempVendorCDR_20' ) start [2025-03-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661696', 'tblTempVendorCDR_20' ) end [2025-03-12 04:23:18] Production.INFO: ProcessCDR(1,14661696,1,1,2) [2025-03-12 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661696', 'tblTempUsageDetail_20' ) start [2025-03-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661696', 'tblTempUsageDetail_20' ) end [2025-03-12 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:23:21] Production.INFO: ==11105== Releasing lock... [2025-03-12 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:24:05 [end_date_ymd] => 2025-03-12 04:24:05 [RateCDR] => 1 ) [2025-03-12 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:24:05' and `end` < '2025-03-12 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:24:17] Production.INFO: count ==182 [2025-03-12 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:24:05 - End Time 2025-03-12 04:24:05 [2025-03-12 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661701', 'tblTempUsageDetail_20' ) start [2025-03-12 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661701', 'tblTempUsageDetail_20' ) end [2025-03-12 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661701', 'tblTempVendorCDR_20' ) start [2025-03-12 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661701', 'tblTempVendorCDR_20' ) end [2025-03-12 04:24:17] Production.INFO: ProcessCDR(1,14661701,1,1,2) [2025-03-12 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661701', 'tblTempUsageDetail_20' ) start [2025-03-12 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661701', 'tblTempUsageDetail_20' ) end [2025-03-12 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:24:20] Production.INFO: ==11178== Releasing lock... [2025-03-12 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:24:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:25:05 [end_date_ymd] => 2025-03-12 04:25:05 [RateCDR] => 1 ) [2025-03-12 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:25:05' and `end` < '2025-03-12 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:25:17] Production.INFO: count ==182 [2025-03-12 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:25:05 - End Time 2025-03-12 04:25:05 [2025-03-12 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661706', 'tblTempUsageDetail_20' ) start [2025-03-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661706', 'tblTempUsageDetail_20' ) end [2025-03-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661706', 'tblTempVendorCDR_20' ) start [2025-03-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661706', 'tblTempVendorCDR_20' ) end [2025-03-12 04:25:17] Production.INFO: ProcessCDR(1,14661706,1,1,2) [2025-03-12 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661706', 'tblTempUsageDetail_20' ) start [2025-03-12 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661706', 'tblTempUsageDetail_20' ) end [2025-03-12 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:25:21] Production.INFO: ==11252== Releasing lock... [2025-03-12 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:26:05 [end_date_ymd] => 2025-03-12 04:26:05 [RateCDR] => 1 ) [2025-03-12 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:26:05' and `end` < '2025-03-12 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:26:17] Production.INFO: count ==178 [2025-03-12 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:26:05 - End Time 2025-03-12 04:26:05 [2025-03-12 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661711', 'tblTempUsageDetail_20' ) start [2025-03-12 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661711', 'tblTempUsageDetail_20' ) end [2025-03-12 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661711', 'tblTempVendorCDR_20' ) start [2025-03-12 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661711', 'tblTempVendorCDR_20' ) end [2025-03-12 04:26:17] Production.INFO: ProcessCDR(1,14661711,1,1,2) [2025-03-12 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661711', 'tblTempUsageDetail_20' ) start [2025-03-12 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661711', 'tblTempUsageDetail_20' ) end [2025-03-12 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:26:20] Production.INFO: ==11327== Releasing lock... [2025-03-12 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:27:05 [end_date_ymd] => 2025-03-12 04:27:05 [RateCDR] => 1 ) [2025-03-12 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:27:05' and `end` < '2025-03-12 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:27:17] Production.INFO: count ==167 [2025-03-12 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:27:05 - End Time 2025-03-12 04:27:05 [2025-03-12 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661716', 'tblTempUsageDetail_20' ) start [2025-03-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661716', 'tblTempUsageDetail_20' ) end [2025-03-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661716', 'tblTempVendorCDR_20' ) start [2025-03-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661716', 'tblTempVendorCDR_20' ) end [2025-03-12 04:27:17] Production.INFO: ProcessCDR(1,14661716,1,1,2) [2025-03-12 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661716', 'tblTempUsageDetail_20' ) start [2025-03-12 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661716', 'tblTempUsageDetail_20' ) end [2025-03-12 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:27:20] Production.INFO: ==11400== Releasing lock... [2025-03-12 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:28:05 [end_date_ymd] => 2025-03-12 04:28:05 [RateCDR] => 1 ) [2025-03-12 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:28:05' and `end` < '2025-03-12 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:28:17] Production.INFO: count ==166 [2025-03-12 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:28:05 - End Time 2025-03-12 04:28:05 [2025-03-12 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661721', 'tblTempUsageDetail_20' ) start [2025-03-12 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661721', 'tblTempUsageDetail_20' ) end [2025-03-12 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661721', 'tblTempVendorCDR_20' ) start [2025-03-12 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661721', 'tblTempVendorCDR_20' ) end [2025-03-12 04:28:17] Production.INFO: ProcessCDR(1,14661721,1,1,2) [2025-03-12 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661721', 'tblTempUsageDetail_20' ) start [2025-03-12 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661721', 'tblTempUsageDetail_20' ) end [2025-03-12 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:28:20] Production.INFO: ==11474== Releasing lock... [2025-03-12 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:29:05 [end_date_ymd] => 2025-03-12 04:29:05 [RateCDR] => 1 ) [2025-03-12 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:29:05' and `end` < '2025-03-12 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:29:17] Production.INFO: count ==165 [2025-03-12 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:29:05 - End Time 2025-03-12 04:29:05 [2025-03-12 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661726', 'tblTempUsageDetail_20' ) start [2025-03-12 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661726', 'tblTempUsageDetail_20' ) end [2025-03-12 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661726', 'tblTempVendorCDR_20' ) start [2025-03-12 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661726', 'tblTempVendorCDR_20' ) end [2025-03-12 04:29:17] Production.INFO: ProcessCDR(1,14661726,1,1,2) [2025-03-12 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661726', 'tblTempUsageDetail_20' ) start [2025-03-12 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661726', 'tblTempUsageDetail_20' ) end [2025-03-12 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:29:21] Production.INFO: ==11551== Releasing lock... [2025-03-12 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:30:06 [end_date_ymd] => 2025-03-12 04:30:06 [RateCDR] => 1 ) [2025-03-12 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:30:06' and `end` < '2025-03-12 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:30:18] Production.INFO: count ==159 [2025-03-12 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:30:06 - End Time 2025-03-12 04:30:06 [2025-03-12 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661732', 'tblTempUsageDetail_20' ) start [2025-03-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661732', 'tblTempUsageDetail_20' ) end [2025-03-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661732', 'tblTempVendorCDR_20' ) start [2025-03-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661732', 'tblTempVendorCDR_20' ) end [2025-03-12 04:30:18] Production.INFO: ProcessCDR(1,14661732,1,1,2) [2025-03-12 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661732', 'tblTempUsageDetail_20' ) start [2025-03-12 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661732', 'tblTempUsageDetail_20' ) end [2025-03-12 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:30:22] Production.INFO: ==11632== Releasing lock... [2025-03-12 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:31:06 [end_date_ymd] => 2025-03-12 04:31:06 [RateCDR] => 1 ) [2025-03-12 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:31:06' and `end` < '2025-03-12 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:31:18] Production.INFO: count ==153 [2025-03-12 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:31:06 - End Time 2025-03-12 04:31:06 [2025-03-12 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661738', 'tblTempUsageDetail_20' ) start [2025-03-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661738', 'tblTempUsageDetail_20' ) end [2025-03-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661738', 'tblTempVendorCDR_20' ) start [2025-03-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661738', 'tblTempVendorCDR_20' ) end [2025-03-12 04:31:18] Production.INFO: ProcessCDR(1,14661738,1,1,2) [2025-03-12 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661738', 'tblTempUsageDetail_20' ) start [2025-03-12 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661738', 'tblTempUsageDetail_20' ) end [2025-03-12 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:31:21] Production.INFO: ==11709== Releasing lock... [2025-03-12 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:32:05 [end_date_ymd] => 2025-03-12 04:32:05 [RateCDR] => 1 ) [2025-03-12 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:32:05' and `end` < '2025-03-12 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:32:17] Production.INFO: count ==151 [2025-03-12 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:32:05 - End Time 2025-03-12 04:32:05 [2025-03-12 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661743', 'tblTempUsageDetail_20' ) start [2025-03-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661743', 'tblTempUsageDetail_20' ) end [2025-03-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661743', 'tblTempVendorCDR_20' ) start [2025-03-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661743', 'tblTempVendorCDR_20' ) end [2025-03-12 04:32:17] Production.INFO: ProcessCDR(1,14661743,1,1,2) [2025-03-12 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661743', 'tblTempUsageDetail_20' ) start [2025-03-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661743', 'tblTempUsageDetail_20' ) end [2025-03-12 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:32:21] Production.INFO: ==11815== Releasing lock... [2025-03-12 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:33:05 [end_date_ymd] => 2025-03-12 04:33:05 [RateCDR] => 1 ) [2025-03-12 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:33:05' and `end` < '2025-03-12 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:33:17] Production.INFO: count ==154 [2025-03-12 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:33:05 - End Time 2025-03-12 04:33:05 [2025-03-12 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661748', 'tblTempUsageDetail_20' ) start [2025-03-12 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661748', 'tblTempUsageDetail_20' ) end [2025-03-12 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661748', 'tblTempVendorCDR_20' ) start [2025-03-12 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661748', 'tblTempVendorCDR_20' ) end [2025-03-12 04:33:17] Production.INFO: ProcessCDR(1,14661748,1,1,2) [2025-03-12 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661748', 'tblTempUsageDetail_20' ) start [2025-03-12 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661748', 'tblTempUsageDetail_20' ) end [2025-03-12 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:33:20] Production.INFO: ==11884== Releasing lock... [2025-03-12 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:34:06 [end_date_ymd] => 2025-03-12 04:34:06 [RateCDR] => 1 ) [2025-03-12 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:34:06' and `end` < '2025-03-12 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:34:18] Production.INFO: count ==153 [2025-03-12 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:34:06 - End Time 2025-03-12 04:34:06 [2025-03-12 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661753', 'tblTempUsageDetail_20' ) start [2025-03-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661753', 'tblTempUsageDetail_20' ) end [2025-03-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661753', 'tblTempVendorCDR_20' ) start [2025-03-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661753', 'tblTempVendorCDR_20' ) end [2025-03-12 04:34:18] Production.INFO: ProcessCDR(1,14661753,1,1,2) [2025-03-12 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661753', 'tblTempUsageDetail_20' ) start [2025-03-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661753', 'tblTempUsageDetail_20' ) end [2025-03-12 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:34:21] Production.INFO: ==12001== Releasing lock... [2025-03-12 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:35:05 [end_date_ymd] => 2025-03-12 04:35:05 [RateCDR] => 1 ) [2025-03-12 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:35:05' and `end` < '2025-03-12 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:35:17] Production.INFO: count ==153 [2025-03-12 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:35:05 - End Time 2025-03-12 04:35:05 [2025-03-12 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661758', 'tblTempUsageDetail_20' ) start [2025-03-12 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661758', 'tblTempUsageDetail_20' ) end [2025-03-12 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661758', 'tblTempVendorCDR_20' ) start [2025-03-12 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661758', 'tblTempVendorCDR_20' ) end [2025-03-12 04:35:17] Production.INFO: ProcessCDR(1,14661758,1,1,2) [2025-03-12 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661758', 'tblTempUsageDetail_20' ) start [2025-03-12 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661758', 'tblTempUsageDetail_20' ) end [2025-03-12 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:35:20] Production.INFO: ==12073== Releasing lock... [2025-03-12 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:36:05 [end_date_ymd] => 2025-03-12 04:36:05 [RateCDR] => 1 ) [2025-03-12 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:36:05' and `end` < '2025-03-12 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:36:17] Production.INFO: count ==151 [2025-03-12 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:36:05 - End Time 2025-03-12 04:36:05 [2025-03-12 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661763', 'tblTempUsageDetail_20' ) start [2025-03-12 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661763', 'tblTempUsageDetail_20' ) end [2025-03-12 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661763', 'tblTempVendorCDR_20' ) start [2025-03-12 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661763', 'tblTempVendorCDR_20' ) end [2025-03-12 04:36:17] Production.INFO: ProcessCDR(1,14661763,1,1,2) [2025-03-12 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661763', 'tblTempUsageDetail_20' ) start [2025-03-12 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661763', 'tblTempUsageDetail_20' ) end [2025-03-12 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:36:20] Production.INFO: ==12149== Releasing lock... [2025-03-12 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:37:05 [end_date_ymd] => 2025-03-12 04:37:05 [RateCDR] => 1 ) [2025-03-12 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:37:05' and `end` < '2025-03-12 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:37:17] Production.INFO: count ==150 [2025-03-12 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:37:05 - End Time 2025-03-12 04:37:05 [2025-03-12 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661768', 'tblTempUsageDetail_20' ) start [2025-03-12 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661768', 'tblTempUsageDetail_20' ) end [2025-03-12 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661768', 'tblTempVendorCDR_20' ) start [2025-03-12 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661768', 'tblTempVendorCDR_20' ) end [2025-03-12 04:37:17] Production.INFO: ProcessCDR(1,14661768,1,1,2) [2025-03-12 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661768', 'tblTempUsageDetail_20' ) start [2025-03-12 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661768', 'tblTempUsageDetail_20' ) end [2025-03-12 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:37:20] Production.INFO: ==12222== Releasing lock... [2025-03-12 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:38:05 [end_date_ymd] => 2025-03-12 04:38:05 [RateCDR] => 1 ) [2025-03-12 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:38:05' and `end` < '2025-03-12 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:38:17] Production.INFO: count ==150 [2025-03-12 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:38:05 - End Time 2025-03-12 04:38:05 [2025-03-12 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661773', 'tblTempUsageDetail_20' ) start [2025-03-12 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661773', 'tblTempUsageDetail_20' ) end [2025-03-12 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661773', 'tblTempVendorCDR_20' ) start [2025-03-12 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661773', 'tblTempVendorCDR_20' ) end [2025-03-12 04:38:17] Production.INFO: ProcessCDR(1,14661773,1,1,2) [2025-03-12 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661773', 'tblTempUsageDetail_20' ) start [2025-03-12 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661773', 'tblTempUsageDetail_20' ) end [2025-03-12 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:38:20] Production.INFO: ==12297== Releasing lock... [2025-03-12 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:38:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:39:04 [end_date_ymd] => 2025-03-12 04:39:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:39:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:39:16] Production.INFO: count ==150 [2025-03-12 04:39:16] Production.ERROR: pbx CDR StartTime 2025-03-12 01:39:04 - End Time 2025-03-12 04:39:04 [2025-03-12 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661778', 'tblTempUsageDetail_20' ) start [2025-03-12 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661778', 'tblTempUsageDetail_20' ) end [2025-03-12 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661778', 'tblTempVendorCDR_20' ) start [2025-03-12 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661778', 'tblTempVendorCDR_20' ) end [2025-03-12 04:39:16] Production.INFO: ProcessCDR(1,14661778,1,1,2) [2025-03-12 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661778', 'tblTempUsageDetail_20' ) start [2025-03-12 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661778', 'tblTempUsageDetail_20' ) end [2025-03-12 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:39:20] Production.INFO: ==12367== Releasing lock... [2025-03-12 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:39:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:40:06 [end_date_ymd] => 2025-03-12 04:40:06 [RateCDR] => 1 ) [2025-03-12 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:40:06' and `end` < '2025-03-12 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:40:18] Production.INFO: count ==143 [2025-03-12 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:40:06 - End Time 2025-03-12 04:40:06 [2025-03-12 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661784', 'tblTempUsageDetail_20' ) start [2025-03-12 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661784', 'tblTempUsageDetail_20' ) end [2025-03-12 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661784', 'tblTempVendorCDR_20' ) start [2025-03-12 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661784', 'tblTempVendorCDR_20' ) end [2025-03-12 04:40:18] Production.INFO: ProcessCDR(1,14661784,1,1,2) [2025-03-12 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661784', 'tblTempUsageDetail_20' ) start [2025-03-12 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661784', 'tblTempUsageDetail_20' ) end [2025-03-12 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:40:21] Production.INFO: ==12440== Releasing lock... [2025-03-12 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:41:05 [end_date_ymd] => 2025-03-12 04:41:05 [RateCDR] => 1 ) [2025-03-12 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:41:05' and `end` < '2025-03-12 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:41:17] Production.INFO: count ==143 [2025-03-12 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:41:05 - End Time 2025-03-12 04:41:05 [2025-03-12 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661789', 'tblTempUsageDetail_20' ) start [2025-03-12 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661789', 'tblTempUsageDetail_20' ) end [2025-03-12 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661789', 'tblTempVendorCDR_20' ) start [2025-03-12 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661789', 'tblTempVendorCDR_20' ) end [2025-03-12 04:41:17] Production.INFO: ProcessCDR(1,14661789,1,1,2) [2025-03-12 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661789', 'tblTempUsageDetail_20' ) start [2025-03-12 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661789', 'tblTempUsageDetail_20' ) end [2025-03-12 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:41:21] Production.INFO: ==12512== Releasing lock... [2025-03-12 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:42:05 [end_date_ymd] => 2025-03-12 04:42:05 [RateCDR] => 1 ) [2025-03-12 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:42:05' and `end` < '2025-03-12 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:42:17] Production.INFO: count ==143 [2025-03-12 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:42:05 - End Time 2025-03-12 04:42:05 [2025-03-12 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661794', 'tblTempUsageDetail_20' ) start [2025-03-12 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661794', 'tblTempUsageDetail_20' ) end [2025-03-12 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661794', 'tblTempVendorCDR_20' ) start [2025-03-12 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661794', 'tblTempVendorCDR_20' ) end [2025-03-12 04:42:17] Production.INFO: ProcessCDR(1,14661794,1,1,2) [2025-03-12 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661794', 'tblTempUsageDetail_20' ) start [2025-03-12 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661794', 'tblTempUsageDetail_20' ) end [2025-03-12 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:42:21] Production.INFO: ==12587== Releasing lock... [2025-03-12 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:43:04 [end_date_ymd] => 2025-03-12 04:43:04 [RateCDR] => 1 ) [2025-03-12 04: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` >= '2025-03-12 01:43:04' and `end` < '2025-03-12 04: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 ,'') [2025-03-12 04:43:16] Production.INFO: count ==143 [2025-03-12 04:43:16] Production.ERROR: pbx CDR StartTime 2025-03-12 01:43:04 - End Time 2025-03-12 04:43:04 [2025-03-12 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661799', 'tblTempUsageDetail_20' ) start [2025-03-12 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661799', 'tblTempUsageDetail_20' ) end [2025-03-12 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661799', 'tblTempVendorCDR_20' ) start [2025-03-12 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661799', 'tblTempVendorCDR_20' ) end [2025-03-12 04:43:16] Production.INFO: ProcessCDR(1,14661799,1,1,2) [2025-03-12 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661799', 'tblTempUsageDetail_20' ) start [2025-03-12 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661799', 'tblTempUsageDetail_20' ) end [2025-03-12 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:43:20] Production.INFO: ==12662== Releasing lock... [2025-03-12 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:43:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:44:05 [end_date_ymd] => 2025-03-12 04:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 01:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 04:44:18] Production.INFO: count ==143 [2025-03-12 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:44:05 - End Time 2025-03-12 04:44:05 [2025-03-12 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661804', 'tblTempUsageDetail_20' ) start [2025-03-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661804', 'tblTempUsageDetail_20' ) end [2025-03-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661804', 'tblTempVendorCDR_20' ) start [2025-03-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661804', 'tblTempVendorCDR_20' ) end [2025-03-12 04:44:18] Production.INFO: ProcessCDR(1,14661804,1,1,2) [2025-03-12 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661804', 'tblTempUsageDetail_20' ) start [2025-03-12 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661804', 'tblTempUsageDetail_20' ) end [2025-03-12 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:44:21] Production.INFO: ==12736== Releasing lock... [2025-03-12 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:45:05 [end_date_ymd] => 2025-03-12 04:45:05 [RateCDR] => 1 ) [2025-03-12 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:45:05' and `end` < '2025-03-12 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:45:17] Production.INFO: count ==143 [2025-03-12 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:45:05 - End Time 2025-03-12 04:45:05 [2025-03-12 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661809', 'tblTempUsageDetail_20' ) start [2025-03-12 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661809', 'tblTempUsageDetail_20' ) end [2025-03-12 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661809', 'tblTempVendorCDR_20' ) start [2025-03-12 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661809', 'tblTempVendorCDR_20' ) end [2025-03-12 04:45:17] Production.INFO: ProcessCDR(1,14661809,1,1,2) [2025-03-12 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661809', 'tblTempUsageDetail_20' ) start [2025-03-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661809', 'tblTempUsageDetail_20' ) end [2025-03-12 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:45:21] Production.INFO: ==12810== Releasing lock... [2025-03-12 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:46:05 [end_date_ymd] => 2025-03-12 04:46:05 [RateCDR] => 1 ) [2025-03-12 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:46:05' and `end` < '2025-03-12 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:46:17] Production.INFO: count ==143 [2025-03-12 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:46:05 - End Time 2025-03-12 04:46:05 [2025-03-12 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661814', 'tblTempUsageDetail_20' ) start [2025-03-12 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661814', 'tblTempUsageDetail_20' ) end [2025-03-12 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661814', 'tblTempVendorCDR_20' ) start [2025-03-12 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661814', 'tblTempVendorCDR_20' ) end [2025-03-12 04:46:17] Production.INFO: ProcessCDR(1,14661814,1,1,2) [2025-03-12 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661814', 'tblTempUsageDetail_20' ) start [2025-03-12 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661814', 'tblTempUsageDetail_20' ) end [2025-03-12 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:46:21] Production.INFO: ==12881== Releasing lock... [2025-03-12 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:47:06 [end_date_ymd] => 2025-03-12 04:47:06 [RateCDR] => 1 ) [2025-03-12 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:47:06' and `end` < '2025-03-12 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:47:18] Production.INFO: count ==143 [2025-03-12 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:47:06 - End Time 2025-03-12 04:47:06 [2025-03-12 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661819', 'tblTempUsageDetail_20' ) start [2025-03-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661819', 'tblTempUsageDetail_20' ) end [2025-03-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661819', 'tblTempVendorCDR_20' ) start [2025-03-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661819', 'tblTempVendorCDR_20' ) end [2025-03-12 04:47:18] Production.INFO: ProcessCDR(1,14661819,1,1,2) [2025-03-12 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661819', 'tblTempUsageDetail_20' ) start [2025-03-12 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661819', 'tblTempUsageDetail_20' ) end [2025-03-12 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:47:21] Production.INFO: ==12954== Releasing lock... [2025-03-12 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:48:05 [end_date_ymd] => 2025-03-12 04:48:05 [RateCDR] => 1 ) [2025-03-12 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:48:05' and `end` < '2025-03-12 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:48:17] Production.INFO: count ==143 [2025-03-12 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:48:05 - End Time 2025-03-12 04:48:05 [2025-03-12 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661824', 'tblTempUsageDetail_20' ) start [2025-03-12 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661824', 'tblTempUsageDetail_20' ) end [2025-03-12 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661824', 'tblTempVendorCDR_20' ) start [2025-03-12 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661824', 'tblTempVendorCDR_20' ) end [2025-03-12 04:48:17] Production.INFO: ProcessCDR(1,14661824,1,1,2) [2025-03-12 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661824', 'tblTempUsageDetail_20' ) start [2025-03-12 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661824', 'tblTempUsageDetail_20' ) end [2025-03-12 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:48:21] Production.INFO: ==13023== Releasing lock... [2025-03-12 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:49:05 [end_date_ymd] => 2025-03-12 04:49:05 [RateCDR] => 1 ) [2025-03-12 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:49:05' and `end` < '2025-03-12 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:49:18] Production.INFO: count ==143 [2025-03-12 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:49:05 - End Time 2025-03-12 04:49:05 [2025-03-12 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661829', 'tblTempUsageDetail_20' ) start [2025-03-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661829', 'tblTempUsageDetail_20' ) end [2025-03-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661829', 'tblTempVendorCDR_20' ) start [2025-03-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661829', 'tblTempVendorCDR_20' ) end [2025-03-12 04:49:18] Production.INFO: ProcessCDR(1,14661829,1,1,2) [2025-03-12 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661829', 'tblTempUsageDetail_20' ) start [2025-03-12 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661829', 'tblTempUsageDetail_20' ) end [2025-03-12 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:49:21] Production.INFO: ==13134== Releasing lock... [2025-03-12 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:50:06 [end_date_ymd] => 2025-03-12 04:50:06 [RateCDR] => 1 ) [2025-03-12 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:50:06' and `end` < '2025-03-12 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:50:18] Production.INFO: count ==132 [2025-03-12 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:50:06 - End Time 2025-03-12 04:50:06 [2025-03-12 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661835', 'tblTempUsageDetail_20' ) start [2025-03-12 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661835', 'tblTempUsageDetail_20' ) end [2025-03-12 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661835', 'tblTempVendorCDR_20' ) start [2025-03-12 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661835', 'tblTempVendorCDR_20' ) end [2025-03-12 04:50:18] Production.INFO: ProcessCDR(1,14661835,1,1,2) [2025-03-12 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661835', 'tblTempUsageDetail_20' ) start [2025-03-12 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661835', 'tblTempUsageDetail_20' ) end [2025-03-12 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:50:21] Production.INFO: ==13206== Releasing lock... [2025-03-12 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:51:05 [end_date_ymd] => 2025-03-12 04:51:05 [RateCDR] => 1 ) [2025-03-12 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:51:05' and `end` < '2025-03-12 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:51:18] Production.INFO: count ==120 [2025-03-12 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:51:05 - End Time 2025-03-12 04:51:05 [2025-03-12 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661840', 'tblTempUsageDetail_20' ) start [2025-03-12 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661840', 'tblTempUsageDetail_20' ) end [2025-03-12 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661840', 'tblTempVendorCDR_20' ) start [2025-03-12 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661840', 'tblTempVendorCDR_20' ) end [2025-03-12 04:51:18] Production.INFO: ProcessCDR(1,14661840,1,1,2) [2025-03-12 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661840', 'tblTempUsageDetail_20' ) start [2025-03-12 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661840', 'tblTempUsageDetail_20' ) end [2025-03-12 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:51:21] Production.INFO: ==13279== Releasing lock... [2025-03-12 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:52:05 [end_date_ymd] => 2025-03-12 04:52:05 [RateCDR] => 1 ) [2025-03-12 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:52:05' and `end` < '2025-03-12 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:52:17] Production.INFO: count ==120 [2025-03-12 04:52:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:52:05 - End Time 2025-03-12 04:52:05 [2025-03-12 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661845', 'tblTempUsageDetail_20' ) start [2025-03-12 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661845', 'tblTempUsageDetail_20' ) end [2025-03-12 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661845', 'tblTempVendorCDR_20' ) start [2025-03-12 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661845', 'tblTempVendorCDR_20' ) end [2025-03-12 04:52:17] Production.INFO: ProcessCDR(1,14661845,1,1,2) [2025-03-12 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661845', 'tblTempUsageDetail_20' ) start [2025-03-12 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661845', 'tblTempUsageDetail_20' ) end [2025-03-12 04:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:52:21] Production.INFO: ==13349== Releasing lock... [2025-03-12 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:53:06 [end_date_ymd] => 2025-03-12 04:53:06 [RateCDR] => 1 ) [2025-03-12 04:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:53:06' and `end` < '2025-03-12 04:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:53:18] Production.INFO: count ==120 [2025-03-12 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:53:06 - End Time 2025-03-12 04:53:06 [2025-03-12 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661850', 'tblTempUsageDetail_20' ) start [2025-03-12 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661850', 'tblTempUsageDetail_20' ) end [2025-03-12 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661850', 'tblTempVendorCDR_20' ) start [2025-03-12 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661850', 'tblTempVendorCDR_20' ) end [2025-03-12 04:53:18] Production.INFO: ProcessCDR(1,14661850,1,1,2) [2025-03-12 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661850', 'tblTempUsageDetail_20' ) start [2025-03-12 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661850', 'tblTempUsageDetail_20' ) end [2025-03-12 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:53:21] Production.INFO: ==13443== Releasing lock... [2025-03-12 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:54:05 [end_date_ymd] => 2025-03-12 04:54:05 [RateCDR] => 1 ) [2025-03-12 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:54:05' and `end` < '2025-03-12 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:54:17] Production.INFO: count ==119 [2025-03-12 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:54:05 - End Time 2025-03-12 04:54:05 [2025-03-12 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661855', 'tblTempUsageDetail_20' ) start [2025-03-12 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661855', 'tblTempUsageDetail_20' ) end [2025-03-12 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661855', 'tblTempVendorCDR_20' ) start [2025-03-12 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661855', 'tblTempVendorCDR_20' ) end [2025-03-12 04:54:17] Production.INFO: ProcessCDR(1,14661855,1,1,2) [2025-03-12 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661855', 'tblTempUsageDetail_20' ) start [2025-03-12 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661855', 'tblTempUsageDetail_20' ) end [2025-03-12 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:54:20] Production.INFO: ==13519== Releasing lock... [2025-03-12 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:54:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:55:05 [end_date_ymd] => 2025-03-12 04:55:05 [RateCDR] => 1 ) [2025-03-12 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:55:05' and `end` < '2025-03-12 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:55:17] Production.INFO: count ==119 [2025-03-12 04:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:55:05 - End Time 2025-03-12 04:55:05 [2025-03-12 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661860', 'tblTempUsageDetail_20' ) start [2025-03-12 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661860', 'tblTempUsageDetail_20' ) end [2025-03-12 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661860', 'tblTempVendorCDR_20' ) start [2025-03-12 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661860', 'tblTempVendorCDR_20' ) end [2025-03-12 04:55:18] Production.INFO: ProcessCDR(1,14661860,1,1,2) [2025-03-12 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661860', 'tblTempUsageDetail_20' ) start [2025-03-12 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661860', 'tblTempUsageDetail_20' ) end [2025-03-12 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:55:21] Production.INFO: ==13595== Releasing lock... [2025-03-12 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:55:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:56:05 [end_date_ymd] => 2025-03-12 04:56:05 [RateCDR] => 1 ) [2025-03-12 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:56:05' and `end` < '2025-03-12 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:56:17] Production.INFO: count ==119 [2025-03-12 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:56:05 - End Time 2025-03-12 04:56:05 [2025-03-12 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661865', 'tblTempUsageDetail_20' ) start [2025-03-12 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661865', 'tblTempUsageDetail_20' ) end [2025-03-12 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661865', 'tblTempVendorCDR_20' ) start [2025-03-12 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661865', 'tblTempVendorCDR_20' ) end [2025-03-12 04:56:17] Production.INFO: ProcessCDR(1,14661865,1,1,2) [2025-03-12 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661865', 'tblTempUsageDetail_20' ) start [2025-03-12 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661865', 'tblTempUsageDetail_20' ) end [2025-03-12 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:56:20] Production.INFO: ==13667== Releasing lock... [2025-03-12 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:56:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:57:05 [end_date_ymd] => 2025-03-12 04:57:05 [RateCDR] => 1 ) [2025-03-12 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:57:05' and `end` < '2025-03-12 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:57:18] Production.INFO: count ==119 [2025-03-12 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:57:05 - End Time 2025-03-12 04:57:05 [2025-03-12 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661870', 'tblTempUsageDetail_20' ) start [2025-03-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661870', 'tblTempUsageDetail_20' ) end [2025-03-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661870', 'tblTempVendorCDR_20' ) start [2025-03-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661870', 'tblTempVendorCDR_20' ) end [2025-03-12 04:57:18] Production.INFO: ProcessCDR(1,14661870,1,1,2) [2025-03-12 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661870', 'tblTempUsageDetail_20' ) start [2025-03-12 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661870', 'tblTempUsageDetail_20' ) end [2025-03-12 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:57:21] Production.INFO: ==13736== Releasing lock... [2025-03-12 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:57:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:58:05 [end_date_ymd] => 2025-03-12 04:58:05 [RateCDR] => 1 ) [2025-03-12 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:58:05' and `end` < '2025-03-12 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:58:17] Production.INFO: count ==119 [2025-03-12 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 01:58:05 - End Time 2025-03-12 04:58:05 [2025-03-12 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661875', 'tblTempUsageDetail_20' ) start [2025-03-12 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661875', 'tblTempUsageDetail_20' ) end [2025-03-12 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661875', 'tblTempVendorCDR_20' ) start [2025-03-12 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661875', 'tblTempVendorCDR_20' ) end [2025-03-12 04:58:17] Production.INFO: ProcessCDR(1,14661875,1,1,2) [2025-03-12 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661875', 'tblTempUsageDetail_20' ) start [2025-03-12 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661875', 'tblTempUsageDetail_20' ) end [2025-03-12 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:58:20] Production.INFO: ==13807== Releasing lock... [2025-03-12 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:58:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 01:59:05 [end_date_ymd] => 2025-03-12 04:59:05 [RateCDR] => 1 ) [2025-03-12 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 01:59:05' and `end` < '2025-03-12 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 04:59:18] Production.INFO: count ==119 [2025-03-12 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-12 01:59:05 - End Time 2025-03-12 04:59:05 [2025-03-12 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661880', 'tblTempUsageDetail_20' ) start [2025-03-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661880', 'tblTempUsageDetail_20' ) end [2025-03-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661880', 'tblTempVendorCDR_20' ) start [2025-03-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661880', 'tblTempVendorCDR_20' ) end [2025-03-12 04:59:18] Production.INFO: ProcessCDR(1,14661880,1,1,2) [2025-03-12 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661880', 'tblTempUsageDetail_20' ) start [2025-03-12 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661880', 'tblTempUsageDetail_20' ) end [2025-03-12 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 04:59:21] Production.INFO: ==13877== Releasing lock... [2025-03-12 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 04:59:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:00:05 [end_date_ymd] => 2025-03-12 05:00:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 02:00:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:00:17] Production.INFO: count ==125 [2025-03-12 05:00:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:00:05 - End Time 2025-03-12 05:00:05 [2025-03-12 05:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661885', 'tblTempUsageDetail_20' ) start [2025-03-12 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661885', 'tblTempUsageDetail_20' ) end [2025-03-12 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661885', 'tblTempVendorCDR_20' ) start [2025-03-12 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661885', 'tblTempVendorCDR_20' ) end [2025-03-12 05:00:17] Production.INFO: ProcessCDR(1,14661885,1,1,2) [2025-03-12 05:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661885', 'tblTempUsageDetail_20' ) start [2025-03-12 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661885', 'tblTempUsageDetail_20' ) end [2025-03-12 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:00:21] Production.INFO: ==13954== Releasing lock... [2025-03-12 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:00:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:01:05 [end_date_ymd] => 2025-03-12 05:01:05 [RateCDR] => 1 ) [2025-03-12 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:01:05' and `end` < '2025-03-12 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:01:17] Production.INFO: count ==123 [2025-03-12 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:01:05 - End Time 2025-03-12 05:01:05 [2025-03-12 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661891', 'tblTempUsageDetail_20' ) start [2025-03-12 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661891', 'tblTempUsageDetail_20' ) end [2025-03-12 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661891', 'tblTempVendorCDR_20' ) start [2025-03-12 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661891', 'tblTempVendorCDR_20' ) end [2025-03-12 05:01:17] Production.INFO: ProcessCDR(1,14661891,1,1,2) [2025-03-12 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661891', 'tblTempUsageDetail_20' ) start [2025-03-12 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661891', 'tblTempUsageDetail_20' ) end [2025-03-12 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:01:20] Production.INFO: ==14039== Releasing lock... [2025-03-12 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:01:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:02:05 [end_date_ymd] => 2025-03-12 05:02:05 [RateCDR] => 1 ) [2025-03-12 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:02:05' and `end` < '2025-03-12 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:02:18] Production.INFO: count ==123 [2025-03-12 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:02:05 - End Time 2025-03-12 05:02:05 [2025-03-12 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661896', 'tblTempUsageDetail_20' ) start [2025-03-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661896', 'tblTempUsageDetail_20' ) end [2025-03-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661896', 'tblTempVendorCDR_20' ) start [2025-03-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661896', 'tblTempVendorCDR_20' ) end [2025-03-12 05:02:18] Production.INFO: ProcessCDR(1,14661896,1,1,2) [2025-03-12 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661896', 'tblTempUsageDetail_20' ) start [2025-03-12 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661896', 'tblTempUsageDetail_20' ) end [2025-03-12 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:02:21] Production.INFO: ==14108== Releasing lock... [2025-03-12 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:03:05 [end_date_ymd] => 2025-03-12 05:03:05 [RateCDR] => 1 ) [2025-03-12 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:03:05' and `end` < '2025-03-12 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:03:17] Production.INFO: count ==123 [2025-03-12 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:03:05 - End Time 2025-03-12 05:03:05 [2025-03-12 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661901', 'tblTempUsageDetail_20' ) start [2025-03-12 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661901', 'tblTempUsageDetail_20' ) end [2025-03-12 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661901', 'tblTempVendorCDR_20' ) start [2025-03-12 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661901', 'tblTempVendorCDR_20' ) end [2025-03-12 05:03:17] Production.INFO: ProcessCDR(1,14661901,1,1,2) [2025-03-12 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661901', 'tblTempUsageDetail_20' ) start [2025-03-12 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661901', 'tblTempUsageDetail_20' ) end [2025-03-12 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:03:21] Production.INFO: ==14181== Releasing lock... [2025-03-12 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:03:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:04:05 [end_date_ymd] => 2025-03-12 05:04:05 [RateCDR] => 1 ) [2025-03-12 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:04:05' and `end` < '2025-03-12 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:04:17] Production.INFO: count ==123 [2025-03-12 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:04:05 - End Time 2025-03-12 05:04:05 [2025-03-12 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661906', 'tblTempUsageDetail_20' ) start [2025-03-12 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661906', 'tblTempUsageDetail_20' ) end [2025-03-12 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661906', 'tblTempVendorCDR_20' ) start [2025-03-12 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661906', 'tblTempVendorCDR_20' ) end [2025-03-12 05:04:17] Production.INFO: ProcessCDR(1,14661906,1,1,2) [2025-03-12 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661906', 'tblTempUsageDetail_20' ) start [2025-03-12 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661906', 'tblTempUsageDetail_20' ) end [2025-03-12 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:04:20] Production.INFO: ==14251== Releasing lock... [2025-03-12 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:04:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:05:05 [end_date_ymd] => 2025-03-12 05:05:05 [RateCDR] => 1 ) [2025-03-12 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:05:05' and `end` < '2025-03-12 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:05:17] Production.INFO: count ==123 [2025-03-12 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:05:05 - End Time 2025-03-12 05:05:05 [2025-03-12 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661911', 'tblTempUsageDetail_20' ) start [2025-03-12 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661911', 'tblTempUsageDetail_20' ) end [2025-03-12 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661911', 'tblTempVendorCDR_20' ) start [2025-03-12 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661911', 'tblTempVendorCDR_20' ) end [2025-03-12 05:05:17] Production.INFO: ProcessCDR(1,14661911,1,1,2) [2025-03-12 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661911', 'tblTempUsageDetail_20' ) start [2025-03-12 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661911', 'tblTempUsageDetail_20' ) end [2025-03-12 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:05:21] Production.INFO: ==14363== Releasing lock... [2025-03-12 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:06:06 [end_date_ymd] => 2025-03-12 05:06:06 [RateCDR] => 1 ) [2025-03-12 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:06:06' and `end` < '2025-03-12 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:06:18] Production.INFO: count ==123 [2025-03-12 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:06:06 - End Time 2025-03-12 05:06:06 [2025-03-12 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661916', 'tblTempUsageDetail_20' ) start [2025-03-12 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661916', 'tblTempUsageDetail_20' ) end [2025-03-12 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661916', 'tblTempVendorCDR_20' ) start [2025-03-12 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661916', 'tblTempVendorCDR_20' ) end [2025-03-12 05:06:18] Production.INFO: ProcessCDR(1,14661916,1,1,2) [2025-03-12 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661916', 'tblTempUsageDetail_20' ) start [2025-03-12 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661916', 'tblTempUsageDetail_20' ) end [2025-03-12 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:06:21] Production.INFO: ==14435== Releasing lock... [2025-03-12 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:06:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:07:05 [end_date_ymd] => 2025-03-12 05:07:05 [RateCDR] => 1 ) [2025-03-12 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:07:05' and `end` < '2025-03-12 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:07:17] Production.INFO: count ==123 [2025-03-12 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:07:05 - End Time 2025-03-12 05:07:05 [2025-03-12 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661921', 'tblTempUsageDetail_20' ) start [2025-03-12 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661921', 'tblTempUsageDetail_20' ) end [2025-03-12 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661921', 'tblTempVendorCDR_20' ) start [2025-03-12 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661921', 'tblTempVendorCDR_20' ) end [2025-03-12 05:07:17] Production.INFO: ProcessCDR(1,14661921,1,1,2) [2025-03-12 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661921', 'tblTempUsageDetail_20' ) start [2025-03-12 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661921', 'tblTempUsageDetail_20' ) end [2025-03-12 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:07:21] Production.INFO: ==14505== Releasing lock... [2025-03-12 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:07:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:08:05 [end_date_ymd] => 2025-03-12 05:08:05 [RateCDR] => 1 ) [2025-03-12 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:08:05' and `end` < '2025-03-12 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:08:17] Production.INFO: count ==127 [2025-03-12 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:08:05 - End Time 2025-03-12 05:08:05 [2025-03-12 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661926', 'tblTempUsageDetail_20' ) start [2025-03-12 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661926', 'tblTempUsageDetail_20' ) end [2025-03-12 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661926', 'tblTempVendorCDR_20' ) start [2025-03-12 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661926', 'tblTempVendorCDR_20' ) end [2025-03-12 05:08:17] Production.INFO: ProcessCDR(1,14661926,1,1,2) [2025-03-12 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661926', 'tblTempUsageDetail_20' ) start [2025-03-12 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661926', 'tblTempUsageDetail_20' ) end [2025-03-12 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:08:21] Production.INFO: ==14578== Releasing lock... [2025-03-12 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:09:05 [end_date_ymd] => 2025-03-12 05:09:05 [RateCDR] => 1 ) [2025-03-12 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:09:05' and `end` < '2025-03-12 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:09:18] Production.INFO: count ==127 [2025-03-12 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:09:05 - End Time 2025-03-12 05:09:05 [2025-03-12 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661931', 'tblTempUsageDetail_20' ) start [2025-03-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661931', 'tblTempUsageDetail_20' ) end [2025-03-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661931', 'tblTempVendorCDR_20' ) start [2025-03-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661931', 'tblTempVendorCDR_20' ) end [2025-03-12 05:09:18] Production.INFO: ProcessCDR(1,14661931,1,1,2) [2025-03-12 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661931', 'tblTempUsageDetail_20' ) start [2025-03-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661931', 'tblTempUsageDetail_20' ) end [2025-03-12 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:09:21] Production.INFO: ==14650== Releasing lock... [2025-03-12 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:10:06 [end_date_ymd] => 2025-03-12 05:10:06 [RateCDR] => 1 ) [2025-03-12 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:10:06' and `end` < '2025-03-12 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:10:18] Production.INFO: count ==134 [2025-03-12 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:10:06 - End Time 2025-03-12 05:10:06 [2025-03-12 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661936', 'tblTempUsageDetail_20' ) start [2025-03-12 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661936', 'tblTempUsageDetail_20' ) end [2025-03-12 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661936', 'tblTempVendorCDR_20' ) start [2025-03-12 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661936', 'tblTempVendorCDR_20' ) end [2025-03-12 05:10:18] Production.INFO: ProcessCDR(1,14661936,1,1,2) [2025-03-12 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661936', 'tblTempUsageDetail_20' ) start [2025-03-12 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661936', 'tblTempUsageDetail_20' ) end [2025-03-12 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:10:22] Production.INFO: ==14724== Releasing lock... [2025-03-12 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:11:05 [end_date_ymd] => 2025-03-12 05:11:05 [RateCDR] => 1 ) [2025-03-12 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:11:05' and `end` < '2025-03-12 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:11:17] Production.INFO: count ==136 [2025-03-12 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:11:05 - End Time 2025-03-12 05:11:05 [2025-03-12 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661942', 'tblTempUsageDetail_20' ) start [2025-03-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661942', 'tblTempUsageDetail_20' ) end [2025-03-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661942', 'tblTempVendorCDR_20' ) start [2025-03-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661942', 'tblTempVendorCDR_20' ) end [2025-03-12 05:11:17] Production.INFO: ProcessCDR(1,14661942,1,1,2) [2025-03-12 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661942', 'tblTempUsageDetail_20' ) start [2025-03-12 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661942', 'tblTempUsageDetail_20' ) end [2025-03-12 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:11:21] Production.INFO: ==14799== Releasing lock... [2025-03-12 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:12:06 [end_date_ymd] => 2025-03-12 05:12:06 [RateCDR] => 1 ) [2025-03-12 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:12:06' and `end` < '2025-03-12 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:12:18] Production.INFO: count ==132 [2025-03-12 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:12:06 - End Time 2025-03-12 05:12:06 [2025-03-12 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661947', 'tblTempUsageDetail_20' ) start [2025-03-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661947', 'tblTempUsageDetail_20' ) end [2025-03-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661947', 'tblTempVendorCDR_20' ) start [2025-03-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661947', 'tblTempVendorCDR_20' ) end [2025-03-12 05:12:18] Production.INFO: ProcessCDR(1,14661947,1,1,2) [2025-03-12 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661947', 'tblTempUsageDetail_20' ) start [2025-03-12 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661947', 'tblTempUsageDetail_20' ) end [2025-03-12 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:12:21] Production.INFO: ==14875== Releasing lock... [2025-03-12 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:13:05 [end_date_ymd] => 2025-03-12 05:13:05 [RateCDR] => 1 ) [2025-03-12 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:13:05' and `end` < '2025-03-12 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:13:17] Production.INFO: count ==132 [2025-03-12 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:13:05 - End Time 2025-03-12 05:13:05 [2025-03-12 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661952', 'tblTempUsageDetail_20' ) start [2025-03-12 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661952', 'tblTempUsageDetail_20' ) end [2025-03-12 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661952', 'tblTempVendorCDR_20' ) start [2025-03-12 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661952', 'tblTempVendorCDR_20' ) end [2025-03-12 05:13:17] Production.INFO: ProcessCDR(1,14661952,1,1,2) [2025-03-12 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661952', 'tblTempUsageDetail_20' ) start [2025-03-12 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661952', 'tblTempUsageDetail_20' ) end [2025-03-12 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:13:21] Production.INFO: ==14952== Releasing lock... [2025-03-12 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:14:05 [end_date_ymd] => 2025-03-12 05:14:05 [RateCDR] => 1 ) [2025-03-12 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:14:05' and `end` < '2025-03-12 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:14:17] Production.INFO: count ==132 [2025-03-12 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:14:05 - End Time 2025-03-12 05:14:05 [2025-03-12 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661957', 'tblTempUsageDetail_20' ) start [2025-03-12 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661957', 'tblTempUsageDetail_20' ) end [2025-03-12 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661957', 'tblTempVendorCDR_20' ) start [2025-03-12 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661957', 'tblTempVendorCDR_20' ) end [2025-03-12 05:14:17] Production.INFO: ProcessCDR(1,14661957,1,1,2) [2025-03-12 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661957', 'tblTempUsageDetail_20' ) start [2025-03-12 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661957', 'tblTempUsageDetail_20' ) end [2025-03-12 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:14:21] Production.INFO: ==15024== Releasing lock... [2025-03-12 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:15:05 [end_date_ymd] => 2025-03-12 05:15:05 [RateCDR] => 1 ) [2025-03-12 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:15:05' and `end` < '2025-03-12 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:15:17] Production.INFO: count ==132 [2025-03-12 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:15:05 - End Time 2025-03-12 05:15:05 [2025-03-12 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661962', 'tblTempUsageDetail_20' ) start [2025-03-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661962', 'tblTempUsageDetail_20' ) end [2025-03-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661962', 'tblTempVendorCDR_20' ) start [2025-03-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661962', 'tblTempVendorCDR_20' ) end [2025-03-12 05:15:17] Production.INFO: ProcessCDR(1,14661962,1,1,2) [2025-03-12 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661962', 'tblTempUsageDetail_20' ) start [2025-03-12 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661962', 'tblTempUsageDetail_20' ) end [2025-03-12 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:15:20] Production.INFO: ==15099== Releasing lock... [2025-03-12 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:16:05 [end_date_ymd] => 2025-03-12 05:16:05 [RateCDR] => 1 ) [2025-03-12 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:16:05' and `end` < '2025-03-12 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:16:17] Production.INFO: count ==132 [2025-03-12 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:16:05 - End Time 2025-03-12 05:16:05 [2025-03-12 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661967', 'tblTempUsageDetail_20' ) start [2025-03-12 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661967', 'tblTempUsageDetail_20' ) end [2025-03-12 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661967', 'tblTempVendorCDR_20' ) start [2025-03-12 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661967', 'tblTempVendorCDR_20' ) end [2025-03-12 05:16:17] Production.INFO: ProcessCDR(1,14661967,1,1,2) [2025-03-12 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661967', 'tblTempUsageDetail_20' ) start [2025-03-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661967', 'tblTempUsageDetail_20' ) end [2025-03-12 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:16:21] Production.INFO: ==15170== Releasing lock... [2025-03-12 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:17:05 [end_date_ymd] => 2025-03-12 05:17:05 [RateCDR] => 1 ) [2025-03-12 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:17:05' and `end` < '2025-03-12 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:17:17] Production.INFO: count ==132 [2025-03-12 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:17:05 - End Time 2025-03-12 05:17:05 [2025-03-12 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661972', 'tblTempUsageDetail_20' ) start [2025-03-12 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661972', 'tblTempUsageDetail_20' ) end [2025-03-12 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661972', 'tblTempVendorCDR_20' ) start [2025-03-12 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661972', 'tblTempVendorCDR_20' ) end [2025-03-12 05:17:17] Production.INFO: ProcessCDR(1,14661972,1,1,2) [2025-03-12 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661972', 'tblTempUsageDetail_20' ) start [2025-03-12 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661972', 'tblTempUsageDetail_20' ) end [2025-03-12 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:17:20] Production.INFO: ==15241== Releasing lock... [2025-03-12 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:18:05 [end_date_ymd] => 2025-03-12 05:18:05 [RateCDR] => 1 ) [2025-03-12 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:18:05' and `end` < '2025-03-12 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:18:17] Production.INFO: count ==132 [2025-03-12 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:18:05 - End Time 2025-03-12 05:18:05 [2025-03-12 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661977', 'tblTempUsageDetail_20' ) start [2025-03-12 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661977', 'tblTempUsageDetail_20' ) end [2025-03-12 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661977', 'tblTempVendorCDR_20' ) start [2025-03-12 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661977', 'tblTempVendorCDR_20' ) end [2025-03-12 05:18:17] Production.INFO: ProcessCDR(1,14661977,1,1,2) [2025-03-12 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661977', 'tblTempUsageDetail_20' ) start [2025-03-12 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661977', 'tblTempUsageDetail_20' ) end [2025-03-12 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:18:21] Production.INFO: ==15323== Releasing lock... [2025-03-12 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:19:05 [end_date_ymd] => 2025-03-12 05:19:05 [RateCDR] => 1 ) [2025-03-12 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:19:05' and `end` < '2025-03-12 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:19:17] Production.INFO: count ==132 [2025-03-12 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:19:05 - End Time 2025-03-12 05:19:05 [2025-03-12 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661982', 'tblTempUsageDetail_20' ) start [2025-03-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661982', 'tblTempUsageDetail_20' ) end [2025-03-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661982', 'tblTempVendorCDR_20' ) start [2025-03-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661982', 'tblTempVendorCDR_20' ) end [2025-03-12 05:19:17] Production.INFO: ProcessCDR(1,14661982,1,1,2) [2025-03-12 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661982', 'tblTempUsageDetail_20' ) start [2025-03-12 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661982', 'tblTempUsageDetail_20' ) end [2025-03-12 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:19:20] Production.INFO: ==15394== Releasing lock... [2025-03-12 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:20:06 [end_date_ymd] => 2025-03-12 05:20:06 [RateCDR] => 1 ) [2025-03-12 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:20:06' and `end` < '2025-03-12 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:20:18] Production.INFO: count ==132 [2025-03-12 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:20:06 - End Time 2025-03-12 05:20:06 [2025-03-12 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661987', 'tblTempUsageDetail_20' ) start [2025-03-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661987', 'tblTempUsageDetail_20' ) end [2025-03-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661987', 'tblTempVendorCDR_20' ) start [2025-03-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661987', 'tblTempVendorCDR_20' ) end [2025-03-12 05:20:18] Production.INFO: ProcessCDR(1,14661987,1,1,2) [2025-03-12 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661987', 'tblTempUsageDetail_20' ) start [2025-03-12 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661987', 'tblTempUsageDetail_20' ) end [2025-03-12 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:20:22] Production.INFO: ==15507== Releasing lock... [2025-03-12 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:21:05 [end_date_ymd] => 2025-03-12 05:21:05 [RateCDR] => 1 ) [2025-03-12 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:21:05' and `end` < '2025-03-12 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:21:17] Production.INFO: count ==132 [2025-03-12 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:21:05 - End Time 2025-03-12 05:21:05 [2025-03-12 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661993', 'tblTempUsageDetail_20' ) start [2025-03-12 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661993', 'tblTempUsageDetail_20' ) end [2025-03-12 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661993', 'tblTempVendorCDR_20' ) start [2025-03-12 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661993', 'tblTempVendorCDR_20' ) end [2025-03-12 05:21:17] Production.INFO: ProcessCDR(1,14661993,1,1,2) [2025-03-12 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661993', 'tblTempUsageDetail_20' ) start [2025-03-12 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661993', 'tblTempUsageDetail_20' ) end [2025-03-12 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:21:21] Production.INFO: ==15583== Releasing lock... [2025-03-12 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:22:06 [end_date_ymd] => 2025-03-12 05:22:06 [RateCDR] => 1 ) [2025-03-12 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:22:06' and `end` < '2025-03-12 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:22:18] Production.INFO: count ==130 [2025-03-12 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:22:06 - End Time 2025-03-12 05:22:06 [2025-03-12 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661998', 'tblTempUsageDetail_20' ) start [2025-03-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14661998', 'tblTempUsageDetail_20' ) end [2025-03-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661998', 'tblTempVendorCDR_20' ) start [2025-03-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14661998', 'tblTempVendorCDR_20' ) end [2025-03-12 05:22:18] Production.INFO: ProcessCDR(1,14661998,1,1,2) [2025-03-12 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14661998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14661998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14661998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14661998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661998', 'tblTempUsageDetail_20' ) start [2025-03-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14661998', 'tblTempUsageDetail_20' ) end [2025-03-12 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:22:21] Production.INFO: ==15654== Releasing lock... [2025-03-12 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:22:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:23:05 [end_date_ymd] => 2025-03-12 05:23:05 [RateCDR] => 1 ) [2025-03-12 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:23:05' and `end` < '2025-03-12 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:23:17] Production.INFO: count ==130 [2025-03-12 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:23:05 - End Time 2025-03-12 05:23:05 [2025-03-12 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662003', 'tblTempUsageDetail_20' ) start [2025-03-12 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662003', 'tblTempUsageDetail_20' ) end [2025-03-12 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662003', 'tblTempVendorCDR_20' ) start [2025-03-12 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662003', 'tblTempVendorCDR_20' ) end [2025-03-12 05:23:17] Production.INFO: ProcessCDR(1,14662003,1,1,2) [2025-03-12 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662003', 'tblTempUsageDetail_20' ) start [2025-03-12 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662003', 'tblTempUsageDetail_20' ) end [2025-03-12 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:23:20] Production.INFO: ==15724== Releasing lock... [2025-03-12 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:24:05 [end_date_ymd] => 2025-03-12 05:24:05 [RateCDR] => 1 ) [2025-03-12 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:24:05' and `end` < '2025-03-12 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:24:17] Production.INFO: count ==129 [2025-03-12 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:24:05 - End Time 2025-03-12 05:24:05 [2025-03-12 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662008', 'tblTempUsageDetail_20' ) start [2025-03-12 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662008', 'tblTempUsageDetail_20' ) end [2025-03-12 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662008', 'tblTempVendorCDR_20' ) start [2025-03-12 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662008', 'tblTempVendorCDR_20' ) end [2025-03-12 05:24:17] Production.INFO: ProcessCDR(1,14662008,1,1,2) [2025-03-12 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662008', 'tblTempUsageDetail_20' ) start [2025-03-12 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662008', 'tblTempUsageDetail_20' ) end [2025-03-12 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:24:21] Production.INFO: ==15799== Releasing lock... [2025-03-12 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:25:05 [end_date_ymd] => 2025-03-12 05:25:05 [RateCDR] => 1 ) [2025-03-12 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:25:05' and `end` < '2025-03-12 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:25:17] Production.INFO: count ==129 [2025-03-12 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:25:05 - End Time 2025-03-12 05:25:05 [2025-03-12 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662013', 'tblTempUsageDetail_20' ) start [2025-03-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662013', 'tblTempUsageDetail_20' ) end [2025-03-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662013', 'tblTempVendorCDR_20' ) start [2025-03-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662013', 'tblTempVendorCDR_20' ) end [2025-03-12 05:25:17] Production.INFO: ProcessCDR(1,14662013,1,1,2) [2025-03-12 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662013', 'tblTempUsageDetail_20' ) start [2025-03-12 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662013', 'tblTempUsageDetail_20' ) end [2025-03-12 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:25:21] Production.INFO: ==15873== Releasing lock... [2025-03-12 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:25:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:26:05 [end_date_ymd] => 2025-03-12 05:26:05 [RateCDR] => 1 ) [2025-03-12 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:26:05' and `end` < '2025-03-12 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:26:17] Production.INFO: count ==128 [2025-03-12 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:26:05 - End Time 2025-03-12 05:26:05 [2025-03-12 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662018', 'tblTempUsageDetail_20' ) start [2025-03-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662018', 'tblTempUsageDetail_20' ) end [2025-03-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662018', 'tblTempVendorCDR_20' ) start [2025-03-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662018', 'tblTempVendorCDR_20' ) end [2025-03-12 05:26:17] Production.INFO: ProcessCDR(1,14662018,1,1,2) [2025-03-12 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662018', 'tblTempUsageDetail_20' ) start [2025-03-12 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662018', 'tblTempUsageDetail_20' ) end [2025-03-12 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:26:20] Production.INFO: ==15950== Releasing lock... [2025-03-12 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:27:04 [end_date_ymd] => 2025-03-12 05:27:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 02:27:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:27:17] Production.INFO: count ==128 [2025-03-12 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:27:04 - End Time 2025-03-12 05:27:04 [2025-03-12 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662023', 'tblTempUsageDetail_20' ) start [2025-03-12 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662023', 'tblTempUsageDetail_20' ) end [2025-03-12 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662023', 'tblTempVendorCDR_20' ) start [2025-03-12 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662023', 'tblTempVendorCDR_20' ) end [2025-03-12 05:27:17] Production.INFO: ProcessCDR(1,14662023,1,1,2) [2025-03-12 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662023', 'tblTempUsageDetail_20' ) start [2025-03-12 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662023', 'tblTempUsageDetail_20' ) end [2025-03-12 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:27:20] Production.INFO: ==16045== Releasing lock... [2025-03-12 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:28:05 [end_date_ymd] => 2025-03-12 05:28:05 [RateCDR] => 1 ) [2025-03-12 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:28:05' and `end` < '2025-03-12 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:28:17] Production.INFO: count ==128 [2025-03-12 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:28:05 - End Time 2025-03-12 05:28:05 [2025-03-12 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662028', 'tblTempUsageDetail_20' ) start [2025-03-12 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662028', 'tblTempUsageDetail_20' ) end [2025-03-12 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662028', 'tblTempVendorCDR_20' ) start [2025-03-12 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662028', 'tblTempVendorCDR_20' ) end [2025-03-12 05:28:17] Production.INFO: ProcessCDR(1,14662028,1,1,2) [2025-03-12 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662028', 'tblTempUsageDetail_20' ) start [2025-03-12 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662028', 'tblTempUsageDetail_20' ) end [2025-03-12 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:28:20] Production.INFO: ==16145== Releasing lock... [2025-03-12 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:28:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:29:05 [end_date_ymd] => 2025-03-12 05:29:05 [RateCDR] => 1 ) [2025-03-12 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:29:05' and `end` < '2025-03-12 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:29:17] Production.INFO: count ==128 [2025-03-12 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:29:05 - End Time 2025-03-12 05:29:05 [2025-03-12 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662033', 'tblTempUsageDetail_20' ) start [2025-03-12 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662033', 'tblTempUsageDetail_20' ) end [2025-03-12 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662033', 'tblTempVendorCDR_20' ) start [2025-03-12 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662033', 'tblTempVendorCDR_20' ) end [2025-03-12 05:29:17] Production.INFO: ProcessCDR(1,14662033,1,1,2) [2025-03-12 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662033', 'tblTempUsageDetail_20' ) start [2025-03-12 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662033', 'tblTempUsageDetail_20' ) end [2025-03-12 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:29:21] Production.INFO: ==16242== Releasing lock... [2025-03-12 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:30:06 [end_date_ymd] => 2025-03-12 05:30:06 [RateCDR] => 1 ) [2025-03-12 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:30:06' and `end` < '2025-03-12 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:30:18] Production.INFO: count ==119 [2025-03-12 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:30:06 - End Time 2025-03-12 05:30:06 [2025-03-12 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662038', 'tblTempUsageDetail_20' ) start [2025-03-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662038', 'tblTempUsageDetail_20' ) end [2025-03-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662038', 'tblTempVendorCDR_20' ) start [2025-03-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662038', 'tblTempVendorCDR_20' ) end [2025-03-12 05:30:18] Production.INFO: ProcessCDR(1,14662038,1,1,2) [2025-03-12 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662038', 'tblTempUsageDetail_20' ) start [2025-03-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662038', 'tblTempUsageDetail_20' ) end [2025-03-12 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:30:22] Production.INFO: ==16342== Releasing lock... [2025-03-12 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:31:05 [end_date_ymd] => 2025-03-12 05:31:05 [RateCDR] => 1 ) [2025-03-12 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:31:05' and `end` < '2025-03-12 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:31:17] Production.INFO: count ==113 [2025-03-12 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:31:05 - End Time 2025-03-12 05:31:05 [2025-03-12 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662044', 'tblTempUsageDetail_20' ) start [2025-03-12 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662044', 'tblTempUsageDetail_20' ) end [2025-03-12 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662044', 'tblTempVendorCDR_20' ) start [2025-03-12 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662044', 'tblTempVendorCDR_20' ) end [2025-03-12 05:31:17] Production.INFO: ProcessCDR(1,14662044,1,1,2) [2025-03-12 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662044', 'tblTempUsageDetail_20' ) start [2025-03-12 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662044', 'tblTempUsageDetail_20' ) end [2025-03-12 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:31:20] Production.INFO: ==16442== Releasing lock... [2025-03-12 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:31:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:32:05 [end_date_ymd] => 2025-03-12 05:32:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 02:32:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:32:17] Production.INFO: count ==113 [2025-03-12 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:32:05 - End Time 2025-03-12 05:32:05 [2025-03-12 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662049', 'tblTempUsageDetail_20' ) start [2025-03-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662049', 'tblTempUsageDetail_20' ) end [2025-03-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662049', 'tblTempVendorCDR_20' ) start [2025-03-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662049', 'tblTempVendorCDR_20' ) end [2025-03-12 05:32:17] Production.INFO: ProcessCDR(1,14662049,1,1,2) [2025-03-12 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662049', 'tblTempUsageDetail_20' ) start [2025-03-12 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662049', 'tblTempUsageDetail_20' ) end [2025-03-12 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:32:20] Production.INFO: ==16542== Releasing lock... [2025-03-12 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:32:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:33:05 [end_date_ymd] => 2025-03-12 05:33:05 [RateCDR] => 1 ) [2025-03-12 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:33:05' and `end` < '2025-03-12 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:33:17] Production.INFO: count ==113 [2025-03-12 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:33:05 - End Time 2025-03-12 05:33:05 [2025-03-12 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662054', 'tblTempUsageDetail_20' ) start [2025-03-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662054', 'tblTempUsageDetail_20' ) end [2025-03-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662054', 'tblTempVendorCDR_20' ) start [2025-03-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662054', 'tblTempVendorCDR_20' ) end [2025-03-12 05:33:17] Production.INFO: ProcessCDR(1,14662054,1,1,2) [2025-03-12 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662054', 'tblTempUsageDetail_20' ) start [2025-03-12 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662054', 'tblTempUsageDetail_20' ) end [2025-03-12 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:33:20] Production.INFO: ==16638== Releasing lock... [2025-03-12 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:33:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:34:05 [end_date_ymd] => 2025-03-12 05:34:05 [RateCDR] => 1 ) [2025-03-12 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:34:05' and `end` < '2025-03-12 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:34:17] Production.INFO: count ==113 [2025-03-12 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:34:05 - End Time 2025-03-12 05:34:05 [2025-03-12 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662059', 'tblTempUsageDetail_20' ) start [2025-03-12 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662059', 'tblTempUsageDetail_20' ) end [2025-03-12 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662059', 'tblTempVendorCDR_20' ) start [2025-03-12 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662059', 'tblTempVendorCDR_20' ) end [2025-03-12 05:34:17] Production.INFO: ProcessCDR(1,14662059,1,1,2) [2025-03-12 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662059', 'tblTempUsageDetail_20' ) start [2025-03-12 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662059', 'tblTempUsageDetail_20' ) end [2025-03-12 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:34:21] Production.INFO: ==16741== Releasing lock... [2025-03-12 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:35:05 [end_date_ymd] => 2025-03-12 05:35:05 [RateCDR] => 1 ) [2025-03-12 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:35:05' and `end` < '2025-03-12 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:35:17] Production.INFO: count ==113 [2025-03-12 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:35:05 - End Time 2025-03-12 05:35:05 [2025-03-12 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662064', 'tblTempUsageDetail_20' ) start [2025-03-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662064', 'tblTempUsageDetail_20' ) end [2025-03-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662064', 'tblTempVendorCDR_20' ) start [2025-03-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662064', 'tblTempVendorCDR_20' ) end [2025-03-12 05:35:17] Production.INFO: ProcessCDR(1,14662064,1,1,2) [2025-03-12 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662064', 'tblTempUsageDetail_20' ) start [2025-03-12 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662064', 'tblTempUsageDetail_20' ) end [2025-03-12 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:35:20] Production.INFO: ==16839== Releasing lock... [2025-03-12 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:36:05 [end_date_ymd] => 2025-03-12 05:36:05 [RateCDR] => 1 ) [2025-03-12 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:36:05' and `end` < '2025-03-12 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:36:17] Production.INFO: count ==113 [2025-03-12 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:36:05 - End Time 2025-03-12 05:36:05 [2025-03-12 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662069', 'tblTempUsageDetail_20' ) start [2025-03-12 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662069', 'tblTempUsageDetail_20' ) end [2025-03-12 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662069', 'tblTempVendorCDR_20' ) start [2025-03-12 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662069', 'tblTempVendorCDR_20' ) end [2025-03-12 05:36:17] Production.INFO: ProcessCDR(1,14662069,1,1,2) [2025-03-12 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662069', 'tblTempUsageDetail_20' ) start [2025-03-12 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662069', 'tblTempUsageDetail_20' ) end [2025-03-12 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:36:21] Production.INFO: ==16977== Releasing lock... [2025-03-12 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:37:05 [end_date_ymd] => 2025-03-12 05:37:05 [RateCDR] => 1 ) [2025-03-12 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:37:05' and `end` < '2025-03-12 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:37:17] Production.INFO: count ==113 [2025-03-12 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:37:05 - End Time 2025-03-12 05:37:05 [2025-03-12 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662074', 'tblTempUsageDetail_20' ) start [2025-03-12 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662074', 'tblTempUsageDetail_20' ) end [2025-03-12 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662074', 'tblTempVendorCDR_20' ) start [2025-03-12 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662074', 'tblTempVendorCDR_20' ) end [2025-03-12 05:37:17] Production.INFO: ProcessCDR(1,14662074,1,1,2) [2025-03-12 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662074', 'tblTempUsageDetail_20' ) start [2025-03-12 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662074', 'tblTempUsageDetail_20' ) end [2025-03-12 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:37:20] Production.INFO: ==17074== Releasing lock... [2025-03-12 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:38:05 [end_date_ymd] => 2025-03-12 05:38:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 02:38:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:38:17] Production.INFO: count ==113 [2025-03-12 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:38:05 - End Time 2025-03-12 05:38:05 [2025-03-12 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662079', 'tblTempUsageDetail_20' ) start [2025-03-12 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662079', 'tblTempUsageDetail_20' ) end [2025-03-12 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662079', 'tblTempVendorCDR_20' ) start [2025-03-12 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662079', 'tblTempVendorCDR_20' ) end [2025-03-12 05:38:17] Production.INFO: ProcessCDR(1,14662079,1,1,2) [2025-03-12 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662079', 'tblTempUsageDetail_20' ) start [2025-03-12 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662079', 'tblTempUsageDetail_20' ) end [2025-03-12 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:38:21] Production.INFO: ==17172== Releasing lock... [2025-03-12 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:38:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:39:04 [end_date_ymd] => 2025-03-12 05:39:04 [RateCDR] => 1 ) [2025-03-12 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:39:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:39:17] Production.INFO: count ==113 [2025-03-12 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:39:04 - End Time 2025-03-12 05:39:04 [2025-03-12 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662084', 'tblTempUsageDetail_20' ) start [2025-03-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662084', 'tblTempUsageDetail_20' ) end [2025-03-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662084', 'tblTempVendorCDR_20' ) start [2025-03-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662084', 'tblTempVendorCDR_20' ) end [2025-03-12 05:39:17] Production.INFO: ProcessCDR(1,14662084,1,1,2) [2025-03-12 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662084', 'tblTempUsageDetail_20' ) start [2025-03-12 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662084', 'tblTempUsageDetail_20' ) end [2025-03-12 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:39:20] Production.INFO: ==17267== Releasing lock... [2025-03-12 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:39:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:40:06 [end_date_ymd] => 2025-03-12 05:40:06 [RateCDR] => 1 ) [2025-03-12 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:40:06' and `end` < '2025-03-12 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:40:18] Production.INFO: count ==103 [2025-03-12 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:40:06 - End Time 2025-03-12 05:40:06 [2025-03-12 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662089', 'tblTempUsageDetail_20' ) start [2025-03-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662089', 'tblTempUsageDetail_20' ) end [2025-03-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662089', 'tblTempVendorCDR_20' ) start [2025-03-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662089', 'tblTempVendorCDR_20' ) end [2025-03-12 05:40:18] Production.INFO: ProcessCDR(1,14662089,1,1,2) [2025-03-12 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662089', 'tblTempUsageDetail_20' ) start [2025-03-12 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662089', 'tblTempUsageDetail_20' ) end [2025-03-12 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:40:21] Production.INFO: ==17367== Releasing lock... [2025-03-12 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:41:05 [end_date_ymd] => 2025-03-12 05:41:05 [RateCDR] => 1 ) [2025-03-12 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:41:05' and `end` < '2025-03-12 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:41:17] Production.INFO: count ==103 [2025-03-12 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:41:05 - End Time 2025-03-12 05:41:05 [2025-03-12 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662095', 'tblTempUsageDetail_20' ) start [2025-03-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662095', 'tblTempUsageDetail_20' ) end [2025-03-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662095', 'tblTempVendorCDR_20' ) start [2025-03-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662095', 'tblTempVendorCDR_20' ) end [2025-03-12 05:41:17] Production.INFO: ProcessCDR(1,14662095,1,1,2) [2025-03-12 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662095', 'tblTempUsageDetail_20' ) start [2025-03-12 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662095', 'tblTempUsageDetail_20' ) end [2025-03-12 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:41:21] Production.INFO: ==17468== Releasing lock... [2025-03-12 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:42:05 [end_date_ymd] => 2025-03-12 05:42:05 [RateCDR] => 1 ) [2025-03-12 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:42:05' and `end` < '2025-03-12 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:42:17] Production.INFO: count ==103 [2025-03-12 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:42:05 - End Time 2025-03-12 05:42:05 [2025-03-12 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662100', 'tblTempUsageDetail_20' ) start [2025-03-12 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662100', 'tblTempUsageDetail_20' ) end [2025-03-12 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662100', 'tblTempVendorCDR_20' ) start [2025-03-12 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662100', 'tblTempVendorCDR_20' ) end [2025-03-12 05:42:17] Production.INFO: ProcessCDR(1,14662100,1,1,2) [2025-03-12 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662100', 'tblTempUsageDetail_20' ) start [2025-03-12 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662100', 'tblTempUsageDetail_20' ) end [2025-03-12 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:42:21] Production.INFO: ==17563== Releasing lock... [2025-03-12 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:43:06 [end_date_ymd] => 2025-03-12 05:43:06 [RateCDR] => 1 ) [2025-03-12 05:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:43:06' and `end` < '2025-03-12 05:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:43:18] Production.INFO: count ==103 [2025-03-12 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:43:06 - End Time 2025-03-12 05:43:06 [2025-03-12 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662105', 'tblTempUsageDetail_20' ) start [2025-03-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662105', 'tblTempUsageDetail_20' ) end [2025-03-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662105', 'tblTempVendorCDR_20' ) start [2025-03-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662105', 'tblTempVendorCDR_20' ) end [2025-03-12 05:43:18] Production.INFO: ProcessCDR(1,14662105,1,1,2) [2025-03-12 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662105', 'tblTempUsageDetail_20' ) start [2025-03-12 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662105', 'tblTempUsageDetail_20' ) end [2025-03-12 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:43:21] Production.INFO: ==17661== Releasing lock... [2025-03-12 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:44:05 [end_date_ymd] => 2025-03-12 05:44:05 [RateCDR] => 1 ) [2025-03-12 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:44:05' and `end` < '2025-03-12 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:44:17] Production.INFO: count ==103 [2025-03-12 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:44:05 - End Time 2025-03-12 05:44:05 [2025-03-12 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662110', 'tblTempUsageDetail_20' ) start [2025-03-12 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662110', 'tblTempUsageDetail_20' ) end [2025-03-12 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662110', 'tblTempVendorCDR_20' ) start [2025-03-12 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662110', 'tblTempVendorCDR_20' ) end [2025-03-12 05:44:17] Production.INFO: ProcessCDR(1,14662110,1,1,2) [2025-03-12 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662110', 'tblTempUsageDetail_20' ) start [2025-03-12 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662110', 'tblTempUsageDetail_20' ) end [2025-03-12 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:44:20] Production.INFO: ==17756== Releasing lock... [2025-03-12 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:45:05 [end_date_ymd] => 2025-03-12 05:45:05 [RateCDR] => 1 ) [2025-03-12 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:45:05' and `end` < '2025-03-12 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:45:17] Production.INFO: count ==103 [2025-03-12 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:45:05 - End Time 2025-03-12 05:45:05 [2025-03-12 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662115', 'tblTempUsageDetail_20' ) start [2025-03-12 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662115', 'tblTempUsageDetail_20' ) end [2025-03-12 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662115', 'tblTempVendorCDR_20' ) start [2025-03-12 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662115', 'tblTempVendorCDR_20' ) end [2025-03-12 05:45:17] Production.INFO: ProcessCDR(1,14662115,1,1,2) [2025-03-12 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662115', 'tblTempUsageDetail_20' ) start [2025-03-12 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662115', 'tblTempUsageDetail_20' ) end [2025-03-12 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:45:20] Production.INFO: ==17829== Releasing lock... [2025-03-12 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:46:05 [end_date_ymd] => 2025-03-12 05:46:05 [RateCDR] => 1 ) [2025-03-12 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:46:05' and `end` < '2025-03-12 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:46:17] Production.INFO: count ==103 [2025-03-12 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:46:05 - End Time 2025-03-12 05:46:05 [2025-03-12 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662120', 'tblTempUsageDetail_20' ) start [2025-03-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662120', 'tblTempUsageDetail_20' ) end [2025-03-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662120', 'tblTempVendorCDR_20' ) start [2025-03-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662120', 'tblTempVendorCDR_20' ) end [2025-03-12 05:46:17] Production.INFO: ProcessCDR(1,14662120,1,1,2) [2025-03-12 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662120', 'tblTempUsageDetail_20' ) start [2025-03-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662120', 'tblTempUsageDetail_20' ) end [2025-03-12 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:46:21] Production.INFO: ==17901== Releasing lock... [2025-03-12 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:47:06 [end_date_ymd] => 2025-03-12 05:47:06 [RateCDR] => 1 ) [2025-03-12 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:47:06' and `end` < '2025-03-12 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:47:18] Production.INFO: count ==94 [2025-03-12 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:47:06 - End Time 2025-03-12 05:47:06 [2025-03-12 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662125', 'tblTempUsageDetail_20' ) start [2025-03-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662125', 'tblTempUsageDetail_20' ) end [2025-03-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662125', 'tblTempVendorCDR_20' ) start [2025-03-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662125', 'tblTempVendorCDR_20' ) end [2025-03-12 05:47:18] Production.INFO: ProcessCDR(1,14662125,1,1,2) [2025-03-12 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662125', 'tblTempUsageDetail_20' ) start [2025-03-12 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662125', 'tblTempUsageDetail_20' ) end [2025-03-12 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:47:22] Production.INFO: ==17973== Releasing lock... [2025-03-12 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:48:05 [end_date_ymd] => 2025-03-12 05:48:05 [RateCDR] => 1 ) [2025-03-12 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:48:05' and `end` < '2025-03-12 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:48:17] Production.INFO: count ==92 [2025-03-12 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:48:05 - End Time 2025-03-12 05:48:05 [2025-03-12 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662130', 'tblTempUsageDetail_20' ) start [2025-03-12 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662130', 'tblTempUsageDetail_20' ) end [2025-03-12 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662130', 'tblTempVendorCDR_20' ) start [2025-03-12 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662130', 'tblTempVendorCDR_20' ) end [2025-03-12 05:48:17] Production.INFO: ProcessCDR(1,14662130,1,1,2) [2025-03-12 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662130', 'tblTempUsageDetail_20' ) start [2025-03-12 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662130', 'tblTempUsageDetail_20' ) end [2025-03-12 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:48:20] Production.INFO: ==18044== Releasing lock... [2025-03-12 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:49:06 [end_date_ymd] => 2025-03-12 05:49:06 [RateCDR] => 1 ) [2025-03-12 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:49:06' and `end` < '2025-03-12 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:49:18] Production.INFO: count ==94 [2025-03-12 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:49:06 - End Time 2025-03-12 05:49:06 [2025-03-12 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662135', 'tblTempUsageDetail_20' ) start [2025-03-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662135', 'tblTempUsageDetail_20' ) end [2025-03-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662135', 'tblTempVendorCDR_20' ) start [2025-03-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662135', 'tblTempVendorCDR_20' ) end [2025-03-12 05:49:18] Production.INFO: ProcessCDR(1,14662135,1,1,2) [2025-03-12 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662135', 'tblTempUsageDetail_20' ) start [2025-03-12 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662135', 'tblTempUsageDetail_20' ) end [2025-03-12 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:49:24] Production.INFO: ==18116== Releasing lock... [2025-03-12 05:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:49:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:50:05 [end_date_ymd] => 2025-03-12 05:50:05 [RateCDR] => 1 ) [2025-03-12 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:50:05' and `end` < '2025-03-12 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:50:17] Production.INFO: count ==99 [2025-03-12 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:50:05 - End Time 2025-03-12 05:50:05 [2025-03-12 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662140', 'tblTempUsageDetail_20' ) start [2025-03-12 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662140', 'tblTempUsageDetail_20' ) end [2025-03-12 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662140', 'tblTempVendorCDR_20' ) start [2025-03-12 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662140', 'tblTempVendorCDR_20' ) end [2025-03-12 05:50:17] Production.INFO: ProcessCDR(1,14662140,1,1,2) [2025-03-12 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662140', 'tblTempUsageDetail_20' ) start [2025-03-12 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662140', 'tblTempUsageDetail_20' ) end [2025-03-12 05:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:50:20] Production.INFO: ==18189== Releasing lock... [2025-03-12 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:50:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:51:05 [end_date_ymd] => 2025-03-12 05:51:05 [RateCDR] => 1 ) [2025-03-12 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:51:05' and `end` < '2025-03-12 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:51:17] Production.INFO: count ==103 [2025-03-12 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:51:05 - End Time 2025-03-12 05:51:05 [2025-03-12 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662146', 'tblTempUsageDetail_20' ) start [2025-03-12 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662146', 'tblTempUsageDetail_20' ) end [2025-03-12 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662146', 'tblTempVendorCDR_20' ) start [2025-03-12 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662146', 'tblTempVendorCDR_20' ) end [2025-03-12 05:51:17] Production.INFO: ProcessCDR(1,14662146,1,1,2) [2025-03-12 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662146', 'tblTempUsageDetail_20' ) start [2025-03-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662146', 'tblTempUsageDetail_20' ) end [2025-03-12 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:51:21] Production.INFO: ==18307== Releasing lock... [2025-03-12 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:52:05 [end_date_ymd] => 2025-03-12 05:52:05 [RateCDR] => 1 ) [2025-03-12 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:52:05' and `end` < '2025-03-12 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:52:17] Production.INFO: count ==103 [2025-03-12 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:52:05 - End Time 2025-03-12 05:52:05 [2025-03-12 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662151', 'tblTempUsageDetail_20' ) start [2025-03-12 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662151', 'tblTempUsageDetail_20' ) end [2025-03-12 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662151', 'tblTempVendorCDR_20' ) start [2025-03-12 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662151', 'tblTempVendorCDR_20' ) end [2025-03-12 05:52:17] Production.INFO: ProcessCDR(1,14662151,1,1,2) [2025-03-12 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662151', 'tblTempUsageDetail_20' ) start [2025-03-12 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662151', 'tblTempUsageDetail_20' ) end [2025-03-12 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:52:22] Production.INFO: ==18375== Releasing lock... [2025-03-12 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:53:05 [end_date_ymd] => 2025-03-12 05:53:05 [RateCDR] => 1 ) [2025-03-12 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:53:05' and `end` < '2025-03-12 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:53:17] Production.INFO: count ==106 [2025-03-12 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:53:05 - End Time 2025-03-12 05:53:05 [2025-03-12 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662156', 'tblTempUsageDetail_20' ) start [2025-03-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662156', 'tblTempUsageDetail_20' ) end [2025-03-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662156', 'tblTempVendorCDR_20' ) start [2025-03-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662156', 'tblTempVendorCDR_20' ) end [2025-03-12 05:53:17] Production.INFO: ProcessCDR(1,14662156,1,1,2) [2025-03-12 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662156', 'tblTempUsageDetail_20' ) start [2025-03-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662156', 'tblTempUsageDetail_20' ) end [2025-03-12 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:53:21] Production.INFO: ==18450== Releasing lock... [2025-03-12 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:54:05 [end_date_ymd] => 2025-03-12 05:54:05 [RateCDR] => 1 ) [2025-03-12 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:54:05' and `end` < '2025-03-12 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:54:17] Production.INFO: count ==107 [2025-03-12 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:54:05 - End Time 2025-03-12 05:54:05 [2025-03-12 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662161', 'tblTempUsageDetail_20' ) start [2025-03-12 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662161', 'tblTempUsageDetail_20' ) end [2025-03-12 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662161', 'tblTempVendorCDR_20' ) start [2025-03-12 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662161', 'tblTempVendorCDR_20' ) end [2025-03-12 05:54:17] Production.INFO: ProcessCDR(1,14662161,1,1,2) [2025-03-12 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662161', 'tblTempUsageDetail_20' ) start [2025-03-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662161', 'tblTempUsageDetail_20' ) end [2025-03-12 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:54:22] Production.INFO: ==18519== Releasing lock... [2025-03-12 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:55:06 [end_date_ymd] => 2025-03-12 05:55:06 [RateCDR] => 1 ) [2025-03-12 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:55:06' and `end` < '2025-03-12 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:55:18] Production.INFO: count ==108 [2025-03-12 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-12 02:55:06 - End Time 2025-03-12 05:55:06 [2025-03-12 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662166', 'tblTempUsageDetail_20' ) start [2025-03-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662166', 'tblTempUsageDetail_20' ) end [2025-03-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662166', 'tblTempVendorCDR_20' ) start [2025-03-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662166', 'tblTempVendorCDR_20' ) end [2025-03-12 05:55:18] Production.INFO: ProcessCDR(1,14662166,1,1,2) [2025-03-12 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662166', 'tblTempUsageDetail_20' ) start [2025-03-12 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662166', 'tblTempUsageDetail_20' ) end [2025-03-12 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:55:23] Production.INFO: ==18589== Releasing lock... [2025-03-12 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:55:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:56:05 [end_date_ymd] => 2025-03-12 05:56:05 [RateCDR] => 1 ) [2025-03-12 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:56:05' and `end` < '2025-03-12 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:56:17] Production.INFO: count ==107 [2025-03-12 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:56:05 - End Time 2025-03-12 05:56:05 [2025-03-12 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662171', 'tblTempUsageDetail_20' ) start [2025-03-12 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662171', 'tblTempUsageDetail_20' ) end [2025-03-12 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662171', 'tblTempVendorCDR_20' ) start [2025-03-12 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662171', 'tblTempVendorCDR_20' ) end [2025-03-12 05:56:17] Production.INFO: ProcessCDR(1,14662171,1,1,2) [2025-03-12 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662171', 'tblTempUsageDetail_20' ) start [2025-03-12 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662171', 'tblTempUsageDetail_20' ) end [2025-03-12 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:56:20] Production.INFO: ==18659== Releasing lock... [2025-03-12 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:57:05 [end_date_ymd] => 2025-03-12 05:57:05 [RateCDR] => 1 ) [2025-03-12 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:57:05' and `end` < '2025-03-12 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:57:17] Production.INFO: count ==107 [2025-03-12 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:57:05 - End Time 2025-03-12 05:57:05 [2025-03-12 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662176', 'tblTempUsageDetail_20' ) start [2025-03-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662176', 'tblTempUsageDetail_20' ) end [2025-03-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662176', 'tblTempVendorCDR_20' ) start [2025-03-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662176', 'tblTempVendorCDR_20' ) end [2025-03-12 05:57:17] Production.INFO: ProcessCDR(1,14662176,1,1,2) [2025-03-12 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662176', 'tblTempUsageDetail_20' ) start [2025-03-12 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662176', 'tblTempUsageDetail_20' ) end [2025-03-12 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:57:21] Production.INFO: ==18729== Releasing lock... [2025-03-12 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:58:05 [end_date_ymd] => 2025-03-12 05:58:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 02:58:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 05:58:17] Production.INFO: count ==109 [2025-03-12 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:58:05 - End Time 2025-03-12 05:58:05 [2025-03-12 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662181', 'tblTempUsageDetail_20' ) start [2025-03-12 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662181', 'tblTempUsageDetail_20' ) end [2025-03-12 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662181', 'tblTempVendorCDR_20' ) start [2025-03-12 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662181', 'tblTempVendorCDR_20' ) end [2025-03-12 05:58:17] Production.INFO: ProcessCDR(1,14662181,1,1,2) [2025-03-12 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662181', 'tblTempUsageDetail_20' ) start [2025-03-12 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662181', 'tblTempUsageDetail_20' ) end [2025-03-12 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:58:21] Production.INFO: ==18801== Releasing lock... [2025-03-12 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 02:59:05 [end_date_ymd] => 2025-03-12 05:59:05 [RateCDR] => 1 ) [2025-03-12 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 02:59:05' and `end` < '2025-03-12 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 05:59:17] Production.INFO: count ==110 [2025-03-12 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 02:59:05 - End Time 2025-03-12 05:59:05 [2025-03-12 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662186', 'tblTempUsageDetail_20' ) start [2025-03-12 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662186', 'tblTempUsageDetail_20' ) end [2025-03-12 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662186', 'tblTempVendorCDR_20' ) start [2025-03-12 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662186', 'tblTempVendorCDR_20' ) end [2025-03-12 05:59:17] Production.INFO: ProcessCDR(1,14662186,1,1,2) [2025-03-12 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662186', 'tblTempUsageDetail_20' ) start [2025-03-12 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662186', 'tblTempUsageDetail_20' ) end [2025-03-12 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 05:59:22] Production.INFO: ==18871== Releasing lock... [2025-03-12 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 05:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:00:06 [end_date_ymd] => 2025-03-12 06:00:06 [RateCDR] => 1 ) [2025-03-12 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:00:06' and `end` < '2025-03-12 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:00:18] Production.INFO: count ==110 [2025-03-12 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:00:06 - End Time 2025-03-12 06:00:06 [2025-03-12 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662192', 'tblTempUsageDetail_20' ) start [2025-03-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662192', 'tblTempUsageDetail_20' ) end [2025-03-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662192', 'tblTempVendorCDR_20' ) start [2025-03-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662192', 'tblTempVendorCDR_20' ) end [2025-03-12 06:00:18] Production.INFO: ProcessCDR(1,14662192,1,1,2) [2025-03-12 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662192', 'tblTempUsageDetail_20' ) start [2025-03-12 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662192', 'tblTempUsageDetail_20' ) end [2025-03-12 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:00:21] Production.INFO: ==18944== Releasing lock... [2025-03-12 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:01:05 [end_date_ymd] => 2025-03-12 06:01:05 [RateCDR] => 1 ) [2025-03-12 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:01:05' and `end` < '2025-03-12 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:01:17] Production.INFO: count ==110 [2025-03-12 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:01:05 - End Time 2025-03-12 06:01:05 [2025-03-12 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662197', 'tblTempUsageDetail_20' ) start [2025-03-12 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662197', 'tblTempUsageDetail_20' ) end [2025-03-12 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662197', 'tblTempVendorCDR_20' ) start [2025-03-12 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662197', 'tblTempVendorCDR_20' ) end [2025-03-12 06:01:17] Production.INFO: ProcessCDR(1,14662197,1,1,2) [2025-03-12 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662197', 'tblTempUsageDetail_20' ) start [2025-03-12 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662197', 'tblTempUsageDetail_20' ) end [2025-03-12 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:01:21] Production.INFO: ==19035== Releasing lock... [2025-03-12 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:02:05 [end_date_ymd] => 2025-03-12 06:02:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:02:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:02:17] Production.INFO: count ==110 [2025-03-12 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:02:05 - End Time 2025-03-12 06:02:05 [2025-03-12 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662202', 'tblTempUsageDetail_20' ) start [2025-03-12 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662202', 'tblTempUsageDetail_20' ) end [2025-03-12 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662202', 'tblTempVendorCDR_20' ) start [2025-03-12 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662202', 'tblTempVendorCDR_20' ) end [2025-03-12 06:02:17] Production.INFO: ProcessCDR(1,14662202,1,1,2) [2025-03-12 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662202', 'tblTempUsageDetail_20' ) start [2025-03-12 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662202', 'tblTempUsageDetail_20' ) end [2025-03-12 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:02:20] Production.INFO: ==19113== Releasing lock... [2025-03-12 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:02:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:03:05 [end_date_ymd] => 2025-03-12 06:03:05 [RateCDR] => 1 ) [2025-03-12 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:03:05' and `end` < '2025-03-12 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:03:17] Production.INFO: count ==109 [2025-03-12 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:03:05 - End Time 2025-03-12 06:03:05 [2025-03-12 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662207', 'tblTempUsageDetail_20' ) start [2025-03-12 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662207', 'tblTempUsageDetail_20' ) end [2025-03-12 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662207', 'tblTempVendorCDR_20' ) start [2025-03-12 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662207', 'tblTempVendorCDR_20' ) end [2025-03-12 06:03:17] Production.INFO: ProcessCDR(1,14662207,1,1,2) [2025-03-12 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662207', 'tblTempUsageDetail_20' ) start [2025-03-12 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662207', 'tblTempUsageDetail_20' ) end [2025-03-12 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:03:21] Production.INFO: ==19185== Releasing lock... [2025-03-12 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:04:05 [end_date_ymd] => 2025-03-12 06:04:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:04:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:04:17] Production.INFO: count ==109 [2025-03-12 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:04:05 - End Time 2025-03-12 06:04:05 [2025-03-12 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662212', 'tblTempUsageDetail_20' ) start [2025-03-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662212', 'tblTempUsageDetail_20' ) end [2025-03-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662212', 'tblTempVendorCDR_20' ) start [2025-03-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662212', 'tblTempVendorCDR_20' ) end [2025-03-12 06:04:17] Production.INFO: ProcessCDR(1,14662212,1,1,2) [2025-03-12 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662212', 'tblTempUsageDetail_20' ) start [2025-03-12 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662212', 'tblTempUsageDetail_20' ) end [2025-03-12 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:04:20] Production.INFO: ==19258== Releasing lock... [2025-03-12 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:05:05 [end_date_ymd] => 2025-03-12 06:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:05:17] Production.INFO: count ==105 [2025-03-12 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:05:05 - End Time 2025-03-12 06:05:05 [2025-03-12 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662217', 'tblTempUsageDetail_20' ) start [2025-03-12 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662217', 'tblTempUsageDetail_20' ) end [2025-03-12 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662217', 'tblTempVendorCDR_20' ) start [2025-03-12 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662217', 'tblTempVendorCDR_20' ) end [2025-03-12 06:05:17] Production.INFO: ProcessCDR(1,14662217,1,1,2) [2025-03-12 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662217', 'tblTempUsageDetail_20' ) start [2025-03-12 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662217', 'tblTempUsageDetail_20' ) end [2025-03-12 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:05:20] Production.INFO: ==19331== Releasing lock... [2025-03-12 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:06:05 [end_date_ymd] => 2025-03-12 06:06:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:06:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:06:17] Production.INFO: count ==105 [2025-03-12 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:06:05 - End Time 2025-03-12 06:06:05 [2025-03-12 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662222', 'tblTempUsageDetail_20' ) start [2025-03-12 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662222', 'tblTempUsageDetail_20' ) end [2025-03-12 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662222', 'tblTempVendorCDR_20' ) start [2025-03-12 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662222', 'tblTempVendorCDR_20' ) end [2025-03-12 06:06:17] Production.INFO: ProcessCDR(1,14662222,1,1,2) [2025-03-12 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662222', 'tblTempUsageDetail_20' ) start [2025-03-12 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662222', 'tblTempUsageDetail_20' ) end [2025-03-12 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:06:20] Production.INFO: ==19402== Releasing lock... [2025-03-12 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:07:05 [end_date_ymd] => 2025-03-12 06:07:05 [RateCDR] => 1 ) [2025-03-12 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:07:05' and `end` < '2025-03-12 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:07:17] Production.INFO: count ==105 [2025-03-12 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:07:05 - End Time 2025-03-12 06:07:05 [2025-03-12 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662227', 'tblTempUsageDetail_20' ) start [2025-03-12 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662227', 'tblTempUsageDetail_20' ) end [2025-03-12 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662227', 'tblTempVendorCDR_20' ) start [2025-03-12 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662227', 'tblTempVendorCDR_20' ) end [2025-03-12 06:07:17] Production.INFO: ProcessCDR(1,14662227,1,1,2) [2025-03-12 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662227', 'tblTempUsageDetail_20' ) start [2025-03-12 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662227', 'tblTempUsageDetail_20' ) end [2025-03-12 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:07:20] Production.INFO: ==19511== Releasing lock... [2025-03-12 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:08:06 [end_date_ymd] => 2025-03-12 06:08:06 [RateCDR] => 1 ) [2025-03-12 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:08:06' and `end` < '2025-03-12 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:08:18] Production.INFO: count ==105 [2025-03-12 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:08:06 - End Time 2025-03-12 06:08:06 [2025-03-12 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662232', 'tblTempUsageDetail_20' ) start [2025-03-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662232', 'tblTempUsageDetail_20' ) end [2025-03-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662232', 'tblTempVendorCDR_20' ) start [2025-03-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662232', 'tblTempVendorCDR_20' ) end [2025-03-12 06:08:18] Production.INFO: ProcessCDR(1,14662232,1,1,2) [2025-03-12 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662232', 'tblTempUsageDetail_20' ) start [2025-03-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662232', 'tblTempUsageDetail_20' ) end [2025-03-12 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:08:21] Production.INFO: ==19583== Releasing lock... [2025-03-12 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:09:05 [end_date_ymd] => 2025-03-12 06:09:05 [RateCDR] => 1 ) [2025-03-12 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:09:05' and `end` < '2025-03-12 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:09:17] Production.INFO: count ==105 [2025-03-12 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:09:05 - End Time 2025-03-12 06:09:05 [2025-03-12 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662237', 'tblTempUsageDetail_20' ) start [2025-03-12 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662237', 'tblTempUsageDetail_20' ) end [2025-03-12 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662237', 'tblTempVendorCDR_20' ) start [2025-03-12 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662237', 'tblTempVendorCDR_20' ) end [2025-03-12 06:09:17] Production.INFO: ProcessCDR(1,14662237,1,1,2) [2025-03-12 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662237', 'tblTempUsageDetail_20' ) start [2025-03-12 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662237', 'tblTempUsageDetail_20' ) end [2025-03-12 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:09:20] Production.INFO: ==19652== Releasing lock... [2025-03-12 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:10:06 [end_date_ymd] => 2025-03-12 06:10:06 [RateCDR] => 1 ) [2025-03-12 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:10:06' and `end` < '2025-03-12 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:10:18] Production.INFO: count ==105 [2025-03-12 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:10:06 - End Time 2025-03-12 06:10:06 [2025-03-12 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662243', 'tblTempUsageDetail_20' ) start [2025-03-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662243', 'tblTempUsageDetail_20' ) end [2025-03-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662243', 'tblTempVendorCDR_20' ) start [2025-03-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662243', 'tblTempVendorCDR_20' ) end [2025-03-12 06:10:18] Production.INFO: ProcessCDR(1,14662243,1,1,2) [2025-03-12 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662243', 'tblTempUsageDetail_20' ) start [2025-03-12 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662243', 'tblTempUsageDetail_20' ) end [2025-03-12 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:10:21] Production.INFO: ==19727== Releasing lock... [2025-03-12 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:11:05 [end_date_ymd] => 2025-03-12 06:11:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:11:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:11:17] Production.INFO: count ==110 [2025-03-12 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:11:05 - End Time 2025-03-12 06:11:05 [2025-03-12 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662248', 'tblTempUsageDetail_20' ) start [2025-03-12 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662248', 'tblTempUsageDetail_20' ) end [2025-03-12 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662248', 'tblTempVendorCDR_20' ) start [2025-03-12 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662248', 'tblTempVendorCDR_20' ) end [2025-03-12 06:11:17] Production.INFO: ProcessCDR(1,14662248,1,1,2) [2025-03-12 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662248', 'tblTempUsageDetail_20' ) start [2025-03-12 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662248', 'tblTempUsageDetail_20' ) end [2025-03-12 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:11:20] Production.INFO: ==19806== Releasing lock... [2025-03-12 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:12:05 [end_date_ymd] => 2025-03-12 06:12:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:12:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:12:17] Production.INFO: count ==110 [2025-03-12 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:12:05 - End Time 2025-03-12 06:12:05 [2025-03-12 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662253', 'tblTempUsageDetail_20' ) start [2025-03-12 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662253', 'tblTempUsageDetail_20' ) end [2025-03-12 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662253', 'tblTempVendorCDR_20' ) start [2025-03-12 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662253', 'tblTempVendorCDR_20' ) end [2025-03-12 06:12:17] Production.INFO: ProcessCDR(1,14662253,1,1,2) [2025-03-12 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662253', 'tblTempUsageDetail_20' ) start [2025-03-12 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662253', 'tblTempUsageDetail_20' ) end [2025-03-12 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:12:21] Production.INFO: ==19877== Releasing lock... [2025-03-12 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:13:06 [end_date_ymd] => 2025-03-12 06:13:06 [RateCDR] => 1 ) [2025-03-12 06:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:13:06' and `end` < '2025-03-12 06:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:13:18] Production.INFO: count ==116 [2025-03-12 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:13:06 - End Time 2025-03-12 06:13:06 [2025-03-12 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662258', 'tblTempUsageDetail_20' ) start [2025-03-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662258', 'tblTempUsageDetail_20' ) end [2025-03-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662258', 'tblTempVendorCDR_20' ) start [2025-03-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662258', 'tblTempVendorCDR_20' ) end [2025-03-12 06:13:18] Production.INFO: ProcessCDR(1,14662258,1,1,2) [2025-03-12 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662258', 'tblTempUsageDetail_20' ) start [2025-03-12 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662258', 'tblTempUsageDetail_20' ) end [2025-03-12 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:13:21] Production.INFO: ==19947== Releasing lock... [2025-03-12 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:14:04 [end_date_ymd] => 2025-03-12 06:14:04 [RateCDR] => 1 ) [2025-03-12 06:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:14:04' and `end` < '2025-03-12 06:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:14:16] Production.INFO: count ==120 [2025-03-12 06:14:16] Production.ERROR: pbx CDR StartTime 2025-03-12 03:14:04 - End Time 2025-03-12 06:14:04 [2025-03-12 06:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662263', 'tblTempUsageDetail_20' ) start [2025-03-12 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662263', 'tblTempUsageDetail_20' ) end [2025-03-12 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662263', 'tblTempVendorCDR_20' ) start [2025-03-12 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662263', 'tblTempVendorCDR_20' ) end [2025-03-12 06:14:16] Production.INFO: ProcessCDR(1,14662263,1,1,2) [2025-03-12 06:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662263', 'tblTempUsageDetail_20' ) start [2025-03-12 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662263', 'tblTempUsageDetail_20' ) end [2025-03-12 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:14:20] Production.INFO: ==20019== Releasing lock... [2025-03-12 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:14:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:15:05 [end_date_ymd] => 2025-03-12 06:15:05 [RateCDR] => 1 ) [2025-03-12 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:15:05' and `end` < '2025-03-12 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:15:17] Production.INFO: count ==120 [2025-03-12 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:15:05 - End Time 2025-03-12 06:15:05 [2025-03-12 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662268', 'tblTempUsageDetail_20' ) start [2025-03-12 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662268', 'tblTempUsageDetail_20' ) end [2025-03-12 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662268', 'tblTempVendorCDR_20' ) start [2025-03-12 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662268', 'tblTempVendorCDR_20' ) end [2025-03-12 06:15:17] Production.INFO: ProcessCDR(1,14662268,1,1,2) [2025-03-12 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662268', 'tblTempUsageDetail_20' ) start [2025-03-12 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662268', 'tblTempUsageDetail_20' ) end [2025-03-12 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:15:20] Production.INFO: ==20092== Releasing lock... [2025-03-12 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:15:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:16:06 [end_date_ymd] => 2025-03-12 06:16:06 [RateCDR] => 1 ) [2025-03-12 06:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:16:06' and `end` < '2025-03-12 06:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:16:18] Production.INFO: count ==120 [2025-03-12 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:16:06 - End Time 2025-03-12 06:16:06 [2025-03-12 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662273', 'tblTempUsageDetail_20' ) start [2025-03-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662273', 'tblTempUsageDetail_20' ) end [2025-03-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662273', 'tblTempVendorCDR_20' ) start [2025-03-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662273', 'tblTempVendorCDR_20' ) end [2025-03-12 06:16:18] Production.INFO: ProcessCDR(1,14662273,1,1,2) [2025-03-12 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662273', 'tblTempUsageDetail_20' ) start [2025-03-12 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662273', 'tblTempUsageDetail_20' ) end [2025-03-12 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:16:21] Production.INFO: ==20162== Releasing lock... [2025-03-12 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:16:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:17:05 [end_date_ymd] => 2025-03-12 06:17:05 [RateCDR] => 1 ) [2025-03-12 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:17:05' and `end` < '2025-03-12 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:17:17] Production.INFO: count ==120 [2025-03-12 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:17:05 - End Time 2025-03-12 06:17:05 [2025-03-12 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662278', 'tblTempUsageDetail_20' ) start [2025-03-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662278', 'tblTempUsageDetail_20' ) end [2025-03-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662278', 'tblTempVendorCDR_20' ) start [2025-03-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662278', 'tblTempVendorCDR_20' ) end [2025-03-12 06:17:17] Production.INFO: ProcessCDR(1,14662278,1,1,2) [2025-03-12 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662278', 'tblTempUsageDetail_20' ) start [2025-03-12 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662278', 'tblTempUsageDetail_20' ) end [2025-03-12 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:17:20] Production.INFO: ==20234== Releasing lock... [2025-03-12 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:17:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:18:06 [end_date_ymd] => 2025-03-12 06:18:06 [RateCDR] => 1 ) [2025-03-12 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:18:06' and `end` < '2025-03-12 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:18:18] Production.INFO: count ==117 [2025-03-12 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:18:06 - End Time 2025-03-12 06:18:06 [2025-03-12 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662283', 'tblTempUsageDetail_20' ) start [2025-03-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662283', 'tblTempUsageDetail_20' ) end [2025-03-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662283', 'tblTempVendorCDR_20' ) start [2025-03-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662283', 'tblTempVendorCDR_20' ) end [2025-03-12 06:18:18] Production.INFO: ProcessCDR(1,14662283,1,1,2) [2025-03-12 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662283', 'tblTempUsageDetail_20' ) start [2025-03-12 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662283', 'tblTempUsageDetail_20' ) end [2025-03-12 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:18:21] Production.INFO: ==20308== Releasing lock... [2025-03-12 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:19:04 [end_date_ymd] => 2025-03-12 06:19:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:19:04' and `end` < '2025-03-12 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:19:16] Production.INFO: count ==112 [2025-03-12 06:19:16] Production.ERROR: pbx CDR StartTime 2025-03-12 03:19:04 - End Time 2025-03-12 06:19:04 [2025-03-12 06:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662288', 'tblTempUsageDetail_20' ) start [2025-03-12 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662288', 'tblTempUsageDetail_20' ) end [2025-03-12 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662288', 'tblTempVendorCDR_20' ) start [2025-03-12 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662288', 'tblTempVendorCDR_20' ) end [2025-03-12 06:19:16] Production.INFO: ProcessCDR(1,14662288,1,1,2) [2025-03-12 06:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662288', 'tblTempUsageDetail_20' ) start [2025-03-12 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662288', 'tblTempUsageDetail_20' ) end [2025-03-12 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:19:20] Production.INFO: ==20378== Releasing lock... [2025-03-12 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:19:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:20:06 [end_date_ymd] => 2025-03-12 06:20:06 [RateCDR] => 1 ) [2025-03-12 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:20:06' and `end` < '2025-03-12 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:20:18] Production.INFO: count ==104 [2025-03-12 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:20:06 - End Time 2025-03-12 06:20:06 [2025-03-12 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662294', 'tblTempUsageDetail_20' ) start [2025-03-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662294', 'tblTempUsageDetail_20' ) end [2025-03-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662294', 'tblTempVendorCDR_20' ) start [2025-03-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662294', 'tblTempVendorCDR_20' ) end [2025-03-12 06:20:18] Production.INFO: ProcessCDR(1,14662294,1,1,2) [2025-03-12 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662294', 'tblTempUsageDetail_20' ) start [2025-03-12 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662294', 'tblTempUsageDetail_20' ) end [2025-03-12 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:20:21] Production.INFO: ==20451== Releasing lock... [2025-03-12 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:21:05 [end_date_ymd] => 2025-03-12 06:21:05 [RateCDR] => 1 ) [2025-03-12 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:21:05' and `end` < '2025-03-12 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:21:17] Production.INFO: count ==104 [2025-03-12 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:21:05 - End Time 2025-03-12 06:21:05 [2025-03-12 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662299', 'tblTempUsageDetail_20' ) start [2025-03-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662299', 'tblTempUsageDetail_20' ) end [2025-03-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662299', 'tblTempVendorCDR_20' ) start [2025-03-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662299', 'tblTempVendorCDR_20' ) end [2025-03-12 06:21:17] Production.INFO: ProcessCDR(1,14662299,1,1,2) [2025-03-12 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662299', 'tblTempUsageDetail_20' ) start [2025-03-12 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662299', 'tblTempUsageDetail_20' ) end [2025-03-12 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:21:20] Production.INFO: ==20525== Releasing lock... [2025-03-12 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:22:05 [end_date_ymd] => 2025-03-12 06:22:05 [RateCDR] => 1 ) [2025-03-12 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:22:05' and `end` < '2025-03-12 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:22:17] Production.INFO: count ==104 [2025-03-12 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:22:05 - End Time 2025-03-12 06:22:05 [2025-03-12 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662304', 'tblTempUsageDetail_20' ) start [2025-03-12 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662304', 'tblTempUsageDetail_20' ) end [2025-03-12 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662304', 'tblTempVendorCDR_20' ) start [2025-03-12 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662304', 'tblTempVendorCDR_20' ) end [2025-03-12 06:22:17] Production.INFO: ProcessCDR(1,14662304,1,1,2) [2025-03-12 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662304', 'tblTempUsageDetail_20' ) start [2025-03-12 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662304', 'tblTempUsageDetail_20' ) end [2025-03-12 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:22:21] Production.INFO: ==20633== Releasing lock... [2025-03-12 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:23:05 [end_date_ymd] => 2025-03-12 06:23:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:23:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:23:17] Production.INFO: count ==104 [2025-03-12 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:23:05 - End Time 2025-03-12 06:23:05 [2025-03-12 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662309', 'tblTempUsageDetail_20' ) start [2025-03-12 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662309', 'tblTempUsageDetail_20' ) end [2025-03-12 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662309', 'tblTempVendorCDR_20' ) start [2025-03-12 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662309', 'tblTempVendorCDR_20' ) end [2025-03-12 06:23:17] Production.INFO: ProcessCDR(1,14662309,1,1,2) [2025-03-12 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662309', 'tblTempUsageDetail_20' ) start [2025-03-12 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662309', 'tblTempUsageDetail_20' ) end [2025-03-12 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:23:20] Production.INFO: ==20703== Releasing lock... [2025-03-12 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:24:05 [end_date_ymd] => 2025-03-12 06:24:05 [RateCDR] => 1 ) [2025-03-12 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:24:05' and `end` < '2025-03-12 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:24:17] Production.INFO: count ==104 [2025-03-12 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:24:05 - End Time 2025-03-12 06:24:05 [2025-03-12 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662314', 'tblTempUsageDetail_20' ) start [2025-03-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662314', 'tblTempUsageDetail_20' ) end [2025-03-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662314', 'tblTempVendorCDR_20' ) start [2025-03-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662314', 'tblTempVendorCDR_20' ) end [2025-03-12 06:24:17] Production.INFO: ProcessCDR(1,14662314,1,1,2) [2025-03-12 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662314', 'tblTempUsageDetail_20' ) start [2025-03-12 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662314', 'tblTempUsageDetail_20' ) end [2025-03-12 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:24:21] Production.INFO: ==20775== Releasing lock... [2025-03-12 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:25:05 [end_date_ymd] => 2025-03-12 06:25:05 [RateCDR] => 1 ) [2025-03-12 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:25:05' and `end` < '2025-03-12 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:25:17] Production.INFO: count ==104 [2025-03-12 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:25:05 - End Time 2025-03-12 06:25:05 [2025-03-12 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662319', 'tblTempUsageDetail_20' ) start [2025-03-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662319', 'tblTempUsageDetail_20' ) end [2025-03-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662319', 'tblTempVendorCDR_20' ) start [2025-03-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662319', 'tblTempVendorCDR_20' ) end [2025-03-12 06:25:17] Production.INFO: ProcessCDR(1,14662319,1,1,2) [2025-03-12 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662319', 'tblTempUsageDetail_20' ) start [2025-03-12 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662319', 'tblTempUsageDetail_20' ) end [2025-03-12 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:25:20] Production.INFO: ==20845== Releasing lock... [2025-03-12 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:26:05 [end_date_ymd] => 2025-03-12 06:26:05 [RateCDR] => 1 ) [2025-03-12 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:26:05' and `end` < '2025-03-12 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:26:17] Production.INFO: count ==104 [2025-03-12 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:26:05 - End Time 2025-03-12 06:26:05 [2025-03-12 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662324', 'tblTempUsageDetail_20' ) start [2025-03-12 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662324', 'tblTempUsageDetail_20' ) end [2025-03-12 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662324', 'tblTempVendorCDR_20' ) start [2025-03-12 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662324', 'tblTempVendorCDR_20' ) end [2025-03-12 06:26:17] Production.INFO: ProcessCDR(1,14662324,1,1,2) [2025-03-12 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662324', 'tblTempUsageDetail_20' ) start [2025-03-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662324', 'tblTempUsageDetail_20' ) end [2025-03-12 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:26:21] Production.INFO: ==20919== Releasing lock... [2025-03-12 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:27:04 [end_date_ymd] => 2025-03-12 06:27:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:27:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:27:16] Production.INFO: count ==104 [2025-03-12 06:27:16] Production.ERROR: pbx CDR StartTime 2025-03-12 03:27:04 - End Time 2025-03-12 06:27:04 [2025-03-12 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662329', 'tblTempUsageDetail_20' ) start [2025-03-12 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662329', 'tblTempUsageDetail_20' ) end [2025-03-12 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662329', 'tblTempVendorCDR_20' ) start [2025-03-12 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662329', 'tblTempVendorCDR_20' ) end [2025-03-12 06:27:16] Production.INFO: ProcessCDR(1,14662329,1,1,2) [2025-03-12 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662329', 'tblTempUsageDetail_20' ) start [2025-03-12 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662329', 'tblTempUsageDetail_20' ) end [2025-03-12 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:27:20] Production.INFO: ==20992== Releasing lock... [2025-03-12 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:28:05 [end_date_ymd] => 2025-03-12 06:28:05 [RateCDR] => 1 ) [2025-03-12 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:28:05' and `end` < '2025-03-12 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:28:17] Production.INFO: count ==104 [2025-03-12 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:28:05 - End Time 2025-03-12 06:28:05 [2025-03-12 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662334', 'tblTempUsageDetail_20' ) start [2025-03-12 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662334', 'tblTempUsageDetail_20' ) end [2025-03-12 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662334', 'tblTempVendorCDR_20' ) start [2025-03-12 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662334', 'tblTempVendorCDR_20' ) end [2025-03-12 06:28:17] Production.INFO: ProcessCDR(1,14662334,1,1,2) [2025-03-12 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662334', 'tblTempUsageDetail_20' ) start [2025-03-12 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662334', 'tblTempUsageDetail_20' ) end [2025-03-12 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:28:20] Production.INFO: ==21062== Releasing lock... [2025-03-12 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:29:05 [end_date_ymd] => 2025-03-12 06:29:05 [RateCDR] => 1 ) [2025-03-12 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:29:05' and `end` < '2025-03-12 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:29:16] Production.INFO: count ==96 [2025-03-12 06:29:16] Production.ERROR: pbx CDR StartTime 2025-03-12 03:29:05 - End Time 2025-03-12 06:29:05 [2025-03-12 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662339', 'tblTempUsageDetail_20' ) start [2025-03-12 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662339', 'tblTempUsageDetail_20' ) end [2025-03-12 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662339', 'tblTempVendorCDR_20' ) start [2025-03-12 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662339', 'tblTempVendorCDR_20' ) end [2025-03-12 06:29:16] Production.INFO: ProcessCDR(1,14662339,1,1,2) [2025-03-12 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662339', 'tblTempUsageDetail_20' ) start [2025-03-12 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662339', 'tblTempUsageDetail_20' ) end [2025-03-12 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:29:20] Production.INFO: ==21132== Releasing lock... [2025-03-12 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:30:05 [end_date_ymd] => 2025-03-12 06:30:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:30:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:30:18] Production.INFO: count ==90 [2025-03-12 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:30:05 - End Time 2025-03-12 06:30:05 [2025-03-12 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662345', 'tblTempUsageDetail_20' ) start [2025-03-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662345', 'tblTempUsageDetail_20' ) end [2025-03-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662345', 'tblTempVendorCDR_20' ) start [2025-03-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662345', 'tblTempVendorCDR_20' ) end [2025-03-12 06:30:18] Production.INFO: ProcessCDR(1,14662345,1,1,2) [2025-03-12 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662345', 'tblTempUsageDetail_20' ) start [2025-03-12 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662345', 'tblTempUsageDetail_20' ) end [2025-03-12 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:30:21] Production.INFO: ==21211== Releasing lock... [2025-03-12 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:31:06 [end_date_ymd] => 2025-03-12 06:31:06 [RateCDR] => 1 ) [2025-03-12 06:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:31:06' and `end` < '2025-03-12 06:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:31:18] Production.INFO: count ==86 [2025-03-12 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:31:06 - End Time 2025-03-12 06:31:06 [2025-03-12 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662350', 'tblTempUsageDetail_20' ) start [2025-03-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662350', 'tblTempUsageDetail_20' ) end [2025-03-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662350', 'tblTempVendorCDR_20' ) start [2025-03-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662350', 'tblTempVendorCDR_20' ) end [2025-03-12 06:31:18] Production.INFO: ProcessCDR(1,14662350,1,1,2) [2025-03-12 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662350', 'tblTempUsageDetail_20' ) start [2025-03-12 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662350', 'tblTempUsageDetail_20' ) end [2025-03-12 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:31:21] Production.INFO: ==21283== Releasing lock... [2025-03-12 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:32:05 [end_date_ymd] => 2025-03-12 06:32:05 [RateCDR] => 1 ) [2025-03-12 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:32:05' and `end` < '2025-03-12 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:32:17] Production.INFO: count ==86 [2025-03-12 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:32:05 - End Time 2025-03-12 06:32:05 [2025-03-12 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662355', 'tblTempUsageDetail_20' ) start [2025-03-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662355', 'tblTempUsageDetail_20' ) end [2025-03-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662355', 'tblTempVendorCDR_20' ) start [2025-03-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662355', 'tblTempVendorCDR_20' ) end [2025-03-12 06:32:18] Production.INFO: ProcessCDR(1,14662355,1,1,2) [2025-03-12 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662355', 'tblTempUsageDetail_20' ) start [2025-03-12 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662355', 'tblTempUsageDetail_20' ) end [2025-03-12 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:32:21] Production.INFO: ==21354== Releasing lock... [2025-03-12 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:33:05 [end_date_ymd] => 2025-03-12 06:33:05 [RateCDR] => 1 ) [2025-03-12 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:33:05' and `end` < '2025-03-12 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:33:17] Production.INFO: count ==86 [2025-03-12 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:33:05 - End Time 2025-03-12 06:33:05 [2025-03-12 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662360', 'tblTempUsageDetail_20' ) start [2025-03-12 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662360', 'tblTempUsageDetail_20' ) end [2025-03-12 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662360', 'tblTempVendorCDR_20' ) start [2025-03-12 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662360', 'tblTempVendorCDR_20' ) end [2025-03-12 06:33:17] Production.INFO: ProcessCDR(1,14662360,1,1,2) [2025-03-12 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662360', 'tblTempUsageDetail_20' ) start [2025-03-12 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662360', 'tblTempUsageDetail_20' ) end [2025-03-12 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:33:20] Production.INFO: ==21424== Releasing lock... [2025-03-12 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:34:05 [end_date_ymd] => 2025-03-12 06:34:05 [RateCDR] => 1 ) [2025-03-12 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:34:05' and `end` < '2025-03-12 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:34:17] Production.INFO: count ==82 [2025-03-12 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:34:05 - End Time 2025-03-12 06:34:05 [2025-03-12 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662365', 'tblTempUsageDetail_20' ) start [2025-03-12 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662365', 'tblTempUsageDetail_20' ) end [2025-03-12 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662365', 'tblTempVendorCDR_20' ) start [2025-03-12 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662365', 'tblTempVendorCDR_20' ) end [2025-03-12 06:34:17] Production.INFO: ProcessCDR(1,14662365,1,1,2) [2025-03-12 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662365', 'tblTempUsageDetail_20' ) start [2025-03-12 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662365', 'tblTempUsageDetail_20' ) end [2025-03-12 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:34:20] Production.INFO: ==21497== Releasing lock... [2025-03-12 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:35:06 [end_date_ymd] => 2025-03-12 06:35:06 [RateCDR] => 1 ) [2025-03-12 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:35:06' and `end` < '2025-03-12 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:35:18] Production.INFO: count ==82 [2025-03-12 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:35:06 - End Time 2025-03-12 06:35:06 [2025-03-12 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662370', 'tblTempUsageDetail_20' ) start [2025-03-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662370', 'tblTempUsageDetail_20' ) end [2025-03-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662370', 'tblTempVendorCDR_20' ) start [2025-03-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662370', 'tblTempVendorCDR_20' ) end [2025-03-12 06:35:18] Production.INFO: ProcessCDR(1,14662370,1,1,2) [2025-03-12 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662370', 'tblTempUsageDetail_20' ) start [2025-03-12 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662370', 'tblTempUsageDetail_20' ) end [2025-03-12 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:35:21] Production.INFO: ==21568== Releasing lock... [2025-03-12 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:36:05 [end_date_ymd] => 2025-03-12 06:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:36:17] Production.INFO: count ==82 [2025-03-12 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:36:05 - End Time 2025-03-12 06:36:05 [2025-03-12 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662375', 'tblTempUsageDetail_20' ) start [2025-03-12 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662375', 'tblTempUsageDetail_20' ) end [2025-03-12 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662375', 'tblTempVendorCDR_20' ) start [2025-03-12 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662375', 'tblTempVendorCDR_20' ) end [2025-03-12 06:36:17] Production.INFO: ProcessCDR(1,14662375,1,1,2) [2025-03-12 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662375', 'tblTempUsageDetail_20' ) start [2025-03-12 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662375', 'tblTempUsageDetail_20' ) end [2025-03-12 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:36:21] Production.INFO: ==21637== Releasing lock... [2025-03-12 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:37:05 [end_date_ymd] => 2025-03-12 06:37:05 [RateCDR] => 1 ) [2025-03-12 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:37:05' and `end` < '2025-03-12 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:37:17] Production.INFO: count ==82 [2025-03-12 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:37:05 - End Time 2025-03-12 06:37:05 [2025-03-12 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662380', 'tblTempUsageDetail_20' ) start [2025-03-12 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662380', 'tblTempUsageDetail_20' ) end [2025-03-12 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662380', 'tblTempVendorCDR_20' ) start [2025-03-12 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662380', 'tblTempVendorCDR_20' ) end [2025-03-12 06:37:17] Production.INFO: ProcessCDR(1,14662380,1,1,2) [2025-03-12 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662380', 'tblTempUsageDetail_20' ) start [2025-03-12 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662380', 'tblTempUsageDetail_20' ) end [2025-03-12 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:37:20] Production.INFO: ==21706== Releasing lock... [2025-03-12 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:38:05 [end_date_ymd] => 2025-03-12 06:38:05 [RateCDR] => 1 ) [2025-03-12 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:38:05' and `end` < '2025-03-12 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:38:17] Production.INFO: count ==83 [2025-03-12 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:38:05 - End Time 2025-03-12 06:38:05 [2025-03-12 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662385', 'tblTempUsageDetail_20' ) start [2025-03-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662385', 'tblTempUsageDetail_20' ) end [2025-03-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662385', 'tblTempVendorCDR_20' ) start [2025-03-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662385', 'tblTempVendorCDR_20' ) end [2025-03-12 06:38:17] Production.INFO: ProcessCDR(1,14662385,1,1,2) [2025-03-12 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662385', 'tblTempUsageDetail_20' ) start [2025-03-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662385', 'tblTempUsageDetail_20' ) end [2025-03-12 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:38:21] Production.INFO: ==21817== Releasing lock... [2025-03-12 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:39:05 [end_date_ymd] => 2025-03-12 06:39:05 [RateCDR] => 1 ) [2025-03-12 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:39:05' and `end` < '2025-03-12 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:39:17] Production.INFO: count ==83 [2025-03-12 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:39:05 - End Time 2025-03-12 06:39:05 [2025-03-12 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662390', 'tblTempUsageDetail_20' ) start [2025-03-12 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662390', 'tblTempUsageDetail_20' ) end [2025-03-12 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662390', 'tblTempVendorCDR_20' ) start [2025-03-12 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662390', 'tblTempVendorCDR_20' ) end [2025-03-12 06:39:17] Production.INFO: ProcessCDR(1,14662390,1,1,2) [2025-03-12 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662390', 'tblTempUsageDetail_20' ) start [2025-03-12 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662390', 'tblTempUsageDetail_20' ) end [2025-03-12 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:39:20] Production.INFO: ==21889== Releasing lock... [2025-03-12 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:40:05 [end_date_ymd] => 2025-03-12 06:40:05 [RateCDR] => 1 ) [2025-03-12 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:40:05' and `end` < '2025-03-12 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:40:17] Production.INFO: count ==83 [2025-03-12 06:40:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:40:05 - End Time 2025-03-12 06:40:05 [2025-03-12 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662396', 'tblTempUsageDetail_20' ) start [2025-03-12 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662396', 'tblTempUsageDetail_20' ) end [2025-03-12 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662396', 'tblTempVendorCDR_20' ) start [2025-03-12 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662396', 'tblTempVendorCDR_20' ) end [2025-03-12 06:40:17] Production.INFO: ProcessCDR(1,14662396,1,1,2) [2025-03-12 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662396', 'tblTempUsageDetail_20' ) start [2025-03-12 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662396', 'tblTempUsageDetail_20' ) end [2025-03-12 06:40:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:40:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:40:20] Production.INFO: ==21964== Releasing lock... [2025-03-12 06:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:40:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:41:05 [end_date_ymd] => 2025-03-12 06:41:05 [RateCDR] => 1 ) [2025-03-12 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:41:05' and `end` < '2025-03-12 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:41:17] Production.INFO: count ==83 [2025-03-12 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:41:05 - End Time 2025-03-12 06:41:05 [2025-03-12 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662401', 'tblTempUsageDetail_20' ) start [2025-03-12 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662401', 'tblTempUsageDetail_20' ) end [2025-03-12 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662401', 'tblTempVendorCDR_20' ) start [2025-03-12 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662401', 'tblTempVendorCDR_20' ) end [2025-03-12 06:41:17] Production.INFO: ProcessCDR(1,14662401,1,1,2) [2025-03-12 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662401', 'tblTempUsageDetail_20' ) start [2025-03-12 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662401', 'tblTempUsageDetail_20' ) end [2025-03-12 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:41:20] Production.INFO: ==22040== Releasing lock... [2025-03-12 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:42:05 [end_date_ymd] => 2025-03-12 06:42:05 [RateCDR] => 1 ) [2025-03-12 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:42:05' and `end` < '2025-03-12 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:42:18] Production.INFO: count ==83 [2025-03-12 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:42:05 - End Time 2025-03-12 06:42:05 [2025-03-12 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662406', 'tblTempUsageDetail_20' ) start [2025-03-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662406', 'tblTempUsageDetail_20' ) end [2025-03-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662406', 'tblTempVendorCDR_20' ) start [2025-03-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662406', 'tblTempVendorCDR_20' ) end [2025-03-12 06:42:18] Production.INFO: ProcessCDR(1,14662406,1,1,2) [2025-03-12 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662406', 'tblTempUsageDetail_20' ) start [2025-03-12 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662406', 'tblTempUsageDetail_20' ) end [2025-03-12 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:42:21] Production.INFO: ==22111== Releasing lock... [2025-03-12 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:43:05 [end_date_ymd] => 2025-03-12 06:43:05 [RateCDR] => 1 ) [2025-03-12 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:43:05' and `end` < '2025-03-12 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:43:17] Production.INFO: count ==83 [2025-03-12 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:43:05 - End Time 2025-03-12 06:43:05 [2025-03-12 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662411', 'tblTempUsageDetail_20' ) start [2025-03-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662411', 'tblTempUsageDetail_20' ) end [2025-03-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662411', 'tblTempVendorCDR_20' ) start [2025-03-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662411', 'tblTempVendorCDR_20' ) end [2025-03-12 06:43:17] Production.INFO: ProcessCDR(1,14662411,1,1,2) [2025-03-12 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662411', 'tblTempUsageDetail_20' ) start [2025-03-12 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662411', 'tblTempUsageDetail_20' ) end [2025-03-12 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:43:20] Production.INFO: ==22187== Releasing lock... [2025-03-12 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:44:05 [end_date_ymd] => 2025-03-12 06:44:05 [RateCDR] => 1 ) [2025-03-12 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:44:05' and `end` < '2025-03-12 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:44:17] Production.INFO: count ==83 [2025-03-12 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:44:05 - End Time 2025-03-12 06:44:05 [2025-03-12 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662416', 'tblTempUsageDetail_20' ) start [2025-03-12 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662416', 'tblTempUsageDetail_20' ) end [2025-03-12 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662416', 'tblTempVendorCDR_20' ) start [2025-03-12 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662416', 'tblTempVendorCDR_20' ) end [2025-03-12 06:44:17] Production.INFO: ProcessCDR(1,14662416,1,1,2) [2025-03-12 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662416', 'tblTempUsageDetail_20' ) start [2025-03-12 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662416', 'tblTempUsageDetail_20' ) end [2025-03-12 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:44:21] Production.INFO: ==22257== Releasing lock... [2025-03-12 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:45:05 [end_date_ymd] => 2025-03-12 06:45:05 [RateCDR] => 1 ) [2025-03-12 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:45:05' and `end` < '2025-03-12 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:45:17] Production.INFO: count ==83 [2025-03-12 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:45:05 - End Time 2025-03-12 06:45:05 [2025-03-12 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662421', 'tblTempUsageDetail_20' ) start [2025-03-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662421', 'tblTempUsageDetail_20' ) end [2025-03-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662421', 'tblTempVendorCDR_20' ) start [2025-03-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662421', 'tblTempVendorCDR_20' ) end [2025-03-12 06:45:17] Production.INFO: ProcessCDR(1,14662421,1,1,2) [2025-03-12 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662421', 'tblTempUsageDetail_20' ) start [2025-03-12 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662421', 'tblTempUsageDetail_20' ) end [2025-03-12 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:45:20] Production.INFO: ==22329== Releasing lock... [2025-03-12 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:46:05 [end_date_ymd] => 2025-03-12 06:46:05 [RateCDR] => 1 ) [2025-03-12 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:46:05' and `end` < '2025-03-12 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:46:17] Production.INFO: count ==83 [2025-03-12 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:46:05 - End Time 2025-03-12 06:46:05 [2025-03-12 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662426', 'tblTempUsageDetail_20' ) start [2025-03-12 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662426', 'tblTempUsageDetail_20' ) end [2025-03-12 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662426', 'tblTempVendorCDR_20' ) start [2025-03-12 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662426', 'tblTempVendorCDR_20' ) end [2025-03-12 06:46:17] Production.INFO: ProcessCDR(1,14662426,1,1,2) [2025-03-12 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662426', 'tblTempUsageDetail_20' ) start [2025-03-12 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662426', 'tblTempUsageDetail_20' ) end [2025-03-12 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:46:21] Production.INFO: ==22400== Releasing lock... [2025-03-12 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:47:05 [end_date_ymd] => 2025-03-12 06:47:05 [RateCDR] => 1 ) [2025-03-12 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:47:05' and `end` < '2025-03-12 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:47:17] Production.INFO: count ==83 [2025-03-12 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:47:05 - End Time 2025-03-12 06:47:05 [2025-03-12 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662431', 'tblTempUsageDetail_20' ) start [2025-03-12 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662431', 'tblTempUsageDetail_20' ) end [2025-03-12 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662431', 'tblTempVendorCDR_20' ) start [2025-03-12 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662431', 'tblTempVendorCDR_20' ) end [2025-03-12 06:47:17] Production.INFO: ProcessCDR(1,14662431,1,1,2) [2025-03-12 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662431', 'tblTempUsageDetail_20' ) start [2025-03-12 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662431', 'tblTempUsageDetail_20' ) end [2025-03-12 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:47:21] Production.INFO: ==22470== Releasing lock... [2025-03-12 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:48:06 [end_date_ymd] => 2025-03-12 06:48:06 [RateCDR] => 1 ) [2025-03-12 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:48:06' and `end` < '2025-03-12 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:48:18] Production.INFO: count ==83 [2025-03-12 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:48:06 - End Time 2025-03-12 06:48:06 [2025-03-12 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662436', 'tblTempUsageDetail_20' ) start [2025-03-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662436', 'tblTempUsageDetail_20' ) end [2025-03-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662436', 'tblTempVendorCDR_20' ) start [2025-03-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662436', 'tblTempVendorCDR_20' ) end [2025-03-12 06:48:18] Production.INFO: ProcessCDR(1,14662436,1,1,2) [2025-03-12 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662436', 'tblTempUsageDetail_20' ) start [2025-03-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662436', 'tblTempUsageDetail_20' ) end [2025-03-12 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:48:21] Production.INFO: ==22541== Releasing lock... [2025-03-12 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:49:05 [end_date_ymd] => 2025-03-12 06:49:05 [RateCDR] => 1 ) [2025-03-12 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:49:05' and `end` < '2025-03-12 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:49:17] Production.INFO: count ==83 [2025-03-12 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:49:05 - End Time 2025-03-12 06:49:05 [2025-03-12 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662441', 'tblTempUsageDetail_20' ) start [2025-03-12 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662441', 'tblTempUsageDetail_20' ) end [2025-03-12 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662441', 'tblTempVendorCDR_20' ) start [2025-03-12 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662441', 'tblTempVendorCDR_20' ) end [2025-03-12 06:49:17] Production.INFO: ProcessCDR(1,14662441,1,1,2) [2025-03-12 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662441', 'tblTempUsageDetail_20' ) start [2025-03-12 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662441', 'tblTempUsageDetail_20' ) end [2025-03-12 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:49:20] Production.INFO: ==22613== Releasing lock... [2025-03-12 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:50:06 [end_date_ymd] => 2025-03-12 06:50:06 [RateCDR] => 1 ) [2025-03-12 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:50:06' and `end` < '2025-03-12 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:50:18] Production.INFO: count ==77 [2025-03-12 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 03:50:06 - End Time 2025-03-12 06:50:06 [2025-03-12 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662446', 'tblTempUsageDetail_20' ) start [2025-03-12 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662446', 'tblTempUsageDetail_20' ) end [2025-03-12 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662446', 'tblTempVendorCDR_20' ) start [2025-03-12 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662446', 'tblTempVendorCDR_20' ) end [2025-03-12 06:50:18] Production.INFO: ProcessCDR(1,14662446,1,1,2) [2025-03-12 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662446', 'tblTempUsageDetail_20' ) start [2025-03-12 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662446', 'tblTempUsageDetail_20' ) end [2025-03-12 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:50:21] Production.INFO: ==22692== Releasing lock... [2025-03-12 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:51:05 [end_date_ymd] => 2025-03-12 06:51:05 [RateCDR] => 1 ) [2025-03-12 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:51:05' and `end` < '2025-03-12 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:51:17] Production.INFO: count ==77 [2025-03-12 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:51:05 - End Time 2025-03-12 06:51:05 [2025-03-12 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662452', 'tblTempUsageDetail_20' ) start [2025-03-12 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662452', 'tblTempUsageDetail_20' ) end [2025-03-12 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662452', 'tblTempVendorCDR_20' ) start [2025-03-12 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662452', 'tblTempVendorCDR_20' ) end [2025-03-12 06:51:17] Production.INFO: ProcessCDR(1,14662452,1,1,2) [2025-03-12 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662452', 'tblTempUsageDetail_20' ) start [2025-03-12 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662452', 'tblTempUsageDetail_20' ) end [2025-03-12 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:51:20] Production.INFO: ==22765== Releasing lock... [2025-03-12 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:52:05 [end_date_ymd] => 2025-03-12 06:52:05 [RateCDR] => 1 ) [2025-03-12 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:52:05' and `end` < '2025-03-12 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:52:17] Production.INFO: count ==77 [2025-03-12 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:52:05 - End Time 2025-03-12 06:52:05 [2025-03-12 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662457', 'tblTempUsageDetail_20' ) start [2025-03-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662457', 'tblTempUsageDetail_20' ) end [2025-03-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662457', 'tblTempVendorCDR_20' ) start [2025-03-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662457', 'tblTempVendorCDR_20' ) end [2025-03-12 06:52:17] Production.INFO: ProcessCDR(1,14662457,1,1,2) [2025-03-12 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662457', 'tblTempUsageDetail_20' ) start [2025-03-12 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662457', 'tblTempUsageDetail_20' ) end [2025-03-12 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:52:21] Production.INFO: ==22838== Releasing lock... [2025-03-12 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:53:05 [end_date_ymd] => 2025-03-12 06:53:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 03:53:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 06:53:17] Production.INFO: count ==77 [2025-03-12 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:53:05 - End Time 2025-03-12 06:53:05 [2025-03-12 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662462', 'tblTempUsageDetail_20' ) start [2025-03-12 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662462', 'tblTempUsageDetail_20' ) end [2025-03-12 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662462', 'tblTempVendorCDR_20' ) start [2025-03-12 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662462', 'tblTempVendorCDR_20' ) end [2025-03-12 06:53:17] Production.INFO: ProcessCDR(1,14662462,1,1,2) [2025-03-12 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662462', 'tblTempUsageDetail_20' ) start [2025-03-12 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662462', 'tblTempUsageDetail_20' ) end [2025-03-12 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:53:20] Production.INFO: ==22950== Releasing lock... [2025-03-12 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:54:05 [end_date_ymd] => 2025-03-12 06:54:05 [RateCDR] => 1 ) [2025-03-12 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:54:05' and `end` < '2025-03-12 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:54:17] Production.INFO: count ==81 [2025-03-12 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:54:05 - End Time 2025-03-12 06:54:05 [2025-03-12 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662467', 'tblTempUsageDetail_20' ) start [2025-03-12 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662467', 'tblTempUsageDetail_20' ) end [2025-03-12 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662467', 'tblTempVendorCDR_20' ) start [2025-03-12 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662467', 'tblTempVendorCDR_20' ) end [2025-03-12 06:54:17] Production.INFO: ProcessCDR(1,14662467,1,1,2) [2025-03-12 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662467', 'tblTempUsageDetail_20' ) start [2025-03-12 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662467', 'tblTempUsageDetail_20' ) end [2025-03-12 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:54:20] Production.INFO: ==23023== Releasing lock... [2025-03-12 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:55:05 [end_date_ymd] => 2025-03-12 06:55:05 [RateCDR] => 1 ) [2025-03-12 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:55:05' and `end` < '2025-03-12 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:55:17] Production.INFO: count ==81 [2025-03-12 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:55:05 - End Time 2025-03-12 06:55:05 [2025-03-12 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662472', 'tblTempUsageDetail_20' ) start [2025-03-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662472', 'tblTempUsageDetail_20' ) end [2025-03-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662472', 'tblTempVendorCDR_20' ) start [2025-03-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662472', 'tblTempVendorCDR_20' ) end [2025-03-12 06:55:17] Production.INFO: ProcessCDR(1,14662472,1,1,2) [2025-03-12 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662472', 'tblTempUsageDetail_20' ) start [2025-03-12 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662472', 'tblTempUsageDetail_20' ) end [2025-03-12 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:55:20] Production.INFO: ==23115== Releasing lock... [2025-03-12 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:56:05 [end_date_ymd] => 2025-03-12 06:56:05 [RateCDR] => 1 ) [2025-03-12 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:56:05' and `end` < '2025-03-12 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:56:17] Production.INFO: count ==81 [2025-03-12 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:56:05 - End Time 2025-03-12 06:56:05 [2025-03-12 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662476', 'tblTempUsageDetail_20' ) start [2025-03-12 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662476', 'tblTempUsageDetail_20' ) end [2025-03-12 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662476', 'tblTempVendorCDR_20' ) start [2025-03-12 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662476', 'tblTempVendorCDR_20' ) end [2025-03-12 06:56:17] Production.INFO: ProcessCDR(1,14662476,1,1,2) [2025-03-12 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662476', 'tblTempUsageDetail_20' ) start [2025-03-12 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662476', 'tblTempUsageDetail_20' ) end [2025-03-12 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:56:20] Production.INFO: ==23211== Releasing lock... [2025-03-12 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:57:05 [end_date_ymd] => 2025-03-12 06:57:05 [RateCDR] => 1 ) [2025-03-12 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:57:05' and `end` < '2025-03-12 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:57:17] Production.INFO: count ==85 [2025-03-12 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:57:05 - End Time 2025-03-12 06:57:05 [2025-03-12 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662482', 'tblTempUsageDetail_20' ) start [2025-03-12 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662482', 'tblTempUsageDetail_20' ) end [2025-03-12 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662482', 'tblTempVendorCDR_20' ) start [2025-03-12 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662482', 'tblTempVendorCDR_20' ) end [2025-03-12 06:57:17] Production.INFO: ProcessCDR(1,14662482,1,1,2) [2025-03-12 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662482', 'tblTempUsageDetail_20' ) start [2025-03-12 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662482', 'tblTempUsageDetail_20' ) end [2025-03-12 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:57:21] Production.INFO: ==23303== Releasing lock... [2025-03-12 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:58:05 [end_date_ymd] => 2025-03-12 06:58:05 [RateCDR] => 1 ) [2025-03-12 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:58:05' and `end` < '2025-03-12 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:58:17] Production.INFO: count ==85 [2025-03-12 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:58:05 - End Time 2025-03-12 06:58:05 [2025-03-12 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662487', 'tblTempUsageDetail_20' ) start [2025-03-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662487', 'tblTempUsageDetail_20' ) end [2025-03-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662487', 'tblTempVendorCDR_20' ) start [2025-03-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662487', 'tblTempVendorCDR_20' ) end [2025-03-12 06:58:17] Production.INFO: ProcessCDR(1,14662487,1,1,2) [2025-03-12 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662487', 'tblTempUsageDetail_20' ) start [2025-03-12 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662487', 'tblTempUsageDetail_20' ) end [2025-03-12 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:58:20] Production.INFO: ==23395== Releasing lock... [2025-03-12 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 03:59:05 [end_date_ymd] => 2025-03-12 06:59:05 [RateCDR] => 1 ) [2025-03-12 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 03:59:05' and `end` < '2025-03-12 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 06:59:17] Production.INFO: count ==85 [2025-03-12 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 03:59:05 - End Time 2025-03-12 06:59:05 [2025-03-12 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662492', 'tblTempUsageDetail_20' ) start [2025-03-12 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662492', 'tblTempUsageDetail_20' ) end [2025-03-12 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662492', 'tblTempVendorCDR_20' ) start [2025-03-12 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662492', 'tblTempVendorCDR_20' ) end [2025-03-12 06:59:17] Production.INFO: ProcessCDR(1,14662492,1,1,2) [2025-03-12 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662492', 'tblTempUsageDetail_20' ) start [2025-03-12 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662492', 'tblTempUsageDetail_20' ) end [2025-03-12 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 06:59:20] Production.INFO: ==23491== Releasing lock... [2025-03-12 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:00:06 [end_date_ymd] => 2025-03-12 07:00:06 [RateCDR] => 1 ) [2025-03-12 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:00:06' and `end` < '2025-03-12 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:00:18] Production.INFO: count ==85 [2025-03-12 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:00:06 - End Time 2025-03-12 07:00:06 [2025-03-12 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662498', 'tblTempUsageDetail_20' ) start [2025-03-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662498', 'tblTempUsageDetail_20' ) end [2025-03-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662498', 'tblTempVendorCDR_20' ) start [2025-03-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662498', 'tblTempVendorCDR_20' ) end [2025-03-12 07:00:18] Production.INFO: ProcessCDR(1,14662498,1,1,2) [2025-03-12 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662498', 'tblTempUsageDetail_20' ) start [2025-03-12 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662498', 'tblTempUsageDetail_20' ) end [2025-03-12 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:00:21] Production.INFO: ==23587== Releasing lock... [2025-03-12 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:01:06 [end_date_ymd] => 2025-03-12 07:01:06 [RateCDR] => 1 ) [2025-03-12 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:01:06' and `end` < '2025-03-12 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:01:18] Production.INFO: count ==85 [2025-03-12 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:01:06 - End Time 2025-03-12 07:01:06 [2025-03-12 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662503', 'tblTempUsageDetail_20' ) start [2025-03-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662503', 'tblTempUsageDetail_20' ) end [2025-03-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662503', 'tblTempVendorCDR_20' ) start [2025-03-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662503', 'tblTempVendorCDR_20' ) end [2025-03-12 07:01:18] Production.INFO: ProcessCDR(1,14662503,1,1,2) [2025-03-12 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662503', 'tblTempUsageDetail_20' ) start [2025-03-12 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662503', 'tblTempUsageDetail_20' ) end [2025-03-12 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:01:21] Production.INFO: ==23693== Releasing lock... [2025-03-12 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:02:05 [end_date_ymd] => 2025-03-12 07:02:05 [RateCDR] => 1 ) [2025-03-12 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:02:05' and `end` < '2025-03-12 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:02:17] Production.INFO: count ==85 [2025-03-12 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:02:05 - End Time 2025-03-12 07:02:05 [2025-03-12 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662508', 'tblTempUsageDetail_20' ) start [2025-03-12 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662508', 'tblTempUsageDetail_20' ) end [2025-03-12 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662508', 'tblTempVendorCDR_20' ) start [2025-03-12 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662508', 'tblTempVendorCDR_20' ) end [2025-03-12 07:02:17] Production.INFO: ProcessCDR(1,14662508,1,1,2) [2025-03-12 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662508', 'tblTempUsageDetail_20' ) start [2025-03-12 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662508', 'tblTempUsageDetail_20' ) end [2025-03-12 07:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:02:20] Production.INFO: ==23866== Releasing lock... [2025-03-12 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:02:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:03:05 [end_date_ymd] => 2025-03-12 07:03:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:03:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:03:17] Production.INFO: count ==85 [2025-03-12 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:03:05 - End Time 2025-03-12 07:03:05 [2025-03-12 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662513', 'tblTempUsageDetail_20' ) start [2025-03-12 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662513', 'tblTempUsageDetail_20' ) end [2025-03-12 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662513', 'tblTempVendorCDR_20' ) start [2025-03-12 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662513', 'tblTempVendorCDR_20' ) end [2025-03-12 07:03:17] Production.INFO: ProcessCDR(1,14662513,1,1,2) [2025-03-12 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662513', 'tblTempUsageDetail_20' ) start [2025-03-12 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662513', 'tblTempUsageDetail_20' ) end [2025-03-12 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:03:21] Production.INFO: ==23958== Releasing lock... [2025-03-12 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:04:05 [end_date_ymd] => 2025-03-12 07:04:05 [RateCDR] => 1 ) [2025-03-12 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:04:05' and `end` < '2025-03-12 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:04:17] Production.INFO: count ==85 [2025-03-12 07:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:04:05 - End Time 2025-03-12 07:04:05 [2025-03-12 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662518', 'tblTempUsageDetail_20' ) start [2025-03-12 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662518', 'tblTempUsageDetail_20' ) end [2025-03-12 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662518', 'tblTempVendorCDR_20' ) start [2025-03-12 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662518', 'tblTempVendorCDR_20' ) end [2025-03-12 07:04:17] Production.INFO: ProcessCDR(1,14662518,1,1,2) [2025-03-12 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662518', 'tblTempUsageDetail_20' ) start [2025-03-12 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662518', 'tblTempUsageDetail_20' ) end [2025-03-12 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:04:21] Production.INFO: ==24056== Releasing lock... [2025-03-12 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:05:05 [end_date_ymd] => 2025-03-12 07:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:05:18] Production.INFO: count ==86 [2025-03-12 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:05:05 - End Time 2025-03-12 07:05:05 [2025-03-12 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662523', 'tblTempUsageDetail_20' ) start [2025-03-12 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662523', 'tblTempUsageDetail_20' ) end [2025-03-12 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662523', 'tblTempVendorCDR_20' ) start [2025-03-12 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662523', 'tblTempVendorCDR_20' ) end [2025-03-12 07:05:18] Production.INFO: ProcessCDR(1,14662523,1,1,2) [2025-03-12 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662523', 'tblTempUsageDetail_20' ) start [2025-03-12 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662523', 'tblTempUsageDetail_20' ) end [2025-03-12 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:05:22] Production.INFO: ==24227== Releasing lock... [2025-03-12 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:06:05 [end_date_ymd] => 2025-03-12 07:06:05 [RateCDR] => 1 ) [2025-03-12 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:06:05' and `end` < '2025-03-12 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:06:18] Production.INFO: count ==89 [2025-03-12 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:06:05 - End Time 2025-03-12 07:06:05 [2025-03-12 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662528', 'tblTempUsageDetail_20' ) start [2025-03-12 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662528', 'tblTempUsageDetail_20' ) end [2025-03-12 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662528', 'tblTempVendorCDR_20' ) start [2025-03-12 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662528', 'tblTempVendorCDR_20' ) end [2025-03-12 07:06:18] Production.INFO: ProcessCDR(1,14662528,1,1,2) [2025-03-12 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662528', 'tblTempUsageDetail_20' ) start [2025-03-12 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662528', 'tblTempUsageDetail_20' ) end [2025-03-12 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:06:21] Production.INFO: ==24320== Releasing lock... [2025-03-12 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:07:05 [end_date_ymd] => 2025-03-12 07:07:05 [RateCDR] => 1 ) [2025-03-12 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:07:05' and `end` < '2025-03-12 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:07:17] Production.INFO: count ==89 [2025-03-12 07:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:07:05 - End Time 2025-03-12 07:07:05 [2025-03-12 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662533', 'tblTempUsageDetail_20' ) start [2025-03-12 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662533', 'tblTempUsageDetail_20' ) end [2025-03-12 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662533', 'tblTempVendorCDR_20' ) start [2025-03-12 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662533', 'tblTempVendorCDR_20' ) end [2025-03-12 07:07:18] Production.INFO: ProcessCDR(1,14662533,1,1,2) [2025-03-12 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662533', 'tblTempUsageDetail_20' ) start [2025-03-12 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662533', 'tblTempUsageDetail_20' ) end [2025-03-12 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:07:21] Production.INFO: ==24415== Releasing lock... [2025-03-12 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:08:05 [end_date_ymd] => 2025-03-12 07:08:05 [RateCDR] => 1 ) [2025-03-12 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:08:05' and `end` < '2025-03-12 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:08:18] Production.INFO: count ==89 [2025-03-12 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:08:05 - End Time 2025-03-12 07:08:05 [2025-03-12 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662538', 'tblTempUsageDetail_20' ) start [2025-03-12 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662538', 'tblTempUsageDetail_20' ) end [2025-03-12 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662538', 'tblTempVendorCDR_20' ) start [2025-03-12 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662538', 'tblTempVendorCDR_20' ) end [2025-03-12 07:08:18] Production.INFO: ProcessCDR(1,14662538,1,1,2) [2025-03-12 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662538', 'tblTempUsageDetail_20' ) start [2025-03-12 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662538', 'tblTempUsageDetail_20' ) end [2025-03-12 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:08:21] Production.INFO: ==24627== Releasing lock... [2025-03-12 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:09:05 [end_date_ymd] => 2025-03-12 07:09:05 [RateCDR] => 1 ) [2025-03-12 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:09:05' and `end` < '2025-03-12 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:09:17] Production.INFO: count ==89 [2025-03-12 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:09:05 - End Time 2025-03-12 07:09:05 [2025-03-12 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662543', 'tblTempUsageDetail_20' ) start [2025-03-12 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662543', 'tblTempUsageDetail_20' ) end [2025-03-12 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662543', 'tblTempVendorCDR_20' ) start [2025-03-12 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662543', 'tblTempVendorCDR_20' ) end [2025-03-12 07:09:17] Production.INFO: ProcessCDR(1,14662543,1,1,2) [2025-03-12 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662543', 'tblTempUsageDetail_20' ) start [2025-03-12 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662543', 'tblTempUsageDetail_20' ) end [2025-03-12 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:09:21] Production.INFO: ==24726== Releasing lock... [2025-03-12 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:10:06 [end_date_ymd] => 2025-03-12 07:10:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:10:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:10:18] Production.INFO: count ==89 [2025-03-12 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:10:06 - End Time 2025-03-12 07:10:06 [2025-03-12 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662548', 'tblTempUsageDetail_20' ) start [2025-03-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662548', 'tblTempUsageDetail_20' ) end [2025-03-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662548', 'tblTempVendorCDR_20' ) start [2025-03-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662548', 'tblTempVendorCDR_20' ) end [2025-03-12 07:10:18] Production.INFO: ProcessCDR(1,14662548,1,1,2) [2025-03-12 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662548', 'tblTempUsageDetail_20' ) start [2025-03-12 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662548', 'tblTempUsageDetail_20' ) end [2025-03-12 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:10:22] Production.INFO: ==24822== Releasing lock... [2025-03-12 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:11:05 [end_date_ymd] => 2025-03-12 07:11:05 [RateCDR] => 1 ) [2025-03-12 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:11:05' and `end` < '2025-03-12 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:11:17] Production.INFO: count ==89 [2025-03-12 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:11:05 - End Time 2025-03-12 07:11:05 [2025-03-12 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662554', 'tblTempUsageDetail_20' ) start [2025-03-12 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662554', 'tblTempUsageDetail_20' ) end [2025-03-12 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662554', 'tblTempVendorCDR_20' ) start [2025-03-12 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662554', 'tblTempVendorCDR_20' ) end [2025-03-12 07:11:17] Production.INFO: ProcessCDR(1,14662554,1,1,2) [2025-03-12 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662554', 'tblTempUsageDetail_20' ) start [2025-03-12 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662554', 'tblTempUsageDetail_20' ) end [2025-03-12 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:11:20] Production.INFO: ==24921== Releasing lock... [2025-03-12 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:12:05 [end_date_ymd] => 2025-03-12 07:12:05 [RateCDR] => 1 ) [2025-03-12 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:12:05' and `end` < '2025-03-12 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:12:18] Production.INFO: count ==90 [2025-03-12 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:12:05 - End Time 2025-03-12 07:12:05 [2025-03-12 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662559', 'tblTempUsageDetail_20' ) start [2025-03-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662559', 'tblTempUsageDetail_20' ) end [2025-03-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662559', 'tblTempVendorCDR_20' ) start [2025-03-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662559', 'tblTempVendorCDR_20' ) end [2025-03-12 07:12:18] Production.INFO: ProcessCDR(1,14662559,1,1,2) [2025-03-12 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662559', 'tblTempUsageDetail_20' ) start [2025-03-12 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662559', 'tblTempUsageDetail_20' ) end [2025-03-12 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:12:21] Production.INFO: ==25095== Releasing lock... [2025-03-12 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:13:05 [end_date_ymd] => 2025-03-12 07:13:05 [RateCDR] => 1 ) [2025-03-12 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:13:05' and `end` < '2025-03-12 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:13:17] Production.INFO: count ==93 [2025-03-12 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:13:05 - End Time 2025-03-12 07:13:05 [2025-03-12 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662564', 'tblTempUsageDetail_20' ) start [2025-03-12 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662564', 'tblTempUsageDetail_20' ) end [2025-03-12 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662564', 'tblTempVendorCDR_20' ) start [2025-03-12 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662564', 'tblTempVendorCDR_20' ) end [2025-03-12 07:13:17] Production.INFO: ProcessCDR(1,14662564,1,1,2) [2025-03-12 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662564', 'tblTempUsageDetail_20' ) start [2025-03-12 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662564', 'tblTempUsageDetail_20' ) end [2025-03-12 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:13:20] Production.INFO: ==25188== Releasing lock... [2025-03-12 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:14:05 [end_date_ymd] => 2025-03-12 07:14:05 [RateCDR] => 1 ) [2025-03-12 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:14:05' and `end` < '2025-03-12 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:14:18] Production.INFO: count ==89 [2025-03-12 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:14:05 - End Time 2025-03-12 07:14:05 [2025-03-12 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662569', 'tblTempUsageDetail_20' ) start [2025-03-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662569', 'tblTempUsageDetail_20' ) end [2025-03-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662569', 'tblTempVendorCDR_20' ) start [2025-03-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662569', 'tblTempVendorCDR_20' ) end [2025-03-12 07:14:18] Production.INFO: ProcessCDR(1,14662569,1,1,2) [2025-03-12 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662569', 'tblTempUsageDetail_20' ) start [2025-03-12 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662569', 'tblTempUsageDetail_20' ) end [2025-03-12 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:14:21] Production.INFO: ==25283== Releasing lock... [2025-03-12 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:15:05 [end_date_ymd] => 2025-03-12 07:15:05 [RateCDR] => 1 ) [2025-03-12 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:15:05' and `end` < '2025-03-12 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:15:18] Production.INFO: count ==89 [2025-03-12 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:15:05 - End Time 2025-03-12 07:15:05 [2025-03-12 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662574', 'tblTempUsageDetail_20' ) start [2025-03-12 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662574', 'tblTempUsageDetail_20' ) end [2025-03-12 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662574', 'tblTempVendorCDR_20' ) start [2025-03-12 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662574', 'tblTempVendorCDR_20' ) end [2025-03-12 07:15:18] Production.INFO: ProcessCDR(1,14662574,1,1,2) [2025-03-12 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662574', 'tblTempUsageDetail_20' ) start [2025-03-12 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662574', 'tblTempUsageDetail_20' ) end [2025-03-12 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:15:21] Production.INFO: ==25454== Releasing lock... [2025-03-12 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-12 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:16:06 [end_date_ymd] => 2025-03-12 07:16:06 [RateCDR] => 1 ) [2025-03-12 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:16:06' and `end` < '2025-03-12 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:16:18] Production.INFO: count ==95 [2025-03-12 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:16:06 - End Time 2025-03-12 07:16:06 [2025-03-12 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662579', 'tblTempUsageDetail_20' ) start [2025-03-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662579', 'tblTempUsageDetail_20' ) end [2025-03-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662579', 'tblTempVendorCDR_20' ) start [2025-03-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662579', 'tblTempVendorCDR_20' ) end [2025-03-12 07:16:18] Production.INFO: ProcessCDR(1,14662579,1,1,2) [2025-03-12 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662579', 'tblTempUsageDetail_20' ) start [2025-03-12 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662579', 'tblTempUsageDetail_20' ) end [2025-03-12 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:16:21] Production.INFO: ==25549== Releasing lock... [2025-03-12 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:17:05 [end_date_ymd] => 2025-03-12 07:17:05 [RateCDR] => 1 ) [2025-03-12 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:17:05' and `end` < '2025-03-12 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:17:17] Production.INFO: count ==96 [2025-03-12 07:17:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:17:05 - End Time 2025-03-12 07:17:05 [2025-03-12 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662584', 'tblTempUsageDetail_20' ) start [2025-03-12 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662584', 'tblTempUsageDetail_20' ) end [2025-03-12 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662584', 'tblTempVendorCDR_20' ) start [2025-03-12 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662584', 'tblTempVendorCDR_20' ) end [2025-03-12 07:17:17] Production.INFO: ProcessCDR(1,14662584,1,1,2) [2025-03-12 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662584', 'tblTempUsageDetail_20' ) start [2025-03-12 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662584', 'tblTempUsageDetail_20' ) end [2025-03-12 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:17:21] Production.INFO: ==25623== Releasing lock... [2025-03-12 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:18:06 [end_date_ymd] => 2025-03-12 07:18:06 [RateCDR] => 1 ) [2025-03-12 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:18:06' and `end` < '2025-03-12 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:18:18] Production.INFO: count ==96 [2025-03-12 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:18:06 - End Time 2025-03-12 07:18:06 [2025-03-12 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662589', 'tblTempUsageDetail_20' ) start [2025-03-12 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662589', 'tblTempUsageDetail_20' ) end [2025-03-12 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662589', 'tblTempVendorCDR_20' ) start [2025-03-12 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662589', 'tblTempVendorCDR_20' ) end [2025-03-12 07:18:18] Production.INFO: ProcessCDR(1,14662589,1,1,2) [2025-03-12 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662589', 'tblTempUsageDetail_20' ) start [2025-03-12 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662589', 'tblTempUsageDetail_20' ) end [2025-03-12 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:18:22] Production.INFO: ==25695== Releasing lock... [2025-03-12 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-12 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:19:05 [end_date_ymd] => 2025-03-12 07:19:05 [RateCDR] => 1 ) [2025-03-12 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:19:05' and `end` < '2025-03-12 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:19:17] Production.INFO: count ==101 [2025-03-12 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:19:05 - End Time 2025-03-12 07:19:05 [2025-03-12 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662594', 'tblTempUsageDetail_20' ) start [2025-03-12 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662594', 'tblTempUsageDetail_20' ) end [2025-03-12 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662594', 'tblTempVendorCDR_20' ) start [2025-03-12 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662594', 'tblTempVendorCDR_20' ) end [2025-03-12 07:19:17] Production.INFO: ProcessCDR(1,14662594,1,1,2) [2025-03-12 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662594', 'tblTempUsageDetail_20' ) start [2025-03-12 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662594', 'tblTempUsageDetail_20' ) end [2025-03-12 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:19:21] Production.INFO: ==25767== Releasing lock... [2025-03-12 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:20:06 [end_date_ymd] => 2025-03-12 07:20:06 [RateCDR] => 1 ) [2025-03-12 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:20:06' and `end` < '2025-03-12 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:20:18] Production.INFO: count ==109 [2025-03-12 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:20:06 - End Time 2025-03-12 07:20:06 [2025-03-12 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662600', 'tblTempUsageDetail_20' ) start [2025-03-12 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662600', 'tblTempUsageDetail_20' ) end [2025-03-12 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662600', 'tblTempVendorCDR_20' ) start [2025-03-12 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662600', 'tblTempVendorCDR_20' ) end [2025-03-12 07:20:19] Production.INFO: ProcessCDR(1,14662600,1,1,2) [2025-03-12 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662600', 'tblTempUsageDetail_20' ) start [2025-03-12 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662600', 'tblTempUsageDetail_20' ) end [2025-03-12 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:20:22] Production.INFO: ==25844== Releasing lock... [2025-03-12 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:21:05 [end_date_ymd] => 2025-03-12 07:21:05 [RateCDR] => 1 ) [2025-03-12 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:21:05' and `end` < '2025-03-12 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:21:17] Production.INFO: count ==113 [2025-03-12 07:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:21:05 - End Time 2025-03-12 07:21:05 [2025-03-12 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662605', 'tblTempUsageDetail_20' ) start [2025-03-12 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662605', 'tblTempUsageDetail_20' ) end [2025-03-12 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662605', 'tblTempVendorCDR_20' ) start [2025-03-12 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662605', 'tblTempVendorCDR_20' ) end [2025-03-12 07:21:17] Production.INFO: ProcessCDR(1,14662605,1,1,2) [2025-03-12 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662605', 'tblTempUsageDetail_20' ) start [2025-03-12 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662605', 'tblTempUsageDetail_20' ) end [2025-03-12 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:21:21] Production.INFO: ==25916== Releasing lock... [2025-03-12 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:22:05 [end_date_ymd] => 2025-03-12 07:22:05 [RateCDR] => 1 ) [2025-03-12 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:22:05' and `end` < '2025-03-12 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:22:18] Production.INFO: count ==114 [2025-03-12 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:22:05 - End Time 2025-03-12 07:22:05 [2025-03-12 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662610', 'tblTempUsageDetail_20' ) start [2025-03-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662610', 'tblTempUsageDetail_20' ) end [2025-03-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662610', 'tblTempVendorCDR_20' ) start [2025-03-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662610', 'tblTempVendorCDR_20' ) end [2025-03-12 07:22:18] Production.INFO: ProcessCDR(1,14662610,1,1,2) [2025-03-12 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662610', 'tblTempUsageDetail_20' ) start [2025-03-12 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662610', 'tblTempUsageDetail_20' ) end [2025-03-12 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:22:22] Production.INFO: ==25986== Releasing lock... [2025-03-12 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:23:05 [end_date_ymd] => 2025-03-12 07:23:05 [RateCDR] => 1 ) [2025-03-12 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:23:05' and `end` < '2025-03-12 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:23:17] Production.INFO: count ==120 [2025-03-12 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:23:05 - End Time 2025-03-12 07:23:05 [2025-03-12 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662615', 'tblTempUsageDetail_20' ) start [2025-03-12 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662615', 'tblTempUsageDetail_20' ) end [2025-03-12 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662615', 'tblTempVendorCDR_20' ) start [2025-03-12 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662615', 'tblTempVendorCDR_20' ) end [2025-03-12 07:23:17] Production.INFO: ProcessCDR(1,14662615,1,1,2) [2025-03-12 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662615', 'tblTempUsageDetail_20' ) start [2025-03-12 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662615', 'tblTempUsageDetail_20' ) end [2025-03-12 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:23:23] Production.INFO: ==26057== Releasing lock... [2025-03-12 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:24:06 [end_date_ymd] => 2025-03-12 07:24:06 [RateCDR] => 1 ) [2025-03-12 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:24:06' and `end` < '2025-03-12 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:24:18] Production.INFO: count ==124 [2025-03-12 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:24:06 - End Time 2025-03-12 07:24:06 [2025-03-12 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662620', 'tblTempUsageDetail_20' ) start [2025-03-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662620', 'tblTempUsageDetail_20' ) end [2025-03-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662620', 'tblTempVendorCDR_20' ) start [2025-03-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662620', 'tblTempVendorCDR_20' ) end [2025-03-12 07:24:18] Production.INFO: ProcessCDR(1,14662620,1,1,2) [2025-03-12 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662620', 'tblTempUsageDetail_20' ) start [2025-03-12 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662620', 'tblTempUsageDetail_20' ) end [2025-03-12 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:24:21] Production.INFO: ==26169== Releasing lock... [2025-03-12 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:25:05 [end_date_ymd] => 2025-03-12 07:25:05 [RateCDR] => 1 ) [2025-03-12 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:25:05' and `end` < '2025-03-12 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:25:17] Production.INFO: count ==124 [2025-03-12 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:25:05 - End Time 2025-03-12 07:25:05 [2025-03-12 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662625', 'tblTempUsageDetail_20' ) start [2025-03-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662625', 'tblTempUsageDetail_20' ) end [2025-03-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662625', 'tblTempVendorCDR_20' ) start [2025-03-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662625', 'tblTempVendorCDR_20' ) end [2025-03-12 07:25:17] Production.INFO: ProcessCDR(1,14662625,1,1,2) [2025-03-12 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662625', 'tblTempUsageDetail_20' ) start [2025-03-12 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662625', 'tblTempUsageDetail_20' ) end [2025-03-12 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:25:21] Production.INFO: ==26239== Releasing lock... [2025-03-12 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:26:06 [end_date_ymd] => 2025-03-12 07:26:06 [RateCDR] => 1 ) [2025-03-12 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:26:06' and `end` < '2025-03-12 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:26:18] Production.INFO: count ==124 [2025-03-12 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:26:06 - End Time 2025-03-12 07:26:06 [2025-03-12 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662630', 'tblTempUsageDetail_20' ) start [2025-03-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662630', 'tblTempUsageDetail_20' ) end [2025-03-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662630', 'tblTempVendorCDR_20' ) start [2025-03-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662630', 'tblTempVendorCDR_20' ) end [2025-03-12 07:26:18] Production.INFO: ProcessCDR(1,14662630,1,1,2) [2025-03-12 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662630', 'tblTempUsageDetail_20' ) start [2025-03-12 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662630', 'tblTempUsageDetail_20' ) end [2025-03-12 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:26:22] Production.INFO: ==26311== Releasing lock... [2025-03-12 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:27:06 [end_date_ymd] => 2025-03-12 07:27:06 [RateCDR] => 1 ) [2025-03-12 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:27:06' and `end` < '2025-03-12 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:27:17] Production.INFO: count ==124 [2025-03-12 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:27:06 - End Time 2025-03-12 07:27:06 [2025-03-12 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662635', 'tblTempUsageDetail_20' ) start [2025-03-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662635', 'tblTempUsageDetail_20' ) end [2025-03-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662635', 'tblTempVendorCDR_20' ) start [2025-03-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662635', 'tblTempVendorCDR_20' ) end [2025-03-12 07:27:18] Production.INFO: ProcessCDR(1,14662635,1,1,2) [2025-03-12 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662635', 'tblTempUsageDetail_20' ) start [2025-03-12 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662635', 'tblTempUsageDetail_20' ) end [2025-03-12 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:27:21] Production.INFO: ==26382== Releasing lock... [2025-03-12 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:28:06 [end_date_ymd] => 2025-03-12 07:28:06 [RateCDR] => 1 ) [2025-03-12 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:28:06' and `end` < '2025-03-12 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:28:18] Production.INFO: count ==125 [2025-03-12 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:28:06 - End Time 2025-03-12 07:28:06 [2025-03-12 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662640', 'tblTempUsageDetail_20' ) start [2025-03-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662640', 'tblTempUsageDetail_20' ) end [2025-03-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662640', 'tblTempVendorCDR_20' ) start [2025-03-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662640', 'tblTempVendorCDR_20' ) end [2025-03-12 07:28:18] Production.INFO: ProcessCDR(1,14662640,1,1,2) [2025-03-12 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662640', 'tblTempUsageDetail_20' ) start [2025-03-12 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662640', 'tblTempUsageDetail_20' ) end [2025-03-12 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:28:21] Production.INFO: ==26457== Releasing lock... [2025-03-12 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:29:06 [end_date_ymd] => 2025-03-12 07:29:06 [RateCDR] => 1 ) [2025-03-12 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:29:06' and `end` < '2025-03-12 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:29:18] Production.INFO: count ==129 [2025-03-12 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:29:06 - End Time 2025-03-12 07:29:06 [2025-03-12 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662645', 'tblTempUsageDetail_20' ) start [2025-03-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662645', 'tblTempUsageDetail_20' ) end [2025-03-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662645', 'tblTempVendorCDR_20' ) start [2025-03-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662645', 'tblTempVendorCDR_20' ) end [2025-03-12 07:29:18] Production.INFO: ProcessCDR(1,14662645,1,1,2) [2025-03-12 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662645', 'tblTempUsageDetail_20' ) start [2025-03-12 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662645', 'tblTempUsageDetail_20' ) end [2025-03-12 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:29:22] Production.INFO: ==26527== Releasing lock... [2025-03-12 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:30:07 [end_date_ymd] => 2025-03-12 07:30:07 [RateCDR] => 1 ) [2025-03-12 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:30:07' and `end` < '2025-03-12 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:30:19] Production.INFO: count ==132 [2025-03-12 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 04:30:07 - End Time 2025-03-12 07:30:07 [2025-03-12 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662651', 'tblTempUsageDetail_20' ) start [2025-03-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662651', 'tblTempUsageDetail_20' ) end [2025-03-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662651', 'tblTempVendorCDR_20' ) start [2025-03-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662651', 'tblTempVendorCDR_20' ) end [2025-03-12 07:30:19] Production.INFO: ProcessCDR(1,14662651,1,1,2) [2025-03-12 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662651', 'tblTempUsageDetail_20' ) start [2025-03-12 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662651', 'tblTempUsageDetail_20' ) end [2025-03-12 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:30:23] Production.INFO: ==26601== Releasing lock... [2025-03-12 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:31:05 [end_date_ymd] => 2025-03-12 07:31:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:31:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:31:17] Production.INFO: count ==136 [2025-03-12 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:31:05 - End Time 2025-03-12 07:31:05 [2025-03-12 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662656', 'tblTempUsageDetail_20' ) start [2025-03-12 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662656', 'tblTempUsageDetail_20' ) end [2025-03-12 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662656', 'tblTempVendorCDR_20' ) start [2025-03-12 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662656', 'tblTempVendorCDR_20' ) end [2025-03-12 07:31:17] Production.INFO: ProcessCDR(1,14662656,1,1,2) [2025-03-12 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662656', 'tblTempUsageDetail_20' ) start [2025-03-12 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662656', 'tblTempUsageDetail_20' ) end [2025-03-12 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:31:21] Production.INFO: ==26672== Releasing lock... [2025-03-12 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:32:06 [end_date_ymd] => 2025-03-12 07:32:06 [RateCDR] => 1 ) [2025-03-12 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:32:06' and `end` < '2025-03-12 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:32:18] Production.INFO: count ==135 [2025-03-12 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:32:06 - End Time 2025-03-12 07:32:06 [2025-03-12 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662661', 'tblTempUsageDetail_20' ) start [2025-03-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662661', 'tblTempUsageDetail_20' ) end [2025-03-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662661', 'tblTempVendorCDR_20' ) start [2025-03-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662661', 'tblTempVendorCDR_20' ) end [2025-03-12 07:32:18] Production.INFO: ProcessCDR(1,14662661,1,1,2) [2025-03-12 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662661', 'tblTempUsageDetail_20' ) start [2025-03-12 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662661', 'tblTempUsageDetail_20' ) end [2025-03-12 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:32:22] Production.INFO: ==26747== Releasing lock... [2025-03-12 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:33:05 [end_date_ymd] => 2025-03-12 07:33:05 [RateCDR] => 1 ) [2025-03-12 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:33:05' and `end` < '2025-03-12 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:33:17] Production.INFO: count ==136 [2025-03-12 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:33:05 - End Time 2025-03-12 07:33:05 [2025-03-12 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662666', 'tblTempUsageDetail_20' ) start [2025-03-12 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662666', 'tblTempUsageDetail_20' ) end [2025-03-12 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662666', 'tblTempVendorCDR_20' ) start [2025-03-12 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662666', 'tblTempVendorCDR_20' ) end [2025-03-12 07:33:17] Production.INFO: ProcessCDR(1,14662666,1,1,2) [2025-03-12 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662666', 'tblTempUsageDetail_20' ) start [2025-03-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662666', 'tblTempUsageDetail_20' ) end [2025-03-12 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:33:21] Production.INFO: ==26819== Releasing lock... [2025-03-12 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-12 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:34:05 [end_date_ymd] => 2025-03-12 07:34:05 [RateCDR] => 1 ) [2025-03-12 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:34:05' and `end` < '2025-03-12 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:34:17] Production.INFO: count ==137 [2025-03-12 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:34:05 - End Time 2025-03-12 07:34:05 [2025-03-12 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662671', 'tblTempUsageDetail_20' ) start [2025-03-12 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662671', 'tblTempUsageDetail_20' ) end [2025-03-12 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662671', 'tblTempVendorCDR_20' ) start [2025-03-12 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662671', 'tblTempVendorCDR_20' ) end [2025-03-12 07:34:17] Production.INFO: ProcessCDR(1,14662671,1,1,2) [2025-03-12 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662671', 'tblTempUsageDetail_20' ) start [2025-03-12 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662671', 'tblTempUsageDetail_20' ) end [2025-03-12 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:34:22] Production.INFO: ==26889== Releasing lock... [2025-03-12 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:34:22] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:35:05 [end_date_ymd] => 2025-03-12 07:35:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:35:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:35:17] Production.INFO: count ==137 [2025-03-12 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:35:05 - End Time 2025-03-12 07:35:05 [2025-03-12 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662676', 'tblTempUsageDetail_20' ) start [2025-03-12 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662676', 'tblTempUsageDetail_20' ) end [2025-03-12 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662676', 'tblTempVendorCDR_20' ) start [2025-03-12 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662676', 'tblTempVendorCDR_20' ) end [2025-03-12 07:35:17] Production.INFO: ProcessCDR(1,14662676,1,1,2) [2025-03-12 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662676', 'tblTempUsageDetail_20' ) start [2025-03-12 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662676', 'tblTempUsageDetail_20' ) end [2025-03-12 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:35:20] Production.INFO: ==26959== Releasing lock... [2025-03-12 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:36:06 [end_date_ymd] => 2025-03-12 07:36:06 [RateCDR] => 1 ) [2025-03-12 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:36:06' and `end` < '2025-03-12 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:36:18] Production.INFO: count ==137 [2025-03-12 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:36:06 - End Time 2025-03-12 07:36:06 [2025-03-12 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662681', 'tblTempUsageDetail_20' ) start [2025-03-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662681', 'tblTempUsageDetail_20' ) end [2025-03-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662681', 'tblTempVendorCDR_20' ) start [2025-03-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662681', 'tblTempVendorCDR_20' ) end [2025-03-12 07:36:18] Production.INFO: ProcessCDR(1,14662681,1,1,2) [2025-03-12 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662681', 'tblTempUsageDetail_20' ) start [2025-03-12 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662681', 'tblTempUsageDetail_20' ) end [2025-03-12 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:36:21] Production.INFO: ==27030== Releasing lock... [2025-03-12 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:37:05 [end_date_ymd] => 2025-03-12 07:37:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:37:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:37:17] Production.INFO: count ==137 [2025-03-12 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:37:05 - End Time 2025-03-12 07:37:05 [2025-03-12 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662686', 'tblTempUsageDetail_20' ) start [2025-03-12 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662686', 'tblTempUsageDetail_20' ) end [2025-03-12 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662686', 'tblTempVendorCDR_20' ) start [2025-03-12 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662686', 'tblTempVendorCDR_20' ) end [2025-03-12 07:37:17] Production.INFO: ProcessCDR(1,14662686,1,1,2) [2025-03-12 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662686', 'tblTempUsageDetail_20' ) start [2025-03-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662686', 'tblTempUsageDetail_20' ) end [2025-03-12 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:37:21] Production.INFO: ==27100== Releasing lock... [2025-03-12 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:37:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:38:06 [end_date_ymd] => 2025-03-12 07:38:06 [RateCDR] => 1 ) [2025-03-12 07:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:38:06' and `end` < '2025-03-12 07:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:38:18] Production.INFO: count ==138 [2025-03-12 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:38:06 - End Time 2025-03-12 07:38:06 [2025-03-12 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662691', 'tblTempUsageDetail_20' ) start [2025-03-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662691', 'tblTempUsageDetail_20' ) end [2025-03-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662691', 'tblTempVendorCDR_20' ) start [2025-03-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662691', 'tblTempVendorCDR_20' ) end [2025-03-12 07:38:18] Production.INFO: ProcessCDR(1,14662691,1,1,2) [2025-03-12 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662691', 'tblTempUsageDetail_20' ) start [2025-03-12 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662691', 'tblTempUsageDetail_20' ) end [2025-03-12 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:38:23] Production.INFO: ==27202== Releasing lock... [2025-03-12 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:38:23] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:39:05 [end_date_ymd] => 2025-03-12 07:39:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:39:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:39:17] Production.INFO: count ==139 [2025-03-12 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:39:05 - End Time 2025-03-12 07:39:05 [2025-03-12 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662696', 'tblTempUsageDetail_20' ) start [2025-03-12 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662696', 'tblTempUsageDetail_20' ) end [2025-03-12 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662696', 'tblTempVendorCDR_20' ) start [2025-03-12 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662696', 'tblTempVendorCDR_20' ) end [2025-03-12 07:39:17] Production.INFO: ProcessCDR(1,14662696,1,1,2) [2025-03-12 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662696', 'tblTempUsageDetail_20' ) start [2025-03-12 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662696', 'tblTempUsageDetail_20' ) end [2025-03-12 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:39:22] Production.INFO: ==27345== Releasing lock... [2025-03-12 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:40:06 [end_date_ymd] => 2025-03-12 07:40:06 [RateCDR] => 1 ) [2025-03-12 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:40:06' and `end` < '2025-03-12 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:40:18] Production.INFO: count ==146 [2025-03-12 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:40:06 - End Time 2025-03-12 07:40:06 [2025-03-12 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662702', 'tblTempUsageDetail_20' ) start [2025-03-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662702', 'tblTempUsageDetail_20' ) end [2025-03-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662702', 'tblTempVendorCDR_20' ) start [2025-03-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662702', 'tblTempVendorCDR_20' ) end [2025-03-12 07:40:18] Production.INFO: ProcessCDR(1,14662702,1,1,2) [2025-03-12 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662702', 'tblTempUsageDetail_20' ) start [2025-03-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662702', 'tblTempUsageDetail_20' ) end [2025-03-12 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:40:22] Production.INFO: ==27440== Releasing lock... [2025-03-12 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:41:05 [end_date_ymd] => 2025-03-12 07:41:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:41:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:41:17] Production.INFO: count ==146 [2025-03-12 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:41:05 - End Time 2025-03-12 07:41:05 [2025-03-12 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662707', 'tblTempUsageDetail_20' ) start [2025-03-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662707', 'tblTempUsageDetail_20' ) end [2025-03-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662707', 'tblTempVendorCDR_20' ) start [2025-03-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662707', 'tblTempVendorCDR_20' ) end [2025-03-12 07:41:17] Production.INFO: ProcessCDR(1,14662707,1,1,2) [2025-03-12 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662707', 'tblTempUsageDetail_20' ) start [2025-03-12 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662707', 'tblTempUsageDetail_20' ) end [2025-03-12 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:41:20] Production.INFO: ==27515== Releasing lock... [2025-03-12 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:42:06 [end_date_ymd] => 2025-03-12 07:42:06 [RateCDR] => 1 ) [2025-03-12 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:42:06' and `end` < '2025-03-12 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:42:18] Production.INFO: count ==146 [2025-03-12 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:42:06 - End Time 2025-03-12 07:42:06 [2025-03-12 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662712', 'tblTempUsageDetail_20' ) start [2025-03-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662712', 'tblTempUsageDetail_20' ) end [2025-03-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662712', 'tblTempVendorCDR_20' ) start [2025-03-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662712', 'tblTempVendorCDR_20' ) end [2025-03-12 07:42:18] Production.INFO: ProcessCDR(1,14662712,1,1,2) [2025-03-12 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662712', 'tblTempUsageDetail_20' ) start [2025-03-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662712', 'tblTempUsageDetail_20' ) end [2025-03-12 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:42:21] Production.INFO: ==27584== Releasing lock... [2025-03-12 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:43:05 [end_date_ymd] => 2025-03-12 07:43:05 [RateCDR] => 1 ) [2025-03-12 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:43:05' and `end` < '2025-03-12 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:43:17] Production.INFO: count ==146 [2025-03-12 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:43:05 - End Time 2025-03-12 07:43:05 [2025-03-12 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662717', 'tblTempUsageDetail_20' ) start [2025-03-12 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662717', 'tblTempUsageDetail_20' ) end [2025-03-12 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662717', 'tblTempVendorCDR_20' ) start [2025-03-12 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662717', 'tblTempVendorCDR_20' ) end [2025-03-12 07:43:17] Production.INFO: ProcessCDR(1,14662717,1,1,2) [2025-03-12 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662717', 'tblTempUsageDetail_20' ) start [2025-03-12 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662717', 'tblTempUsageDetail_20' ) end [2025-03-12 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:43:21] Production.INFO: ==27655== Releasing lock... [2025-03-12 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:44:05 [end_date_ymd] => 2025-03-12 07:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:44:17] Production.INFO: count ==146 [2025-03-12 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:44:05 - End Time 2025-03-12 07:44:05 [2025-03-12 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662722', 'tblTempUsageDetail_20' ) start [2025-03-12 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662722', 'tblTempUsageDetail_20' ) end [2025-03-12 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662722', 'tblTempVendorCDR_20' ) start [2025-03-12 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662722', 'tblTempVendorCDR_20' ) end [2025-03-12 07:44:17] Production.INFO: ProcessCDR(1,14662722,1,1,2) [2025-03-12 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662722', 'tblTempUsageDetail_20' ) start [2025-03-12 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662722', 'tblTempUsageDetail_20' ) end [2025-03-12 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:44:20] Production.INFO: ==27725== Releasing lock... [2025-03-12 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:45:05 [end_date_ymd] => 2025-03-12 07:45:05 [RateCDR] => 1 ) [2025-03-12 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:45:05' and `end` < '2025-03-12 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:45:17] Production.INFO: count ==146 [2025-03-12 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:45:05 - End Time 2025-03-12 07:45:05 [2025-03-12 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662727', 'tblTempUsageDetail_20' ) start [2025-03-12 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662727', 'tblTempUsageDetail_20' ) end [2025-03-12 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662727', 'tblTempVendorCDR_20' ) start [2025-03-12 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662727', 'tblTempVendorCDR_20' ) end [2025-03-12 07:45:17] Production.INFO: ProcessCDR(1,14662727,1,1,2) [2025-03-12 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662727', 'tblTempUsageDetail_20' ) start [2025-03-12 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662727', 'tblTempUsageDetail_20' ) end [2025-03-12 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:45:20] Production.INFO: ==27795== Releasing lock... [2025-03-12 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:46:05 [end_date_ymd] => 2025-03-12 07:46:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:46:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:46:18] Production.INFO: count ==146 [2025-03-12 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:46:05 - End Time 2025-03-12 07:46:05 [2025-03-12 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662732', 'tblTempUsageDetail_20' ) start [2025-03-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662732', 'tblTempUsageDetail_20' ) end [2025-03-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662732', 'tblTempVendorCDR_20' ) start [2025-03-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662732', 'tblTempVendorCDR_20' ) end [2025-03-12 07:46:18] Production.INFO: ProcessCDR(1,14662732,1,1,2) [2025-03-12 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662732', 'tblTempUsageDetail_20' ) start [2025-03-12 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662732', 'tblTempUsageDetail_20' ) end [2025-03-12 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:46:21] Production.INFO: ==27866== Releasing lock... [2025-03-12 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:47:05 [end_date_ymd] => 2025-03-12 07:47:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:47:05' and `end` < '2025-03-12 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:47:17] Production.INFO: count ==146 [2025-03-12 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:47:05 - End Time 2025-03-12 07:47:05 [2025-03-12 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662737', 'tblTempUsageDetail_20' ) start [2025-03-12 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662737', 'tblTempUsageDetail_20' ) end [2025-03-12 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662737', 'tblTempVendorCDR_20' ) start [2025-03-12 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662737', 'tblTempVendorCDR_20' ) end [2025-03-12 07:47:17] Production.INFO: ProcessCDR(1,14662737,1,1,2) [2025-03-12 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662737', 'tblTempUsageDetail_20' ) start [2025-03-12 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662737', 'tblTempUsageDetail_20' ) end [2025-03-12 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:47:20] Production.INFO: ==27941== Releasing lock... [2025-03-12 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:48:06 [end_date_ymd] => 2025-03-12 07:48:06 [RateCDR] => 1 ) [2025-03-12 07:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:48:06' and `end` < '2025-03-12 07:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:48:18] Production.INFO: count ==146 [2025-03-12 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:48:06 - End Time 2025-03-12 07:48:06 [2025-03-12 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662742', 'tblTempUsageDetail_20' ) start [2025-03-12 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662742', 'tblTempUsageDetail_20' ) end [2025-03-12 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662742', 'tblTempVendorCDR_20' ) start [2025-03-12 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662742', 'tblTempVendorCDR_20' ) end [2025-03-12 07:48:18] Production.INFO: ProcessCDR(1,14662742,1,1,2) [2025-03-12 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662742', 'tblTempUsageDetail_20' ) start [2025-03-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662742', 'tblTempUsageDetail_20' ) end [2025-03-12 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:48:21] Production.INFO: ==28018== Releasing lock... [2025-03-12 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:49:05 [end_date_ymd] => 2025-03-12 07:49:05 [RateCDR] => 1 ) [2025-03-12 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:49:05' and `end` < '2025-03-12 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:49:17] Production.INFO: count ==146 [2025-03-12 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:49:05 - End Time 2025-03-12 07:49:05 [2025-03-12 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662747', 'tblTempUsageDetail_20' ) start [2025-03-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662747', 'tblTempUsageDetail_20' ) end [2025-03-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662747', 'tblTempVendorCDR_20' ) start [2025-03-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662747', 'tblTempVendorCDR_20' ) end [2025-03-12 07:49:18] Production.INFO: ProcessCDR(1,14662747,1,1,2) [2025-03-12 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662747', 'tblTempUsageDetail_20' ) start [2025-03-12 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662747', 'tblTempUsageDetail_20' ) end [2025-03-12 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:49:21] Production.INFO: ==28089== Releasing lock... [2025-03-12 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:50:06 [end_date_ymd] => 2025-03-12 07:50:06 [RateCDR] => 1 ) [2025-03-12 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:50:06' and `end` < '2025-03-12 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:50:18] Production.INFO: count ==155 [2025-03-12 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:50:06 - End Time 2025-03-12 07:50:06 [2025-03-12 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662753', 'tblTempUsageDetail_20' ) start [2025-03-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662753', 'tblTempUsageDetail_20' ) end [2025-03-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662753', 'tblTempVendorCDR_20' ) start [2025-03-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662753', 'tblTempVendorCDR_20' ) end [2025-03-12 07:50:18] Production.INFO: ProcessCDR(1,14662753,1,1,2) [2025-03-12 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662753', 'tblTempUsageDetail_20' ) start [2025-03-12 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662753', 'tblTempUsageDetail_20' ) end [2025-03-12 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:50:23] Production.INFO: ==28162== Releasing lock... [2025-03-12 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:51:05 [end_date_ymd] => 2025-03-12 07:51:05 [RateCDR] => 1 ) [2025-03-12 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:51:05' and `end` < '2025-03-12 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:51:17] Production.INFO: count ==155 [2025-03-12 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:51:05 - End Time 2025-03-12 07:51:05 [2025-03-12 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662758', 'tblTempUsageDetail_20' ) start [2025-03-12 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662758', 'tblTempUsageDetail_20' ) end [2025-03-12 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662758', 'tblTempVendorCDR_20' ) start [2025-03-12 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662758', 'tblTempVendorCDR_20' ) end [2025-03-12 07:51:17] Production.INFO: ProcessCDR(1,14662758,1,1,2) [2025-03-12 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662758', 'tblTempUsageDetail_20' ) start [2025-03-12 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662758', 'tblTempUsageDetail_20' ) end [2025-03-12 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:51:20] Production.INFO: ==28235== Releasing lock... [2025-03-12 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:52:06 [end_date_ymd] => 2025-03-12 07:52:06 [RateCDR] => 1 ) [2025-03-12 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:52:06' and `end` < '2025-03-12 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:52:18] Production.INFO: count ==156 [2025-03-12 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:52:06 - End Time 2025-03-12 07:52:06 [2025-03-12 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662763', 'tblTempUsageDetail_20' ) start [2025-03-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662763', 'tblTempUsageDetail_20' ) end [2025-03-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662763', 'tblTempVendorCDR_20' ) start [2025-03-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662763', 'tblTempVendorCDR_20' ) end [2025-03-12 07:52:18] Production.INFO: ProcessCDR(1,14662763,1,1,2) [2025-03-12 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662763', 'tblTempUsageDetail_20' ) start [2025-03-12 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662763', 'tblTempUsageDetail_20' ) end [2025-03-12 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:52:21] Production.INFO: ==28306== Releasing lock... [2025-03-12 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-12 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:53:05 [end_date_ymd] => 2025-03-12 07:53:05 [RateCDR] => 1 ) [2025-03-12 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:53:05' and `end` < '2025-03-12 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:53:17] Production.INFO: count ==161 [2025-03-12 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:53:05 - End Time 2025-03-12 07:53:05 [2025-03-12 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662768', 'tblTempUsageDetail_20' ) start [2025-03-12 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662768', 'tblTempUsageDetail_20' ) end [2025-03-12 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662768', 'tblTempVendorCDR_20' ) start [2025-03-12 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662768', 'tblTempVendorCDR_20' ) end [2025-03-12 07:53:17] Production.INFO: ProcessCDR(1,14662768,1,1,2) [2025-03-12 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662768', 'tblTempUsageDetail_20' ) start [2025-03-12 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662768', 'tblTempUsageDetail_20' ) end [2025-03-12 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:53:22] Production.INFO: ==28377== Releasing lock... [2025-03-12 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:54:04 [end_date_ymd] => 2025-03-12 07:54:04 [RateCDR] => 1 ) [2025-03-12 07:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:54:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:54:17] Production.INFO: count ==171 [2025-03-12 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:54:04 - End Time 2025-03-12 07:54:04 [2025-03-12 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662773', 'tblTempUsageDetail_20' ) start [2025-03-12 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662773', 'tblTempUsageDetail_20' ) end [2025-03-12 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662773', 'tblTempVendorCDR_20' ) start [2025-03-12 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662773', 'tblTempVendorCDR_20' ) end [2025-03-12 07:54:17] Production.INFO: ProcessCDR(1,14662773,1,1,2) [2025-03-12 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662773', 'tblTempUsageDetail_20' ) start [2025-03-12 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662773', 'tblTempUsageDetail_20' ) end [2025-03-12 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:54:20] Production.INFO: ==28447== Releasing lock... [2025-03-12 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:55:05 [end_date_ymd] => 2025-03-12 07:55:05 [RateCDR] => 1 ) [2025-03-12 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:55:05' and `end` < '2025-03-12 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:55:17] Production.INFO: count ==171 [2025-03-12 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:55:05 - End Time 2025-03-12 07:55:05 [2025-03-12 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662778', 'tblTempUsageDetail_20' ) start [2025-03-12 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662778', 'tblTempUsageDetail_20' ) end [2025-03-12 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662778', 'tblTempVendorCDR_20' ) start [2025-03-12 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662778', 'tblTempVendorCDR_20' ) end [2025-03-12 07:55:17] Production.INFO: ProcessCDR(1,14662778,1,1,2) [2025-03-12 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662778', 'tblTempUsageDetail_20' ) start [2025-03-12 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662778', 'tblTempUsageDetail_20' ) end [2025-03-12 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:55:20] Production.INFO: ==28556== Releasing lock... [2025-03-12 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:56:05 [end_date_ymd] => 2025-03-12 07:56:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 04:56:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 07:56:17] Production.INFO: count ==171 [2025-03-12 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:56:05 - End Time 2025-03-12 07:56:05 [2025-03-12 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662783', 'tblTempUsageDetail_20' ) start [2025-03-12 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662783', 'tblTempUsageDetail_20' ) end [2025-03-12 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662783', 'tblTempVendorCDR_20' ) start [2025-03-12 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662783', 'tblTempVendorCDR_20' ) end [2025-03-12 07:56:17] Production.INFO: ProcessCDR(1,14662783,1,1,2) [2025-03-12 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662783', 'tblTempUsageDetail_20' ) start [2025-03-12 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662783', 'tblTempUsageDetail_20' ) end [2025-03-12 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:56:21] Production.INFO: ==28629== Releasing lock... [2025-03-12 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:57:05 [end_date_ymd] => 2025-03-12 07:57:05 [RateCDR] => 1 ) [2025-03-12 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:57:05' and `end` < '2025-03-12 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:57:17] Production.INFO: count ==172 [2025-03-12 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:57:05 - End Time 2025-03-12 07:57:05 [2025-03-12 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662788', 'tblTempUsageDetail_20' ) start [2025-03-12 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662788', 'tblTempUsageDetail_20' ) end [2025-03-12 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662788', 'tblTempVendorCDR_20' ) start [2025-03-12 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662788', 'tblTempVendorCDR_20' ) end [2025-03-12 07:57:17] Production.INFO: ProcessCDR(1,14662788,1,1,2) [2025-03-12 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662788', 'tblTempUsageDetail_20' ) start [2025-03-12 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662788', 'tblTempUsageDetail_20' ) end [2025-03-12 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:57:20] Production.INFO: ==28702== Releasing lock... [2025-03-12 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-12 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:58:05 [end_date_ymd] => 2025-03-12 07:58:05 [RateCDR] => 1 ) [2025-03-12 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:58:05' and `end` < '2025-03-12 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:58:17] Production.INFO: count ==179 [2025-03-12 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 04:58:05 - End Time 2025-03-12 07:58:05 [2025-03-12 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662793', 'tblTempUsageDetail_20' ) start [2025-03-12 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662793', 'tblTempUsageDetail_20' ) end [2025-03-12 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662793', 'tblTempVendorCDR_20' ) start [2025-03-12 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662793', 'tblTempVendorCDR_20' ) end [2025-03-12 07:58:17] Production.INFO: ProcessCDR(1,14662793,1,1,2) [2025-03-12 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662793', 'tblTempUsageDetail_20' ) start [2025-03-12 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662793', 'tblTempUsageDetail_20' ) end [2025-03-12 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:58:20] Production.INFO: ==28772== Releasing lock... [2025-03-12 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:58:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 04:59:05 [end_date_ymd] => 2025-03-12 07:59:05 [RateCDR] => 1 ) [2025-03-12 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 04:59:05' and `end` < '2025-03-12 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 07:59:18] Production.INFO: count ==189 [2025-03-12 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-12 04:59:05 - End Time 2025-03-12 07:59:05 [2025-03-12 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662798', 'tblTempUsageDetail_20' ) start [2025-03-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662798', 'tblTempUsageDetail_20' ) end [2025-03-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662798', 'tblTempVendorCDR_20' ) start [2025-03-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662798', 'tblTempVendorCDR_20' ) end [2025-03-12 07:59:18] Production.INFO: ProcessCDR(1,14662798,1,1,2) [2025-03-12 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662798', 'tblTempUsageDetail_20' ) start [2025-03-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662798', 'tblTempUsageDetail_20' ) end [2025-03-12 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 07:59:21] Production.INFO: ==28853== Releasing lock... [2025-03-12 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 07:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:00:06 [end_date_ymd] => 2025-03-12 08:00:06 [RateCDR] => 1 ) [2025-03-12 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:00:06' and `end` < '2025-03-12 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:00:18] Production.INFO: count ==190 [2025-03-12 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:00:06 - End Time 2025-03-12 08:00:06 [2025-03-12 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662803', 'tblTempUsageDetail_20' ) start [2025-03-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662803', 'tblTempUsageDetail_20' ) end [2025-03-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662803', 'tblTempVendorCDR_20' ) start [2025-03-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662803', 'tblTempVendorCDR_20' ) end [2025-03-12 08:00:18] Production.INFO: ProcessCDR(1,14662803,1,1,2) [2025-03-12 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662803', 'tblTempUsageDetail_20' ) start [2025-03-12 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662803', 'tblTempUsageDetail_20' ) end [2025-03-12 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:00:23] Production.INFO: ==28930== Releasing lock... [2025-03-12 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-12 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:01:05 [end_date_ymd] => 2025-03-12 08:01:05 [RateCDR] => 1 ) [2025-03-12 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:01:05' and `end` < '2025-03-12 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:01:17] Production.INFO: count ==196 [2025-03-12 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:01:05 - End Time 2025-03-12 08:01:05 [2025-03-12 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662809', 'tblTempUsageDetail_20' ) start [2025-03-12 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662809', 'tblTempUsageDetail_20' ) end [2025-03-12 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662809', 'tblTempVendorCDR_20' ) start [2025-03-12 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662809', 'tblTempVendorCDR_20' ) end [2025-03-12 08:01:17] Production.INFO: ProcessCDR(1,14662809,1,1,2) [2025-03-12 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662809', 'tblTempUsageDetail_20' ) start [2025-03-12 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662809', 'tblTempUsageDetail_20' ) end [2025-03-12 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:01:22] Production.INFO: ==29020== Releasing lock... [2025-03-12 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:01:22] Production.INFO: 30 MB #Memory Used# [2025-03-12 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:02:05 [end_date_ymd] => 2025-03-12 08:02:05 [RateCDR] => 1 ) [2025-03-12 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:02:05' and `end` < '2025-03-12 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:02:18] Production.INFO: count ==202 [2025-03-12 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:02:05 - End Time 2025-03-12 08:02:05 [2025-03-12 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662814', 'tblTempUsageDetail_20' ) start [2025-03-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662814', 'tblTempUsageDetail_20' ) end [2025-03-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662814', 'tblTempVendorCDR_20' ) start [2025-03-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662814', 'tblTempVendorCDR_20' ) end [2025-03-12 08:02:18] Production.INFO: ProcessCDR(1,14662814,1,1,2) [2025-03-12 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662814', 'tblTempUsageDetail_20' ) start [2025-03-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662814', 'tblTempUsageDetail_20' ) end [2025-03-12 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:02:21] Production.INFO: ==29091== Releasing lock... [2025-03-12 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-03-12 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:03:06 [end_date_ymd] => 2025-03-12 08:03:06 [RateCDR] => 1 ) [2025-03-12 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:03:06' and `end` < '2025-03-12 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:03:18] Production.INFO: count ==207 [2025-03-12 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:03:06 - End Time 2025-03-12 08:03:06 [2025-03-12 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662819', 'tblTempUsageDetail_20' ) start [2025-03-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662819', 'tblTempUsageDetail_20' ) end [2025-03-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662819', 'tblTempVendorCDR_20' ) start [2025-03-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662819', 'tblTempVendorCDR_20' ) end [2025-03-12 08:03:18] Production.INFO: ProcessCDR(1,14662819,1,1,2) [2025-03-12 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662819', 'tblTempUsageDetail_20' ) start [2025-03-12 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662819', 'tblTempUsageDetail_20' ) end [2025-03-12 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:03:22] Production.INFO: ==29164== Releasing lock... [2025-03-12 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:04:06 [end_date_ymd] => 2025-03-12 08:04:06 [RateCDR] => 1 ) [2025-03-12 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:04:06' and `end` < '2025-03-12 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:04:18] Production.INFO: count ==222 [2025-03-12 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:04:06 - End Time 2025-03-12 08:04:06 [2025-03-12 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662824', 'tblTempUsageDetail_20' ) start [2025-03-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662824', 'tblTempUsageDetail_20' ) end [2025-03-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662824', 'tblTempVendorCDR_20' ) start [2025-03-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662824', 'tblTempVendorCDR_20' ) end [2025-03-12 08:04:18] Production.INFO: ProcessCDR(1,14662824,1,1,2) [2025-03-12 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662824', 'tblTempUsageDetail_20' ) start [2025-03-12 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662824', 'tblTempUsageDetail_20' ) end [2025-03-12 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:04:21] Production.INFO: ==29239== Releasing lock... [2025-03-12 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:05:05 [end_date_ymd] => 2025-03-12 08:05:05 [RateCDR] => 1 ) [2025-03-12 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:05:05' and `end` < '2025-03-12 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:05:17] Production.INFO: count ==244 [2025-03-12 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:05:05 - End Time 2025-03-12 08:05:05 [2025-03-12 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662829', 'tblTempUsageDetail_20' ) start [2025-03-12 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662829', 'tblTempUsageDetail_20' ) end [2025-03-12 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662829', 'tblTempVendorCDR_20' ) start [2025-03-12 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662829', 'tblTempVendorCDR_20' ) end [2025-03-12 08:05:17] Production.INFO: ProcessCDR(1,14662829,1,1,2) [2025-03-12 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662829', 'tblTempUsageDetail_20' ) start [2025-03-12 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662829', 'tblTempUsageDetail_20' ) end [2025-03-12 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:05:21] Production.INFO: ==29310== Releasing lock... [2025-03-12 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:06:05 [end_date_ymd] => 2025-03-12 08:06:05 [RateCDR] => 1 ) [2025-03-12 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:06:05' and `end` < '2025-03-12 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:06:18] Production.INFO: count ==258 [2025-03-12 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:06:05 - End Time 2025-03-12 08:06:05 [2025-03-12 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662834', 'tblTempUsageDetail_20' ) start [2025-03-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662834', 'tblTempUsageDetail_20' ) end [2025-03-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662834', 'tblTempVendorCDR_20' ) start [2025-03-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662834', 'tblTempVendorCDR_20' ) end [2025-03-12 08:06:18] Production.INFO: ProcessCDR(1,14662834,1,1,2) [2025-03-12 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662834', 'tblTempUsageDetail_20' ) start [2025-03-12 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662834', 'tblTempUsageDetail_20' ) end [2025-03-12 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:06:23] Production.INFO: ==29382== Releasing lock... [2025-03-12 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:06:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:07:05 [end_date_ymd] => 2025-03-12 08:07:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:07:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:07:17] Production.INFO: count ==275 [2025-03-12 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:07:05 - End Time 2025-03-12 08:07:05 [2025-03-12 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662839', 'tblTempUsageDetail_20' ) start [2025-03-12 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662839', 'tblTempUsageDetail_20' ) end [2025-03-12 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662839', 'tblTempVendorCDR_20' ) start [2025-03-12 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662839', 'tblTempVendorCDR_20' ) end [2025-03-12 08:07:17] Production.INFO: ProcessCDR(1,14662839,1,1,2) [2025-03-12 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662839', 'tblTempUsageDetail_20' ) start [2025-03-12 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662839', 'tblTempUsageDetail_20' ) end [2025-03-12 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:07:22] Production.INFO: ==29459== Releasing lock... [2025-03-12 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:07:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:08:05 [end_date_ymd] => 2025-03-12 08:08:05 [RateCDR] => 1 ) [2025-03-12 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:08:05' and `end` < '2025-03-12 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:08:17] Production.INFO: count ==272 [2025-03-12 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:08:05 - End Time 2025-03-12 08:08:05 [2025-03-12 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662844', 'tblTempUsageDetail_20' ) start [2025-03-12 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662844', 'tblTempUsageDetail_20' ) end [2025-03-12 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662844', 'tblTempVendorCDR_20' ) start [2025-03-12 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662844', 'tblTempVendorCDR_20' ) end [2025-03-12 08:08:18] Production.INFO: ProcessCDR(1,14662844,1,1,2) [2025-03-12 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662844', 'tblTempUsageDetail_20' ) start [2025-03-12 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662844', 'tblTempUsageDetail_20' ) end [2025-03-12 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:08:23] Production.INFO: ==29534== Releasing lock... [2025-03-12 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:08:23] Production.INFO: 31 MB #Memory Used# [2025-03-12 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:09:05 [end_date_ymd] => 2025-03-12 08:09:05 [RateCDR] => 1 ) [2025-03-12 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:09:05' and `end` < '2025-03-12 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:09:17] Production.INFO: count ==277 [2025-03-12 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:09:05 - End Time 2025-03-12 08:09:05 [2025-03-12 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662849', 'tblTempUsageDetail_20' ) start [2025-03-12 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662849', 'tblTempUsageDetail_20' ) end [2025-03-12 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662849', 'tblTempVendorCDR_20' ) start [2025-03-12 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662849', 'tblTempVendorCDR_20' ) end [2025-03-12 08:09:17] Production.INFO: ProcessCDR(1,14662849,1,1,2) [2025-03-12 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662849', 'tblTempUsageDetail_20' ) start [2025-03-12 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662849', 'tblTempUsageDetail_20' ) end [2025-03-12 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:09:20] Production.INFO: ==29608== Releasing lock... [2025-03-12 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:10:06 [end_date_ymd] => 2025-03-12 08:10:06 [RateCDR] => 1 ) [2025-03-12 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:10:06' and `end` < '2025-03-12 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:10:18] Production.INFO: count ==281 [2025-03-12 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:10:06 - End Time 2025-03-12 08:10:06 [2025-03-12 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662855', 'tblTempUsageDetail_20' ) start [2025-03-12 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662855', 'tblTempUsageDetail_20' ) end [2025-03-12 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662855', 'tblTempVendorCDR_20' ) start [2025-03-12 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662855', 'tblTempVendorCDR_20' ) end [2025-03-12 08:10:18] Production.INFO: ProcessCDR(1,14662855,1,1,2) [2025-03-12 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662855', 'tblTempUsageDetail_20' ) start [2025-03-12 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662855', 'tblTempUsageDetail_20' ) end [2025-03-12 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:10:22] Production.INFO: ==29726== Releasing lock... [2025-03-12 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-12 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:11:04 [end_date_ymd] => 2025-03-12 08:11:04 [RateCDR] => 1 ) [2025-03-12 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:11:04' and `end` < '2025-03-12 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:11:17] Production.INFO: count ==296 [2025-03-12 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:11:04 - End Time 2025-03-12 08:11:04 [2025-03-12 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662860', 'tblTempUsageDetail_20' ) start [2025-03-12 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662860', 'tblTempUsageDetail_20' ) end [2025-03-12 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662860', 'tblTempVendorCDR_20' ) start [2025-03-12 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662860', 'tblTempVendorCDR_20' ) end [2025-03-12 08:11:17] Production.INFO: ProcessCDR(1,14662860,1,1,2) [2025-03-12 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662860', 'tblTempUsageDetail_20' ) start [2025-03-12 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662860', 'tblTempUsageDetail_20' ) end [2025-03-12 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:11:20] Production.INFO: ==29802== Releasing lock... [2025-03-12 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-12 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:12:05 [end_date_ymd] => 2025-03-12 08:12:05 [RateCDR] => 1 ) [2025-03-12 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:12:05' and `end` < '2025-03-12 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:12:17] Production.INFO: count ==302 [2025-03-12 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:12:05 - End Time 2025-03-12 08:12:05 [2025-03-12 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662865', 'tblTempUsageDetail_20' ) start [2025-03-12 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662865', 'tblTempUsageDetail_20' ) end [2025-03-12 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662865', 'tblTempVendorCDR_20' ) start [2025-03-12 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662865', 'tblTempVendorCDR_20' ) end [2025-03-12 08:12:17] Production.INFO: ProcessCDR(1,14662865,1,1,2) [2025-03-12 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662865', 'tblTempUsageDetail_20' ) start [2025-03-12 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662865', 'tblTempUsageDetail_20' ) end [2025-03-12 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:12:22] Production.INFO: ==29876== Releasing lock... [2025-03-12 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:13:05 [end_date_ymd] => 2025-03-12 08:13:05 [RateCDR] => 1 ) [2025-03-12 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:13:05' and `end` < '2025-03-12 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:13:17] Production.INFO: count ==302 [2025-03-12 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:13:05 - End Time 2025-03-12 08:13:05 [2025-03-12 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662870', 'tblTempUsageDetail_20' ) start [2025-03-12 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662870', 'tblTempUsageDetail_20' ) end [2025-03-12 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662870', 'tblTempVendorCDR_20' ) start [2025-03-12 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662870', 'tblTempVendorCDR_20' ) end [2025-03-12 08:13:17] Production.INFO: ProcessCDR(1,14662870,1,1,2) [2025-03-12 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662870', 'tblTempUsageDetail_20' ) start [2025-03-12 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662870', 'tblTempUsageDetail_20' ) end [2025-03-12 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:13:20] Production.INFO: ==29952== Releasing lock... [2025-03-12 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:14:05 [end_date_ymd] => 2025-03-12 08:14:05 [RateCDR] => 1 ) [2025-03-12 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:14:05' and `end` < '2025-03-12 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:14:17] Production.INFO: count ==305 [2025-03-12 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:14:05 - End Time 2025-03-12 08:14:05 [2025-03-12 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662875', 'tblTempUsageDetail_20' ) start [2025-03-12 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662875', 'tblTempUsageDetail_20' ) end [2025-03-12 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662875', 'tblTempVendorCDR_20' ) start [2025-03-12 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662875', 'tblTempVendorCDR_20' ) end [2025-03-12 08:14:17] Production.INFO: ProcessCDR(1,14662875,1,1,2) [2025-03-12 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662875', 'tblTempUsageDetail_20' ) start [2025-03-12 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662875', 'tblTempUsageDetail_20' ) end [2025-03-12 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:14:22] Production.INFO: ==30036== Releasing lock... [2025-03-12 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:15:04 [end_date_ymd] => 2025-03-12 08:15:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:15:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:15:17] Production.INFO: count ==306 [2025-03-12 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:15:04 - End Time 2025-03-12 08:15:04 [2025-03-12 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662880', 'tblTempUsageDetail_20' ) start [2025-03-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662880', 'tblTempUsageDetail_20' ) end [2025-03-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662880', 'tblTempVendorCDR_20' ) start [2025-03-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662880', 'tblTempVendorCDR_20' ) end [2025-03-12 08:15:17] Production.INFO: ProcessCDR(1,14662880,1,1,2) [2025-03-12 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662880', 'tblTempUsageDetail_20' ) start [2025-03-12 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662880', 'tblTempUsageDetail_20' ) end [2025-03-12 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:15:21] Production.INFO: ==30114== Releasing lock... [2025-03-12 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-12 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:16:04 [end_date_ymd] => 2025-03-12 08:16:04 [RateCDR] => 1 ) [2025-03-12 08: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` >= '2025-03-12 05:16:04' and `end` < '2025-03-12 08: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 ,'') [2025-03-12 08:16:17] Production.INFO: count ==312 [2025-03-12 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:16:04 - End Time 2025-03-12 08:16:04 [2025-03-12 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662885', 'tblTempUsageDetail_20' ) start [2025-03-12 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662885', 'tblTempUsageDetail_20' ) end [2025-03-12 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662885', 'tblTempVendorCDR_20' ) start [2025-03-12 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662885', 'tblTempVendorCDR_20' ) end [2025-03-12 08:16:17] Production.INFO: ProcessCDR(1,14662885,1,1,2) [2025-03-12 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662885', 'tblTempUsageDetail_20' ) start [2025-03-12 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662885', 'tblTempUsageDetail_20' ) end [2025-03-12 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:16:20] Production.INFO: ==30189== Releasing lock... [2025-03-12 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:16:20] Production.INFO: 31 MB #Memory Used# [2025-03-12 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:17:06 [end_date_ymd] => 2025-03-12 08:17:06 [RateCDR] => 1 ) [2025-03-12 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:17:06' and `end` < '2025-03-12 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:17:18] Production.INFO: count ==328 [2025-03-12 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:17:06 - End Time 2025-03-12 08:17:06 [2025-03-12 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662890', 'tblTempUsageDetail_20' ) start [2025-03-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662890', 'tblTempUsageDetail_20' ) end [2025-03-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662890', 'tblTempVendorCDR_20' ) start [2025-03-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662890', 'tblTempVendorCDR_20' ) end [2025-03-12 08:17:18] Production.INFO: ProcessCDR(1,14662890,1,1,2) [2025-03-12 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662890', 'tblTempUsageDetail_20' ) start [2025-03-12 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662890', 'tblTempUsageDetail_20' ) end [2025-03-12 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:17:22] Production.INFO: ==30265== Releasing lock... [2025-03-12 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:18:05 [end_date_ymd] => 2025-03-12 08:18:05 [RateCDR] => 1 ) [2025-03-12 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:18:05' and `end` < '2025-03-12 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:18:17] Production.INFO: count ==333 [2025-03-12 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:18:05 - End Time 2025-03-12 08:18:05 [2025-03-12 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662895', 'tblTempUsageDetail_20' ) start [2025-03-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662895', 'tblTempUsageDetail_20' ) end [2025-03-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662895', 'tblTempVendorCDR_20' ) start [2025-03-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662895', 'tblTempVendorCDR_20' ) end [2025-03-12 08:18:17] Production.INFO: ProcessCDR(1,14662895,1,1,2) [2025-03-12 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662895', 'tblTempUsageDetail_20' ) start [2025-03-12 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662895', 'tblTempUsageDetail_20' ) end [2025-03-12 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:18:22] Production.INFO: ==30346== Releasing lock... [2025-03-12 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:19:05 [end_date_ymd] => 2025-03-12 08:19:05 [RateCDR] => 1 ) [2025-03-12 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:19:05' and `end` < '2025-03-12 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:19:17] Production.INFO: count ==338 [2025-03-12 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:19:05 - End Time 2025-03-12 08:19:05 [2025-03-12 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662900', 'tblTempUsageDetail_20' ) start [2025-03-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662900', 'tblTempUsageDetail_20' ) end [2025-03-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662900', 'tblTempVendorCDR_20' ) start [2025-03-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662900', 'tblTempVendorCDR_20' ) end [2025-03-12 08:19:17] Production.INFO: ProcessCDR(1,14662900,1,1,2) [2025-03-12 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662900', 'tblTempUsageDetail_20' ) start [2025-03-12 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662900', 'tblTempUsageDetail_20' ) end [2025-03-12 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:19:22] Production.INFO: ==30418== Releasing lock... [2025-03-12 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:19:22] Production.INFO: 31 MB #Memory Used# [2025-03-12 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:20:06 [end_date_ymd] => 2025-03-12 08:20:06 [RateCDR] => 1 ) [2025-03-12 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:20:06' and `end` < '2025-03-12 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:20:18] Production.INFO: count ==347 [2025-03-12 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:20:06 - End Time 2025-03-12 08:20:06 [2025-03-12 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662906', 'tblTempUsageDetail_20' ) start [2025-03-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662906', 'tblTempUsageDetail_20' ) end [2025-03-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662906', 'tblTempVendorCDR_20' ) start [2025-03-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662906', 'tblTempVendorCDR_20' ) end [2025-03-12 08:20:18] Production.INFO: ProcessCDR(1,14662906,1,1,2) [2025-03-12 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662906', 'tblTempUsageDetail_20' ) start [2025-03-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662906', 'tblTempUsageDetail_20' ) end [2025-03-12 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:20:22] Production.INFO: ==30497== Releasing lock... [2025-03-12 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:21:05 [end_date_ymd] => 2025-03-12 08:21:05 [RateCDR] => 1 ) [2025-03-12 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:21:05' and `end` < '2025-03-12 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:21:17] Production.INFO: count ==367 [2025-03-12 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:21:05 - End Time 2025-03-12 08:21:05 [2025-03-12 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662911', 'tblTempUsageDetail_20' ) start [2025-03-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662911', 'tblTempUsageDetail_20' ) end [2025-03-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662911', 'tblTempVendorCDR_20' ) start [2025-03-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662911', 'tblTempVendorCDR_20' ) end [2025-03-12 08:21:17] Production.INFO: ProcessCDR(1,14662911,1,1,2) [2025-03-12 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662911', 'tblTempUsageDetail_20' ) start [2025-03-12 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662911', 'tblTempUsageDetail_20' ) end [2025-03-12 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:21:22] Production.INFO: ==30575== Releasing lock... [2025-03-12 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-12 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:22:05 [end_date_ymd] => 2025-03-12 08:22:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:22:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:22:18] Production.INFO: count ==374 [2025-03-12 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:22:05 - End Time 2025-03-12 08:22:05 [2025-03-12 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662916', 'tblTempUsageDetail_20' ) start [2025-03-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662916', 'tblTempUsageDetail_20' ) end [2025-03-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662916', 'tblTempVendorCDR_20' ) start [2025-03-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662916', 'tblTempVendorCDR_20' ) end [2025-03-12 08:22:18] Production.INFO: ProcessCDR(1,14662916,1,1,2) [2025-03-12 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662916', 'tblTempUsageDetail_20' ) start [2025-03-12 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662916', 'tblTempUsageDetail_20' ) end [2025-03-12 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:22:21] Production.INFO: ==30649== Releasing lock... [2025-03-12 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:23:05 [end_date_ymd] => 2025-03-12 08:23:05 [RateCDR] => 1 ) [2025-03-12 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:23:05' and `end` < '2025-03-12 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:23:18] Production.INFO: count ==385 [2025-03-12 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:23:05 - End Time 2025-03-12 08:23:05 [2025-03-12 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662921', 'tblTempUsageDetail_20' ) start [2025-03-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662921', 'tblTempUsageDetail_20' ) end [2025-03-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662921', 'tblTempVendorCDR_20' ) start [2025-03-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662921', 'tblTempVendorCDR_20' ) end [2025-03-12 08:23:18] Production.INFO: ProcessCDR(1,14662921,1,1,2) [2025-03-12 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662921', 'tblTempUsageDetail_20' ) start [2025-03-12 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662921', 'tblTempUsageDetail_20' ) end [2025-03-12 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:23:21] Production.INFO: ==30729== Releasing lock... [2025-03-12 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:24:05 [end_date_ymd] => 2025-03-12 08:24:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:24:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:24:17] Production.INFO: count ==391 [2025-03-12 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:24:05 - End Time 2025-03-12 08:24:05 [2025-03-12 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662926', 'tblTempUsageDetail_20' ) start [2025-03-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662926', 'tblTempUsageDetail_20' ) end [2025-03-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662926', 'tblTempVendorCDR_20' ) start [2025-03-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662926', 'tblTempVendorCDR_20' ) end [2025-03-12 08:24:18] Production.INFO: ProcessCDR(1,14662926,1,1,2) [2025-03-12 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662926', 'tblTempUsageDetail_20' ) start [2025-03-12 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662926', 'tblTempUsageDetail_20' ) end [2025-03-12 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:24:22] Production.INFO: ==30803== Releasing lock... [2025-03-12 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:25:05 [end_date_ymd] => 2025-03-12 08:25:05 [RateCDR] => 1 ) [2025-03-12 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:25:05' and `end` < '2025-03-12 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:25:17] Production.INFO: count ==422 [2025-03-12 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:25:05 - End Time 2025-03-12 08:25:05 [2025-03-12 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662931', 'tblTempUsageDetail_20' ) start [2025-03-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662931', 'tblTempUsageDetail_20' ) end [2025-03-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662931', 'tblTempVendorCDR_20' ) start [2025-03-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662931', 'tblTempVendorCDR_20' ) end [2025-03-12 08:25:17] Production.INFO: ProcessCDR(1,14662931,1,1,2) [2025-03-12 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662931', 'tblTempUsageDetail_20' ) start [2025-03-12 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662931', 'tblTempUsageDetail_20' ) end [2025-03-12 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:25:21] Production.INFO: ==30877== Releasing lock... [2025-03-12 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:26:05 [end_date_ymd] => 2025-03-12 08:26:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:26:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:26:17] Production.INFO: count ==435 [2025-03-12 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:26:05 - End Time 2025-03-12 08:26:05 [2025-03-12 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662936', 'tblTempUsageDetail_20' ) start [2025-03-12 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662936', 'tblTempUsageDetail_20' ) end [2025-03-12 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662936', 'tblTempVendorCDR_20' ) start [2025-03-12 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662936', 'tblTempVendorCDR_20' ) end [2025-03-12 08:26:17] Production.INFO: ProcessCDR(1,14662936,1,1,2) [2025-03-12 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662936', 'tblTempUsageDetail_20' ) start [2025-03-12 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662936', 'tblTempUsageDetail_20' ) end [2025-03-12 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:26:22] Production.INFO: ==30996== Releasing lock... [2025-03-12 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-12 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:27:06 [end_date_ymd] => 2025-03-12 08:27:06 [RateCDR] => 1 ) [2025-03-12 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:27:06' and `end` < '2025-03-12 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:27:18] Production.INFO: count ==441 [2025-03-12 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:27:06 - End Time 2025-03-12 08:27:06 [2025-03-12 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662941', 'tblTempUsageDetail_20' ) start [2025-03-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662941', 'tblTempUsageDetail_20' ) end [2025-03-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662941', 'tblTempVendorCDR_20' ) start [2025-03-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662941', 'tblTempVendorCDR_20' ) end [2025-03-12 08:27:18] Production.INFO: ProcessCDR(1,14662941,1,1,2) [2025-03-12 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662941', 'tblTempUsageDetail_20' ) start [2025-03-12 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662941', 'tblTempUsageDetail_20' ) end [2025-03-12 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:27:22] Production.INFO: ==31077== Releasing lock... [2025-03-12 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:27:22] Production.INFO: 32 MB #Memory Used# [2025-03-12 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:28:05 [end_date_ymd] => 2025-03-12 08:28:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:28:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:28:17] Production.INFO: count ==452 [2025-03-12 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:28:05 - End Time 2025-03-12 08:28:05 [2025-03-12 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662946', 'tblTempUsageDetail_20' ) start [2025-03-12 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662946', 'tblTempUsageDetail_20' ) end [2025-03-12 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662946', 'tblTempVendorCDR_20' ) start [2025-03-12 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662946', 'tblTempVendorCDR_20' ) end [2025-03-12 08:28:17] Production.INFO: ProcessCDR(1,14662946,1,1,2) [2025-03-12 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662946', 'tblTempUsageDetail_20' ) start [2025-03-12 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662946', 'tblTempUsageDetail_20' ) end [2025-03-12 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:28:21] Production.INFO: ==31154== Releasing lock... [2025-03-12 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-12 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:29:06 [end_date_ymd] => 2025-03-12 08:29:06 [RateCDR] => 1 ) [2025-03-12 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:29:06' and `end` < '2025-03-12 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:29:18] Production.INFO: count ==453 [2025-03-12 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:29:06 - End Time 2025-03-12 08:29:06 [2025-03-12 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662951', 'tblTempUsageDetail_20' ) start [2025-03-12 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662951', 'tblTempUsageDetail_20' ) end [2025-03-12 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662951', 'tblTempVendorCDR_20' ) start [2025-03-12 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662951', 'tblTempVendorCDR_20' ) end [2025-03-12 08:29:18] Production.INFO: ProcessCDR(1,14662951,1,1,2) [2025-03-12 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662951', 'tblTempUsageDetail_20' ) start [2025-03-12 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662951', 'tblTempUsageDetail_20' ) end [2025-03-12 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:29:21] Production.INFO: ==31226== Releasing lock... [2025-03-12 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-12 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:30:06 [end_date_ymd] => 2025-03-12 08:30:06 [RateCDR] => 1 ) [2025-03-12 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:30:06' and `end` < '2025-03-12 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:30:18] Production.INFO: count ==464 [2025-03-12 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:30:06 - End Time 2025-03-12 08:30:06 [2025-03-12 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662957', 'tblTempUsageDetail_20' ) start [2025-03-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662957', 'tblTempUsageDetail_20' ) end [2025-03-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662957', 'tblTempVendorCDR_20' ) start [2025-03-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662957', 'tblTempVendorCDR_20' ) end [2025-03-12 08:30:18] Production.INFO: ProcessCDR(1,14662957,1,1,2) [2025-03-12 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662957', 'tblTempUsageDetail_20' ) start [2025-03-12 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662957', 'tblTempUsageDetail_20' ) end [2025-03-12 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:30:21] Production.INFO: ==31310== Releasing lock... [2025-03-12 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-12 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:31:05 [end_date_ymd] => 2025-03-12 08:31:05 [RateCDR] => 1 ) [2025-03-12 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:31:05' and `end` < '2025-03-12 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:31:17] Production.INFO: count ==495 [2025-03-12 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:31:05 - End Time 2025-03-12 08:31:05 [2025-03-12 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662962', 'tblTempUsageDetail_20' ) start [2025-03-12 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662962', 'tblTempUsageDetail_20' ) end [2025-03-12 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662962', 'tblTempVendorCDR_20' ) start [2025-03-12 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662962', 'tblTempVendorCDR_20' ) end [2025-03-12 08:31:17] Production.INFO: ProcessCDR(1,14662962,1,1,2) [2025-03-12 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662962', 'tblTempUsageDetail_20' ) start [2025-03-12 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662962', 'tblTempUsageDetail_20' ) end [2025-03-12 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:31:21] Production.INFO: ==31387== Releasing lock... [2025-03-12 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-12 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:32:05 [end_date_ymd] => 2025-03-12 08:32:05 [RateCDR] => 1 ) [2025-03-12 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:32:05' and `end` < '2025-03-12 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:32:17] Production.INFO: count ==503 [2025-03-12 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:32:05 - End Time 2025-03-12 08:32:05 [2025-03-12 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662967', 'tblTempUsageDetail_20' ) start [2025-03-12 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662967', 'tblTempUsageDetail_20' ) end [2025-03-12 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662967', 'tblTempVendorCDR_20' ) start [2025-03-12 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662967', 'tblTempVendorCDR_20' ) end [2025-03-12 08:32:17] Production.INFO: ProcessCDR(1,14662967,1,1,2) [2025-03-12 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662967', 'tblTempUsageDetail_20' ) start [2025-03-12 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662967', 'tblTempUsageDetail_20' ) end [2025-03-12 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:32:23] Production.INFO: ==31462== Releasing lock... [2025-03-12 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:32:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-12 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:33:05 [end_date_ymd] => 2025-03-12 08:33:05 [RateCDR] => 1 ) [2025-03-12 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:33:05' and `end` < '2025-03-12 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:33:17] Production.INFO: count ==515 [2025-03-12 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:33:05 - End Time 2025-03-12 08:33:05 [2025-03-12 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662972', 'tblTempUsageDetail_20' ) start [2025-03-12 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662972', 'tblTempUsageDetail_20' ) end [2025-03-12 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662972', 'tblTempVendorCDR_20' ) start [2025-03-12 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662972', 'tblTempVendorCDR_20' ) end [2025-03-12 08:33:17] Production.INFO: ProcessCDR(1,14662972,1,1,2) [2025-03-12 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662972', 'tblTempUsageDetail_20' ) start [2025-03-12 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662972', 'tblTempUsageDetail_20' ) end [2025-03-12 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:33:21] Production.INFO: ==31535== Releasing lock... [2025-03-12 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-12 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:34:05 [end_date_ymd] => 2025-03-12 08:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:34:17] Production.INFO: count ==520 [2025-03-12 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:34:05 - End Time 2025-03-12 08:34:05 [2025-03-12 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662977', 'tblTempUsageDetail_20' ) start [2025-03-12 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662977', 'tblTempUsageDetail_20' ) end [2025-03-12 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662977', 'tblTempVendorCDR_20' ) start [2025-03-12 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662977', 'tblTempVendorCDR_20' ) end [2025-03-12 08:34:17] Production.INFO: ProcessCDR(1,14662977,1,1,2) [2025-03-12 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662977', 'tblTempUsageDetail_20' ) start [2025-03-12 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662977', 'tblTempUsageDetail_20' ) end [2025-03-12 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:34:22] Production.INFO: ==31613== Releasing lock... [2025-03-12 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-12 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:35:05 [end_date_ymd] => 2025-03-12 08:35:05 [RateCDR] => 1 ) [2025-03-12 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:35:05' and `end` < '2025-03-12 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:35:17] Production.INFO: count ==522 [2025-03-12 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:35:05 - End Time 2025-03-12 08:35:05 [2025-03-12 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662982', 'tblTempUsageDetail_20' ) start [2025-03-12 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662982', 'tblTempUsageDetail_20' ) end [2025-03-12 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662982', 'tblTempVendorCDR_20' ) start [2025-03-12 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662982', 'tblTempVendorCDR_20' ) end [2025-03-12 08:35:17] Production.INFO: ProcessCDR(1,14662982,1,1,2) [2025-03-12 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662982', 'tblTempUsageDetail_20' ) start [2025-03-12 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662982', 'tblTempUsageDetail_20' ) end [2025-03-12 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:35:22] Production.INFO: ==31688== Releasing lock... [2025-03-12 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-12 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:36:05 [end_date_ymd] => 2025-03-12 08:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:36:18] Production.INFO: count ==525 [2025-03-12 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:36:05 - End Time 2025-03-12 08:36:05 [2025-03-12 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662987', 'tblTempUsageDetail_20' ) start [2025-03-12 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662987', 'tblTempUsageDetail_20' ) end [2025-03-12 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662987', 'tblTempVendorCDR_20' ) start [2025-03-12 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662987', 'tblTempVendorCDR_20' ) end [2025-03-12 08:36:18] Production.INFO: ProcessCDR(1,14662987,1,1,2) [2025-03-12 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662987', 'tblTempUsageDetail_20' ) start [2025-03-12 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662987', 'tblTempUsageDetail_20' ) end [2025-03-12 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:36:22] Production.INFO: ==31763== Releasing lock... [2025-03-12 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-12 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:37:05 [end_date_ymd] => 2025-03-12 08:37:05 [RateCDR] => 1 ) [2025-03-12 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:37:05' and `end` < '2025-03-12 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:37:17] Production.INFO: count ==551 [2025-03-12 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:37:05 - End Time 2025-03-12 08:37:05 [2025-03-12 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662992', 'tblTempUsageDetail_20' ) start [2025-03-12 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662992', 'tblTempUsageDetail_20' ) end [2025-03-12 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662992', 'tblTempVendorCDR_20' ) start [2025-03-12 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662992', 'tblTempVendorCDR_20' ) end [2025-03-12 08:37:17] Production.INFO: ProcessCDR(1,14662992,1,1,2) [2025-03-12 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662992', 'tblTempUsageDetail_20' ) start [2025-03-12 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662992', 'tblTempUsageDetail_20' ) end [2025-03-12 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:37:22] Production.INFO: ==31836== Releasing lock... [2025-03-12 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-12 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:38:05 [end_date_ymd] => 2025-03-12 08:38:05 [RateCDR] => 1 ) [2025-03-12 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:38:05' and `end` < '2025-03-12 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:38:17] Production.INFO: count ==555 [2025-03-12 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:38:05 - End Time 2025-03-12 08:38:05 [2025-03-12 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662997', 'tblTempUsageDetail_20' ) start [2025-03-12 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14662997', 'tblTempUsageDetail_20' ) end [2025-03-12 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662997', 'tblTempVendorCDR_20' ) start [2025-03-12 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14662997', 'tblTempVendorCDR_20' ) end [2025-03-12 08:38:17] Production.INFO: ProcessCDR(1,14662997,1,1,2) [2025-03-12 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14662997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14662997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14662997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14662997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662997', 'tblTempUsageDetail_20' ) start [2025-03-12 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14662997', 'tblTempUsageDetail_20' ) end [2025-03-12 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:38:21] Production.INFO: ==31912== Releasing lock... [2025-03-12 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-12 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:39:05 [end_date_ymd] => 2025-03-12 08:39:05 [RateCDR] => 1 ) [2025-03-12 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:39:05' and `end` < '2025-03-12 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:39:17] Production.INFO: count ==563 [2025-03-12 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:39:05 - End Time 2025-03-12 08:39:05 [2025-03-12 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663002', 'tblTempUsageDetail_20' ) start [2025-03-12 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663002', 'tblTempUsageDetail_20' ) end [2025-03-12 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663002', 'tblTempVendorCDR_20' ) start [2025-03-12 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663002', 'tblTempVendorCDR_20' ) end [2025-03-12 08:39:17] Production.INFO: ProcessCDR(1,14663002,1,1,2) [2025-03-12 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663002', 'tblTempUsageDetail_20' ) start [2025-03-12 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663002', 'tblTempUsageDetail_20' ) end [2025-03-12 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:39:22] Production.INFO: ==31992== Releasing lock... [2025-03-12 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-12 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:40:06 [end_date_ymd] => 2025-03-12 08:40:06 [RateCDR] => 1 ) [2025-03-12 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:40:06' and `end` < '2025-03-12 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:40:18] Production.INFO: count ==584 [2025-03-12 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:40:06 - End Time 2025-03-12 08:40:06 [2025-03-12 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663007', 'tblTempUsageDetail_20' ) start [2025-03-12 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663007', 'tblTempUsageDetail_20' ) end [2025-03-12 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663007', 'tblTempVendorCDR_20' ) start [2025-03-12 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663007', 'tblTempVendorCDR_20' ) end [2025-03-12 08:40:18] Production.INFO: ProcessCDR(1,14663007,1,1,2) [2025-03-12 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663007', 'tblTempUsageDetail_20' ) start [2025-03-12 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663007', 'tblTempUsageDetail_20' ) end [2025-03-12 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:40:22] Production.INFO: ==32070== Releasing lock... [2025-03-12 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-12 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:41:05 [end_date_ymd] => 2025-03-12 08:41:05 [RateCDR] => 1 ) [2025-03-12 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:41:05' and `end` < '2025-03-12 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:41:17] Production.INFO: count ==620 [2025-03-12 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:41:05 - End Time 2025-03-12 08:41:05 [2025-03-12 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663013', 'tblTempUsageDetail_20' ) start [2025-03-12 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663013', 'tblTempUsageDetail_20' ) end [2025-03-12 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663013', 'tblTempVendorCDR_20' ) start [2025-03-12 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663013', 'tblTempVendorCDR_20' ) end [2025-03-12 08:41:17] Production.INFO: ProcessCDR(1,14663013,1,1,2) [2025-03-12 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663013', 'tblTempUsageDetail_20' ) start [2025-03-12 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663013', 'tblTempUsageDetail_20' ) end [2025-03-12 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:41:23] Production.INFO: ==32189== Releasing lock... [2025-03-12 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-12 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:42:06 [end_date_ymd] => 2025-03-12 08:42:06 [RateCDR] => 1 ) [2025-03-12 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:42:06' and `end` < '2025-03-12 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:42:18] Production.INFO: count ==622 [2025-03-12 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:42:06 - End Time 2025-03-12 08:42:06 [2025-03-12 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663018', 'tblTempUsageDetail_20' ) start [2025-03-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663018', 'tblTempUsageDetail_20' ) end [2025-03-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663018', 'tblTempVendorCDR_20' ) start [2025-03-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663018', 'tblTempVendorCDR_20' ) end [2025-03-12 08:42:18] Production.INFO: ProcessCDR(1,14663018,1,1,2) [2025-03-12 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663018', 'tblTempUsageDetail_20' ) start [2025-03-12 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663018', 'tblTempUsageDetail_20' ) end [2025-03-12 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:42:23] Production.INFO: ==32267== Releasing lock... [2025-03-12 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-12 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:43:05 [end_date_ymd] => 2025-03-12 08:43:05 [RateCDR] => 1 ) [2025-03-12 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:43:05' and `end` < '2025-03-12 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:43:17] Production.INFO: count ==623 [2025-03-12 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:43:05 - End Time 2025-03-12 08:43:05 [2025-03-12 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663023', 'tblTempUsageDetail_20' ) start [2025-03-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663023', 'tblTempUsageDetail_20' ) end [2025-03-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663023', 'tblTempVendorCDR_20' ) start [2025-03-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663023', 'tblTempVendorCDR_20' ) end [2025-03-12 08:43:17] Production.INFO: ProcessCDR(1,14663023,1,1,2) [2025-03-12 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663023', 'tblTempUsageDetail_20' ) start [2025-03-12 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663023', 'tblTempUsageDetail_20' ) end [2025-03-12 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:43:22] Production.INFO: ==32343== Releasing lock... [2025-03-12 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:43:22] Production.INFO: 33 MB #Memory Used# [2025-03-12 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:44:05 [end_date_ymd] => 2025-03-12 08:44:05 [RateCDR] => 1 ) [2025-03-12 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:44:05' and `end` < '2025-03-12 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:44:17] Production.INFO: count ==624 [2025-03-12 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:44:05 - End Time 2025-03-12 08:44:05 [2025-03-12 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663028', 'tblTempUsageDetail_20' ) start [2025-03-12 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663028', 'tblTempUsageDetail_20' ) end [2025-03-12 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663028', 'tblTempVendorCDR_20' ) start [2025-03-12 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663028', 'tblTempVendorCDR_20' ) end [2025-03-12 08:44:17] Production.INFO: ProcessCDR(1,14663028,1,1,2) [2025-03-12 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663028', 'tblTempUsageDetail_20' ) start [2025-03-12 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663028', 'tblTempUsageDetail_20' ) end [2025-03-12 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:44:21] Production.INFO: ==32412== Releasing lock... [2025-03-12 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-12 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:45:06 [end_date_ymd] => 2025-03-12 08:45:06 [RateCDR] => 1 ) [2025-03-12 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:45:06' and `end` < '2025-03-12 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:45:18] Production.INFO: count ==626 [2025-03-12 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:45:06 - End Time 2025-03-12 08:45:06 [2025-03-12 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663033', 'tblTempUsageDetail_20' ) start [2025-03-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663033', 'tblTempUsageDetail_20' ) end [2025-03-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663033', 'tblTempVendorCDR_20' ) start [2025-03-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663033', 'tblTempVendorCDR_20' ) end [2025-03-12 08:45:18] Production.INFO: ProcessCDR(1,14663033,1,1,2) [2025-03-12 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663033', 'tblTempUsageDetail_20' ) start [2025-03-12 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663033', 'tblTempUsageDetail_20' ) end [2025-03-12 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:45:23] Production.INFO: ==32489== Releasing lock... [2025-03-12 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-12 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:46:05 [end_date_ymd] => 2025-03-12 08:46:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 05:46:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 08:46:17] Production.INFO: count ==634 [2025-03-12 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:46:05 - End Time 2025-03-12 08:46:05 [2025-03-12 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663038', 'tblTempUsageDetail_20' ) start [2025-03-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663038', 'tblTempUsageDetail_20' ) end [2025-03-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663038', 'tblTempVendorCDR_20' ) start [2025-03-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663038', 'tblTempVendorCDR_20' ) end [2025-03-12 08:46:18] Production.INFO: ProcessCDR(1,14663038,1,1,2) [2025-03-12 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663038', 'tblTempUsageDetail_20' ) start [2025-03-12 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663038', 'tblTempUsageDetail_20' ) end [2025-03-12 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:46:22] Production.INFO: ==32569== Releasing lock... [2025-03-12 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:46:22] Production.INFO: 33 MB #Memory Used# [2025-03-12 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:47:05 [end_date_ymd] => 2025-03-12 08:47:05 [RateCDR] => 1 ) [2025-03-12 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:47:05' and `end` < '2025-03-12 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:47:17] Production.INFO: count ==642 [2025-03-12 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:47:05 - End Time 2025-03-12 08:47:05 [2025-03-12 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663043', 'tblTempUsageDetail_20' ) start [2025-03-12 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663043', 'tblTempUsageDetail_20' ) end [2025-03-12 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663043', 'tblTempVendorCDR_20' ) start [2025-03-12 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663043', 'tblTempVendorCDR_20' ) end [2025-03-12 08:47:17] Production.INFO: ProcessCDR(1,14663043,1,1,2) [2025-03-12 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663043', 'tblTempUsageDetail_20' ) start [2025-03-12 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663043', 'tblTempUsageDetail_20' ) end [2025-03-12 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:47:21] Production.INFO: ==32647== Releasing lock... [2025-03-12 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-12 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:48:06 [end_date_ymd] => 2025-03-12 08:48:06 [RateCDR] => 1 ) [2025-03-12 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:48:06' and `end` < '2025-03-12 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:48:18] Production.INFO: count ==661 [2025-03-12 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:48:06 - End Time 2025-03-12 08:48:06 [2025-03-12 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663048', 'tblTempUsageDetail_20' ) start [2025-03-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663048', 'tblTempUsageDetail_20' ) end [2025-03-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663048', 'tblTempVendorCDR_20' ) start [2025-03-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663048', 'tblTempVendorCDR_20' ) end [2025-03-12 08:48:18] Production.INFO: ProcessCDR(1,14663048,1,1,2) [2025-03-12 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663048', 'tblTempUsageDetail_20' ) start [2025-03-12 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663048', 'tblTempUsageDetail_20' ) end [2025-03-12 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:48:23] Production.INFO: ==32721== Releasing lock... [2025-03-12 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-12 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:49:05 [end_date_ymd] => 2025-03-12 08:49:05 [RateCDR] => 1 ) [2025-03-12 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:49:05' and `end` < '2025-03-12 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:49:17] Production.INFO: count ==688 [2025-03-12 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:49:05 - End Time 2025-03-12 08:49:05 [2025-03-12 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663053', 'tblTempUsageDetail_20' ) start [2025-03-12 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663053', 'tblTempUsageDetail_20' ) end [2025-03-12 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663053', 'tblTempVendorCDR_20' ) start [2025-03-12 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663053', 'tblTempVendorCDR_20' ) end [2025-03-12 08:49:17] Production.INFO: ProcessCDR(1,14663053,1,1,2) [2025-03-12 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663053', 'tblTempUsageDetail_20' ) start [2025-03-12 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663053', 'tblTempUsageDetail_20' ) end [2025-03-12 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:49:21] Production.INFO: ==352== Releasing lock... [2025-03-12 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-12 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:50:06 [end_date_ymd] => 2025-03-12 08:50:06 [RateCDR] => 1 ) [2025-03-12 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:50:06' and `end` < '2025-03-12 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:50:18] Production.INFO: count ==696 [2025-03-12 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:50:06 - End Time 2025-03-12 08:50:06 [2025-03-12 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663059', 'tblTempUsageDetail_20' ) start [2025-03-12 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663059', 'tblTempUsageDetail_20' ) end [2025-03-12 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663059', 'tblTempVendorCDR_20' ) start [2025-03-12 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663059', 'tblTempVendorCDR_20' ) end [2025-03-12 08:50:18] Production.INFO: ProcessCDR(1,14663059,1,1,2) [2025-03-12 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663059', 'tblTempUsageDetail_20' ) start [2025-03-12 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663059', 'tblTempUsageDetail_20' ) end [2025-03-12 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:50:22] Production.INFO: ==428== Releasing lock... [2025-03-12 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-12 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:51:05 [end_date_ymd] => 2025-03-12 08:51:05 [RateCDR] => 1 ) [2025-03-12 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:51:05' and `end` < '2025-03-12 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:51:18] Production.INFO: count ==736 [2025-03-12 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:51:05 - End Time 2025-03-12 08:51:05 [2025-03-12 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663064', 'tblTempUsageDetail_20' ) start [2025-03-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663064', 'tblTempUsageDetail_20' ) end [2025-03-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663064', 'tblTempVendorCDR_20' ) start [2025-03-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663064', 'tblTempVendorCDR_20' ) end [2025-03-12 08:51:18] Production.INFO: ProcessCDR(1,14663064,1,1,2) [2025-03-12 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663064', 'tblTempUsageDetail_20' ) start [2025-03-12 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663064', 'tblTempUsageDetail_20' ) end [2025-03-12 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:51:22] Production.INFO: ==506== Releasing lock... [2025-03-12 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-12 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:52:05 [end_date_ymd] => 2025-03-12 08:52:05 [RateCDR] => 1 ) [2025-03-12 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:52:05' and `end` < '2025-03-12 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:52:17] Production.INFO: count ==737 [2025-03-12 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:52:05 - End Time 2025-03-12 08:52:05 [2025-03-12 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663069', 'tblTempUsageDetail_20' ) start [2025-03-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663069', 'tblTempUsageDetail_20' ) end [2025-03-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663069', 'tblTempVendorCDR_20' ) start [2025-03-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663069', 'tblTempVendorCDR_20' ) end [2025-03-12 08:52:18] Production.INFO: ProcessCDR(1,14663069,1,1,2) [2025-03-12 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663069', 'tblTempUsageDetail_20' ) start [2025-03-12 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663069', 'tblTempUsageDetail_20' ) end [2025-03-12 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:52:21] Production.INFO: ==581== Releasing lock... [2025-03-12 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:52:21] Production.INFO: 34 MB #Memory Used# [2025-03-12 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:53:05 [end_date_ymd] => 2025-03-12 08:53:05 [RateCDR] => 1 ) [2025-03-12 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:53:05' and `end` < '2025-03-12 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:53:17] Production.INFO: count ==736 [2025-03-12 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:53:05 - End Time 2025-03-12 08:53:05 [2025-03-12 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663074', 'tblTempUsageDetail_20' ) start [2025-03-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663074', 'tblTempUsageDetail_20' ) end [2025-03-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663074', 'tblTempVendorCDR_20' ) start [2025-03-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663074', 'tblTempVendorCDR_20' ) end [2025-03-12 08:53:18] Production.INFO: ProcessCDR(1,14663074,1,1,2) [2025-03-12 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663074', 'tblTempUsageDetail_20' ) start [2025-03-12 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663074', 'tblTempUsageDetail_20' ) end [2025-03-12 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:53:23] Production.INFO: ==679== Releasing lock... [2025-03-12 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-12 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:54:05 [end_date_ymd] => 2025-03-12 08:54:05 [RateCDR] => 1 ) [2025-03-12 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:54:05' and `end` < '2025-03-12 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:54:17] Production.INFO: count ==751 [2025-03-12 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:54:05 - End Time 2025-03-12 08:54:05 [2025-03-12 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663079', 'tblTempUsageDetail_20' ) start [2025-03-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663079', 'tblTempUsageDetail_20' ) end [2025-03-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663079', 'tblTempVendorCDR_20' ) start [2025-03-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663079', 'tblTempVendorCDR_20' ) end [2025-03-12 08:54:18] Production.INFO: ProcessCDR(1,14663079,1,1,2) [2025-03-12 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663079', 'tblTempUsageDetail_20' ) start [2025-03-12 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663079', 'tblTempUsageDetail_20' ) end [2025-03-12 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:54:22] Production.INFO: ==773== Releasing lock... [2025-03-12 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:54:22] Production.INFO: 34 MB #Memory Used# [2025-03-12 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:55:05 [end_date_ymd] => 2025-03-12 08:55:05 [RateCDR] => 1 ) [2025-03-12 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:55:05' and `end` < '2025-03-12 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:55:17] Production.INFO: count ==760 [2025-03-12 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:55:05 - End Time 2025-03-12 08:55:05 [2025-03-12 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663084', 'tblTempUsageDetail_20' ) start [2025-03-12 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663084', 'tblTempUsageDetail_20' ) end [2025-03-12 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663084', 'tblTempVendorCDR_20' ) start [2025-03-12 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663084', 'tblTempVendorCDR_20' ) end [2025-03-12 08:55:17] Production.INFO: ProcessCDR(1,14663084,1,1,2) [2025-03-12 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663084', 'tblTempUsageDetail_20' ) start [2025-03-12 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663084', 'tblTempUsageDetail_20' ) end [2025-03-12 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:55:21] Production.INFO: ==847== Releasing lock... [2025-03-12 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-12 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:56:05 [end_date_ymd] => 2025-03-12 08:56:05 [RateCDR] => 1 ) [2025-03-12 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:56:05' and `end` < '2025-03-12 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:56:17] Production.INFO: count ==768 [2025-03-12 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 05:56:05 - End Time 2025-03-12 08:56:05 [2025-03-12 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663089', 'tblTempUsageDetail_20' ) start [2025-03-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663089', 'tblTempUsageDetail_20' ) end [2025-03-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663089', 'tblTempVendorCDR_20' ) start [2025-03-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663089', 'tblTempVendorCDR_20' ) end [2025-03-12 08:56:18] Production.INFO: ProcessCDR(1,14663089,1,1,2) [2025-03-12 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663089', 'tblTempUsageDetail_20' ) start [2025-03-12 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663089', 'tblTempUsageDetail_20' ) end [2025-03-12 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:56:22] Production.INFO: ==922== Releasing lock... [2025-03-12 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-12 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:57:05 [end_date_ymd] => 2025-03-12 08:57:05 [RateCDR] => 1 ) [2025-03-12 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:57:05' and `end` < '2025-03-12 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:57:17] Production.INFO: count ==794 [2025-03-12 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:57:05 - End Time 2025-03-12 08:57:05 [2025-03-12 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663094', 'tblTempUsageDetail_20' ) start [2025-03-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663094', 'tblTempUsageDetail_20' ) end [2025-03-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663094', 'tblTempVendorCDR_20' ) start [2025-03-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663094', 'tblTempVendorCDR_20' ) end [2025-03-12 08:57:17] Production.INFO: ProcessCDR(1,14663094,1,1,2) [2025-03-12 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663094', 'tblTempUsageDetail_20' ) start [2025-03-12 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663094', 'tblTempUsageDetail_20' ) end [2025-03-12 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:57:22] Production.INFO: ==1034== Releasing lock... [2025-03-12 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-12 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:58:05 [end_date_ymd] => 2025-03-12 08:58:05 [RateCDR] => 1 ) [2025-03-12 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:58:05' and `end` < '2025-03-12 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:58:17] Production.INFO: count ==813 [2025-03-12 08:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:58:05 - End Time 2025-03-12 08:58:05 [2025-03-12 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663099', 'tblTempUsageDetail_20' ) start [2025-03-12 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663099', 'tblTempUsageDetail_20' ) end [2025-03-12 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663099', 'tblTempVendorCDR_20' ) start [2025-03-12 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663099', 'tblTempVendorCDR_20' ) end [2025-03-12 08:58:17] Production.INFO: ProcessCDR(1,14663099,1,1,2) [2025-03-12 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663099', 'tblTempUsageDetail_20' ) start [2025-03-12 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663099', 'tblTempUsageDetail_20' ) end [2025-03-12 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:58:21] Production.INFO: ==1128== Releasing lock... [2025-03-12 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:58:21] Production.INFO: 34 MB #Memory Used# [2025-03-12 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 05:59:05 [end_date_ymd] => 2025-03-12 08:59:05 [RateCDR] => 1 ) [2025-03-12 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 05:59:05' and `end` < '2025-03-12 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 08:59:17] Production.INFO: count ==824 [2025-03-12 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 05:59:05 - End Time 2025-03-12 08:59:05 [2025-03-12 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663104', 'tblTempUsageDetail_20' ) start [2025-03-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663104', 'tblTempUsageDetail_20' ) end [2025-03-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663104', 'tblTempVendorCDR_20' ) start [2025-03-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663104', 'tblTempVendorCDR_20' ) end [2025-03-12 08:59:18] Production.INFO: ProcessCDR(1,14663104,1,1,2) [2025-03-12 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663104', 'tblTempUsageDetail_20' ) start [2025-03-12 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663104', 'tblTempUsageDetail_20' ) end [2025-03-12 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 08:59:21] Production.INFO: ==1207== Releasing lock... [2025-03-12 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 08:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-12 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:00:06 [end_date_ymd] => 2025-03-12 09:00:06 [RateCDR] => 1 ) [2025-03-12 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:00:06' and `end` < '2025-03-12 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:00:18] Production.INFO: count ==854 [2025-03-12 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:00:06 - End Time 2025-03-12 09:00:06 [2025-03-12 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663109', 'tblTempUsageDetail_20' ) start [2025-03-12 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663109', 'tblTempUsageDetail_20' ) end [2025-03-12 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663109', 'tblTempVendorCDR_20' ) start [2025-03-12 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663109', 'tblTempVendorCDR_20' ) end [2025-03-12 09:00:18] Production.INFO: ProcessCDR(1,14663109,1,1,2) [2025-03-12 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663109', 'tblTempUsageDetail_20' ) start [2025-03-12 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663109', 'tblTempUsageDetail_20' ) end [2025-03-12 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:00:22] Production.INFO: ==1293== Releasing lock... [2025-03-12 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:00:22] Production.INFO: 34 MB #Memory Used# [2025-03-12 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:01:06 [end_date_ymd] => 2025-03-12 09:01:06 [RateCDR] => 1 ) [2025-03-12 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:01:06' and `end` < '2025-03-12 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:01:18] Production.INFO: count ==889 [2025-03-12 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:01:06 - End Time 2025-03-12 09:01:06 [2025-03-12 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663115', 'tblTempUsageDetail_20' ) start [2025-03-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663115', 'tblTempUsageDetail_20' ) end [2025-03-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663115', 'tblTempVendorCDR_20' ) start [2025-03-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663115', 'tblTempVendorCDR_20' ) end [2025-03-12 09:01:18] Production.INFO: ProcessCDR(1,14663115,1,1,2) [2025-03-12 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663115', 'tblTempUsageDetail_20' ) start [2025-03-12 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663115', 'tblTempUsageDetail_20' ) end [2025-03-12 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:01:23] Production.INFO: ==1379== Releasing lock... [2025-03-12 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:01:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-12 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:02:05 [end_date_ymd] => 2025-03-12 09:02:05 [RateCDR] => 1 ) [2025-03-12 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:02:05' and `end` < '2025-03-12 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:02:18] Production.INFO: count ==891 [2025-03-12 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:02:05 - End Time 2025-03-12 09:02:05 [2025-03-12 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663120', 'tblTempUsageDetail_20' ) start [2025-03-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663120', 'tblTempUsageDetail_20' ) end [2025-03-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663120', 'tblTempVendorCDR_20' ) start [2025-03-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663120', 'tblTempVendorCDR_20' ) end [2025-03-12 09:02:18] Production.INFO: ProcessCDR(1,14663120,1,1,2) [2025-03-12 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663120', 'tblTempUsageDetail_20' ) start [2025-03-12 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663120', 'tblTempUsageDetail_20' ) end [2025-03-12 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:02:23] Production.INFO: ==1453== Releasing lock... [2025-03-12 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:02:23] Production.INFO: 35 MB #Memory Used# [2025-03-12 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:03:05 [end_date_ymd] => 2025-03-12 09:03:05 [RateCDR] => 1 ) [2025-03-12 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:03:05' and `end` < '2025-03-12 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:03:17] Production.INFO: count ==900 [2025-03-12 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-12 06:03:05 - End Time 2025-03-12 09:03:05 [2025-03-12 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663125', 'tblTempUsageDetail_20' ) start [2025-03-12 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663125', 'tblTempUsageDetail_20' ) end [2025-03-12 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663125', 'tblTempVendorCDR_20' ) start [2025-03-12 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663125', 'tblTempVendorCDR_20' ) end [2025-03-12 09:03:17] Production.INFO: ProcessCDR(1,14663125,1,1,2) [2025-03-12 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663125', 'tblTempUsageDetail_20' ) start [2025-03-12 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663125', 'tblTempUsageDetail_20' ) end [2025-03-12 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:03:21] Production.INFO: ==1556== Releasing lock... [2025-03-12 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:03:21] Production.INFO: 35 MB #Memory Used# [2025-03-12 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:04:05 [end_date_ymd] => 2025-03-12 09:04:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:04:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:04:17] Production.INFO: count ==923 [2025-03-12 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:04:05 - End Time 2025-03-12 09:04:05 [2025-03-12 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663130', 'tblTempUsageDetail_20' ) start [2025-03-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663130', 'tblTempUsageDetail_20' ) end [2025-03-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663130', 'tblTempVendorCDR_20' ) start [2025-03-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663130', 'tblTempVendorCDR_20' ) end [2025-03-12 09:04:18] Production.INFO: ProcessCDR(1,14663130,1,1,2) [2025-03-12 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663130', 'tblTempUsageDetail_20' ) start [2025-03-12 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663130', 'tblTempUsageDetail_20' ) end [2025-03-12 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:04:22] Production.INFO: ==1634== Releasing lock... [2025-03-12 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-12 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:05:05 [end_date_ymd] => 2025-03-12 09:05:05 [RateCDR] => 1 ) [2025-03-12 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:05:05' and `end` < '2025-03-12 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:05:17] Production.INFO: count ==969 [2025-03-12 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:05:05 - End Time 2025-03-12 09:05:05 [2025-03-12 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663135', 'tblTempUsageDetail_20' ) start [2025-03-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663135', 'tblTempUsageDetail_20' ) end [2025-03-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663135', 'tblTempVendorCDR_20' ) start [2025-03-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663135', 'tblTempVendorCDR_20' ) end [2025-03-12 09:05:18] Production.INFO: ProcessCDR(1,14663135,1,1,2) [2025-03-12 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663135', 'tblTempUsageDetail_20' ) start [2025-03-12 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663135', 'tblTempUsageDetail_20' ) end [2025-03-12 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:05:23] Production.INFO: ==1710== Releasing lock... [2025-03-12 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:05:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-12 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:06:05 [end_date_ymd] => 2025-03-12 09:06:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:06:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:06:17] Production.INFO: count ==998 [2025-03-12 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:06:05 - End Time 2025-03-12 09:06:05 [2025-03-12 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663140', 'tblTempUsageDetail_20' ) start [2025-03-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663140', 'tblTempUsageDetail_20' ) end [2025-03-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663140', 'tblTempVendorCDR_20' ) start [2025-03-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663140', 'tblTempVendorCDR_20' ) end [2025-03-12 09:06:18] Production.INFO: ProcessCDR(1,14663140,1,1,2) [2025-03-12 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663140', 'tblTempUsageDetail_20' ) start [2025-03-12 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663140', 'tblTempUsageDetail_20' ) end [2025-03-12 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:06:21] Production.INFO: ==1786== Releasing lock... [2025-03-12 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:06:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-12 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:07:05 [end_date_ymd] => 2025-03-12 09:07:05 [RateCDR] => 1 ) [2025-03-12 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:07:05' and `end` < '2025-03-12 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:07:17] Production.INFO: count ==1006 [2025-03-12 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-12 06:07:05 - End Time 2025-03-12 09:07:05 [2025-03-12 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663145', 'tblTempUsageDetail_20' ) start [2025-03-12 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663145', 'tblTempUsageDetail_20' ) end [2025-03-12 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663145', 'tblTempVendorCDR_20' ) start [2025-03-12 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663145', 'tblTempVendorCDR_20' ) end [2025-03-12 09:07:17] Production.INFO: ProcessCDR(1,14663145,1,1,2) [2025-03-12 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663145', 'tblTempUsageDetail_20' ) start [2025-03-12 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663145', 'tblTempUsageDetail_20' ) end [2025-03-12 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:07:21] Production.INFO: ==1867== Releasing lock... [2025-03-12 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:07:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-12 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:08:05 [end_date_ymd] => 2025-03-12 09:08:05 [RateCDR] => 1 ) [2025-03-12 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:08:05' and `end` < '2025-03-12 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:08:17] Production.INFO: count ==1027 [2025-03-12 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:08:05 - End Time 2025-03-12 09:08:05 [2025-03-12 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663150', 'tblTempUsageDetail_20' ) start [2025-03-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663150', 'tblTempUsageDetail_20' ) end [2025-03-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663150', 'tblTempVendorCDR_20' ) start [2025-03-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663150', 'tblTempVendorCDR_20' ) end [2025-03-12 09:08:18] Production.INFO: ProcessCDR(1,14663150,1,1,2) [2025-03-12 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663150', 'tblTempUsageDetail_20' ) start [2025-03-12 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663150', 'tblTempUsageDetail_20' ) end [2025-03-12 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:08:23] Production.INFO: ==1938== Releasing lock... [2025-03-12 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:08:23] Production.INFO: 36 MB #Memory Used# [2025-03-12 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:09:05 [end_date_ymd] => 2025-03-12 09:09:05 [RateCDR] => 1 ) [2025-03-12 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:09:05' and `end` < '2025-03-12 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:09:18] Production.INFO: count ==1068 [2025-03-12 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:09:05 - End Time 2025-03-12 09:09:05 [2025-03-12 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663155', 'tblTempUsageDetail_20' ) start [2025-03-12 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663155', 'tblTempUsageDetail_20' ) end [2025-03-12 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663155', 'tblTempVendorCDR_20' ) start [2025-03-12 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663155', 'tblTempVendorCDR_20' ) end [2025-03-12 09:09:18] Production.INFO: ProcessCDR(1,14663155,1,1,2) [2025-03-12 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663155', 'tblTempUsageDetail_20' ) start [2025-03-12 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663155', 'tblTempUsageDetail_20' ) end [2025-03-12 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:09:23] Production.INFO: ==2011== Releasing lock... [2025-03-12 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:09:23] Production.INFO: 36 MB #Memory Used# [2025-03-12 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:10:06 [end_date_ymd] => 2025-03-12 09:10:06 [RateCDR] => 1 ) [2025-03-12 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:10:06' and `end` < '2025-03-12 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:10:18] Production.INFO: count ==1097 [2025-03-12 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:10:06 - End Time 2025-03-12 09:10:06 [2025-03-12 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663161', 'tblTempUsageDetail_20' ) start [2025-03-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663161', 'tblTempUsageDetail_20' ) end [2025-03-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663161', 'tblTempVendorCDR_20' ) start [2025-03-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663161', 'tblTempVendorCDR_20' ) end [2025-03-12 09:10:19] Production.INFO: ProcessCDR(1,14663161,1,1,2) [2025-03-12 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663161', 'tblTempUsageDetail_20' ) start [2025-03-12 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663161', 'tblTempUsageDetail_20' ) end [2025-03-12 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:10:24] Production.INFO: ==2085== Releasing lock... [2025-03-12 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:10:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-12 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:11:06 [end_date_ymd] => 2025-03-12 09:11:06 [RateCDR] => 1 ) [2025-03-12 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:11:06' and `end` < '2025-03-12 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:11:18] Production.INFO: count ==1202 [2025-03-12 09:11:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:11:06 - End Time 2025-03-12 09:11:06 [2025-03-12 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663166', 'tblTempUsageDetail_20' ) start [2025-03-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663166', 'tblTempUsageDetail_20' ) end [2025-03-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663166', 'tblTempVendorCDR_20' ) start [2025-03-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663166', 'tblTempVendorCDR_20' ) end [2025-03-12 09:11:19] Production.INFO: ProcessCDR(1,14663166,1,1,2) [2025-03-12 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663166', 'tblTempUsageDetail_20' ) start [2025-03-12 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663166', 'tblTempUsageDetail_20' ) end [2025-03-12 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:11:24] Production.INFO: ==2161== Releasing lock... [2025-03-12 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:11:24] Production.INFO: 37 MB #Memory Used# [2025-03-12 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:12:05 [end_date_ymd] => 2025-03-12 09:12:05 [RateCDR] => 1 ) [2025-03-12 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:12:05' and `end` < '2025-03-12 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:12:18] Production.INFO: count ==1240 [2025-03-12 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:12:05 - End Time 2025-03-12 09:12:05 [2025-03-12 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663171', 'tblTempUsageDetail_20' ) start [2025-03-12 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663171', 'tblTempUsageDetail_20' ) end [2025-03-12 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663171', 'tblTempVendorCDR_20' ) start [2025-03-12 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663171', 'tblTempVendorCDR_20' ) end [2025-03-12 09:12:18] Production.INFO: ProcessCDR(1,14663171,1,1,2) [2025-03-12 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663171', 'tblTempUsageDetail_20' ) start [2025-03-12 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663171', 'tblTempUsageDetail_20' ) end [2025-03-12 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:12:23] Production.INFO: ==2274== Releasing lock... [2025-03-12 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:13:06 [end_date_ymd] => 2025-03-12 09:13:06 [RateCDR] => 1 ) [2025-03-12 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:13:06' and `end` < '2025-03-12 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:13:18] Production.INFO: count ==1305 [2025-03-12 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:13:06 - End Time 2025-03-12 09:13:06 [2025-03-12 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663176', 'tblTempUsageDetail_20' ) start [2025-03-12 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663176', 'tblTempUsageDetail_20' ) end [2025-03-12 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663176', 'tblTempVendorCDR_20' ) start [2025-03-12 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663176', 'tblTempVendorCDR_20' ) end [2025-03-12 09:13:19] Production.INFO: ProcessCDR(1,14663176,1,1,2) [2025-03-12 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663176', 'tblTempUsageDetail_20' ) start [2025-03-12 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663176', 'tblTempUsageDetail_20' ) end [2025-03-12 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:13:24] Production.INFO: ==2346== Releasing lock... [2025-03-12 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:13:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-12 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:14:05 [end_date_ymd] => 2025-03-12 09:14:05 [RateCDR] => 1 ) [2025-03-12 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:14:05' and `end` < '2025-03-12 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:14:18] Production.INFO: count ==1313 [2025-03-12 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:14:05 - End Time 2025-03-12 09:14:05 [2025-03-12 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663181', 'tblTempUsageDetail_20' ) start [2025-03-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663181', 'tblTempUsageDetail_20' ) end [2025-03-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663181', 'tblTempVendorCDR_20' ) start [2025-03-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663181', 'tblTempVendorCDR_20' ) end [2025-03-12 09:14:18] Production.INFO: ProcessCDR(1,14663181,1,1,2) [2025-03-12 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663181', 'tblTempUsageDetail_20' ) start [2025-03-12 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663181', 'tblTempUsageDetail_20' ) end [2025-03-12 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:14:23] Production.INFO: ==2416== Releasing lock... [2025-03-12 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:14:23] Production.INFO: 38 MB #Memory Used# [2025-03-12 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:15:06 [end_date_ymd] => 2025-03-12 09:15:06 [RateCDR] => 1 ) [2025-03-12 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:15:06' and `end` < '2025-03-12 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:15:18] Production.INFO: count ==1329 [2025-03-12 09:15:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:15:06 - End Time 2025-03-12 09:15:06 [2025-03-12 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663186', 'tblTempUsageDetail_20' ) start [2025-03-12 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663186', 'tblTempUsageDetail_20' ) end [2025-03-12 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663186', 'tblTempVendorCDR_20' ) start [2025-03-12 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663186', 'tblTempVendorCDR_20' ) end [2025-03-12 09:15:19] Production.INFO: ProcessCDR(1,14663186,1,1,2) [2025-03-12 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663186', 'tblTempUsageDetail_20' ) start [2025-03-12 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663186', 'tblTempUsageDetail_20' ) end [2025-03-12 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:15:22] Production.INFO: ==2488== Releasing lock... [2025-03-12 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:15:22] Production.INFO: 38 MB #Memory Used# [2025-03-12 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:16:05 [end_date_ymd] => 2025-03-12 09:16:05 [RateCDR] => 1 ) [2025-03-12 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:16:05' and `end` < '2025-03-12 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:16:18] Production.INFO: count ==1359 [2025-03-12 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:16:05 - End Time 2025-03-12 09:16:05 [2025-03-12 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663191', 'tblTempUsageDetail_20' ) start [2025-03-12 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663191', 'tblTempUsageDetail_20' ) end [2025-03-12 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663191', 'tblTempVendorCDR_20' ) start [2025-03-12 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663191', 'tblTempVendorCDR_20' ) end [2025-03-12 09:16:19] Production.INFO: ProcessCDR(1,14663191,1,1,2) [2025-03-12 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663191', 'tblTempUsageDetail_20' ) start [2025-03-12 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663191', 'tblTempUsageDetail_20' ) end [2025-03-12 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:16:24] Production.INFO: ==2557== Releasing lock... [2025-03-12 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:16:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:17:06 [end_date_ymd] => 2025-03-12 09:17:06 [RateCDR] => 1 ) [2025-03-12 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:17:06' and `end` < '2025-03-12 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:17:18] Production.INFO: count ==1370 [2025-03-12 09:17:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:17:06 - End Time 2025-03-12 09:17:06 [2025-03-12 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663196', 'tblTempUsageDetail_20' ) start [2025-03-12 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663196', 'tblTempUsageDetail_20' ) end [2025-03-12 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663196', 'tblTempVendorCDR_20' ) start [2025-03-12 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663196', 'tblTempVendorCDR_20' ) end [2025-03-12 09:17:19] Production.INFO: ProcessCDR(1,14663196,1,1,2) [2025-03-12 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663196', 'tblTempUsageDetail_20' ) start [2025-03-12 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663196', 'tblTempUsageDetail_20' ) end [2025-03-12 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:17:24] Production.INFO: ==2628== Releasing lock... [2025-03-12 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:17:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:18:05 [end_date_ymd] => 2025-03-12 09:18:05 [RateCDR] => 1 ) [2025-03-12 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:18:05' and `end` < '2025-03-12 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:18:17] Production.INFO: count ==1382 [2025-03-12 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:18:05 - End Time 2025-03-12 09:18:05 [2025-03-12 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663201', 'tblTempUsageDetail_20' ) start [2025-03-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663201', 'tblTempUsageDetail_20' ) end [2025-03-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663201', 'tblTempVendorCDR_20' ) start [2025-03-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663201', 'tblTempVendorCDR_20' ) end [2025-03-12 09:18:18] Production.INFO: ProcessCDR(1,14663201,1,1,2) [2025-03-12 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663201', 'tblTempUsageDetail_20' ) start [2025-03-12 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663201', 'tblTempUsageDetail_20' ) end [2025-03-12 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:18:23] Production.INFO: ==2712== Releasing lock... [2025-03-12 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:18:23] Production.INFO: 39 MB #Memory Used# [2025-03-12 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:19:06 [end_date_ymd] => 2025-03-12 09:19:06 [RateCDR] => 1 ) [2025-03-12 09: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` >= '2025-03-12 06:19:06' and `end` < '2025-03-12 09: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 ,'') [2025-03-12 09:19:18] Production.INFO: count ==1394 [2025-03-12 09:19:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:19:06 - End Time 2025-03-12 09:19:06 [2025-03-12 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663206', 'tblTempUsageDetail_20' ) start [2025-03-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663206', 'tblTempUsageDetail_20' ) end [2025-03-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663206', 'tblTempVendorCDR_20' ) start [2025-03-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663206', 'tblTempVendorCDR_20' ) end [2025-03-12 09:19:19] Production.INFO: ProcessCDR(1,14663206,1,1,2) [2025-03-12 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663206', 'tblTempUsageDetail_20' ) start [2025-03-12 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663206', 'tblTempUsageDetail_20' ) end [2025-03-12 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:19:24] Production.INFO: ==2792== Releasing lock... [2025-03-12 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:19:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:20:06 [end_date_ymd] => 2025-03-12 09:20:06 [RateCDR] => 1 ) [2025-03-12 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:20:06' and `end` < '2025-03-12 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:20:18] Production.INFO: count ==1411 [2025-03-12 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:20:06 - End Time 2025-03-12 09:20:06 [2025-03-12 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663212', 'tblTempUsageDetail_20' ) start [2025-03-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663212', 'tblTempUsageDetail_20' ) end [2025-03-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663212', 'tblTempVendorCDR_20' ) start [2025-03-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663212', 'tblTempVendorCDR_20' ) end [2025-03-12 09:20:19] Production.INFO: ProcessCDR(1,14663212,1,1,2) [2025-03-12 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663212', 'tblTempUsageDetail_20' ) start [2025-03-12 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663212', 'tblTempUsageDetail_20' ) end [2025-03-12 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:20:24] Production.INFO: ==2865== Releasing lock... [2025-03-12 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-12 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:21:06 [end_date_ymd] => 2025-03-12 09:21:06 [RateCDR] => 1 ) [2025-03-12 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:21:06' and `end` < '2025-03-12 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:21:18] Production.INFO: count ==1473 [2025-03-12 09:21:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:21:06 - End Time 2025-03-12 09:21:06 [2025-03-12 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663217', 'tblTempUsageDetail_20' ) start [2025-03-12 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663217', 'tblTempUsageDetail_20' ) end [2025-03-12 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663217', 'tblTempVendorCDR_20' ) start [2025-03-12 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663217', 'tblTempVendorCDR_20' ) end [2025-03-12 09:21:19] Production.INFO: ProcessCDR(1,14663217,1,1,2) [2025-03-12 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663217', 'tblTempUsageDetail_20' ) start [2025-03-12 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663217', 'tblTempUsageDetail_20' ) end [2025-03-12 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:21:24] Production.INFO: ==2939== Releasing lock... [2025-03-12 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:21:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-12 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:22:06 [end_date_ymd] => 2025-03-12 09:22:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:22:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:22:18] Production.INFO: count ==1504 [2025-03-12 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:22:06 - End Time 2025-03-12 09:22:06 [2025-03-12 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663222', 'tblTempUsageDetail_20' ) start [2025-03-12 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663222', 'tblTempUsageDetail_20' ) end [2025-03-12 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663222', 'tblTempVendorCDR_20' ) start [2025-03-12 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663222', 'tblTempVendorCDR_20' ) end [2025-03-12 09:22:19] Production.INFO: ProcessCDR(1,14663222,1,1,2) [2025-03-12 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663222', 'tblTempUsageDetail_20' ) start [2025-03-12 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663222', 'tblTempUsageDetail_20' ) end [2025-03-12 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:22:24] Production.INFO: ==3010== Releasing lock... [2025-03-12 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:22:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-12 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:23:04 [end_date_ymd] => 2025-03-12 09:23:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:23:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:23:16] Production.INFO: count ==1522 [2025-03-12 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 06:23:04 - End Time 2025-03-12 09:23:04 [2025-03-12 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663227', 'tblTempUsageDetail_20' ) start [2025-03-12 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663227', 'tblTempUsageDetail_20' ) end [2025-03-12 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663227', 'tblTempVendorCDR_20' ) start [2025-03-12 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663227', 'tblTempVendorCDR_20' ) end [2025-03-12 09:23:17] Production.INFO: ProcessCDR(1,14663227,1,1,2) [2025-03-12 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663227', 'tblTempUsageDetail_20' ) start [2025-03-12 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663227', 'tblTempUsageDetail_20' ) end [2025-03-12 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:23:22] Production.INFO: ==3084== Releasing lock... [2025-03-12 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:23:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-12 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:24:06 [end_date_ymd] => 2025-03-12 09:24:06 [RateCDR] => 1 ) [2025-03-12 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:24:06' and `end` < '2025-03-12 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:24:18] Production.INFO: count ==1535 [2025-03-12 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:24:06 - End Time 2025-03-12 09:24:06 [2025-03-12 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663232', 'tblTempUsageDetail_20' ) start [2025-03-12 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663232', 'tblTempUsageDetail_20' ) end [2025-03-12 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663232', 'tblTempVendorCDR_20' ) start [2025-03-12 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663232', 'tblTempVendorCDR_20' ) end [2025-03-12 09:24:19] Production.INFO: ProcessCDR(1,14663232,1,1,2) [2025-03-12 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663232', 'tblTempUsageDetail_20' ) start [2025-03-12 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663232', 'tblTempUsageDetail_20' ) end [2025-03-12 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:24:24] Production.INFO: ==3165== Releasing lock... [2025-03-12 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:24:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:25:05 [end_date_ymd] => 2025-03-12 09:25:05 [RateCDR] => 1 ) [2025-03-12 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:25:05' and `end` < '2025-03-12 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:25:17] Production.INFO: count ==1552 [2025-03-12 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:25:05 - End Time 2025-03-12 09:25:05 [2025-03-12 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663237', 'tblTempUsageDetail_20' ) start [2025-03-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663237', 'tblTempUsageDetail_20' ) end [2025-03-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663237', 'tblTempVendorCDR_20' ) start [2025-03-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663237', 'tblTempVendorCDR_20' ) end [2025-03-12 09:25:18] Production.INFO: ProcessCDR(1,14663237,1,1,2) [2025-03-12 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663237', 'tblTempUsageDetail_20' ) start [2025-03-12 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663237', 'tblTempUsageDetail_20' ) end [2025-03-12 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:25:23] Production.INFO: ==3247== Releasing lock... [2025-03-12 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:25:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-12 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:26:06 [end_date_ymd] => 2025-03-12 09:26:06 [RateCDR] => 1 ) [2025-03-12 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:26:06' and `end` < '2025-03-12 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:26:18] Production.INFO: count ==1563 [2025-03-12 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:26:06 - End Time 2025-03-12 09:26:06 [2025-03-12 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663242', 'tblTempUsageDetail_20' ) start [2025-03-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663242', 'tblTempUsageDetail_20' ) end [2025-03-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663242', 'tblTempVendorCDR_20' ) start [2025-03-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663242', 'tblTempVendorCDR_20' ) end [2025-03-12 09:26:19] Production.INFO: ProcessCDR(1,14663242,1,1,2) [2025-03-12 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663242', 'tblTempUsageDetail_20' ) start [2025-03-12 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663242', 'tblTempUsageDetail_20' ) end [2025-03-12 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:26:24] Production.INFO: ==3319== Releasing lock... [2025-03-12 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:26:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-12 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:27:05 [end_date_ymd] => 2025-03-12 09:27:05 [RateCDR] => 1 ) [2025-03-12 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:27:05' and `end` < '2025-03-12 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:27:18] Production.INFO: count ==1625 [2025-03-12 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:27:05 - End Time 2025-03-12 09:27:05 [2025-03-12 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663247', 'tblTempUsageDetail_20' ) start [2025-03-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663247', 'tblTempUsageDetail_20' ) end [2025-03-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663247', 'tblTempVendorCDR_20' ) start [2025-03-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663247', 'tblTempVendorCDR_20' ) end [2025-03-12 09:27:19] Production.INFO: ProcessCDR(1,14663247,1,1,2) [2025-03-12 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663247', 'tblTempUsageDetail_20' ) start [2025-03-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663247', 'tblTempUsageDetail_20' ) end [2025-03-12 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:27:24] Production.INFO: ==3430== Releasing lock... [2025-03-12 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:27:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-12 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:28:05 [end_date_ymd] => 2025-03-12 09:28:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:28:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:28:18] Production.INFO: count ==1645 [2025-03-12 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:28:05 - End Time 2025-03-12 09:28:05 [2025-03-12 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663252', 'tblTempUsageDetail_20' ) start [2025-03-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663252', 'tblTempUsageDetail_20' ) end [2025-03-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663252', 'tblTempVendorCDR_20' ) start [2025-03-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663252', 'tblTempVendorCDR_20' ) end [2025-03-12 09:28:19] Production.INFO: ProcessCDR(1,14663252,1,1,2) [2025-03-12 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663252', 'tblTempUsageDetail_20' ) start [2025-03-12 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663252', 'tblTempUsageDetail_20' ) end [2025-03-12 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:28:24] Production.INFO: ==3502== Releasing lock... [2025-03-12 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:28:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-12 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:29:05 [end_date_ymd] => 2025-03-12 09:29:05 [RateCDR] => 1 ) [2025-03-12 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:29:05' and `end` < '2025-03-12 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:29:18] Production.INFO: count ==1676 [2025-03-12 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:29:05 - End Time 2025-03-12 09:29:05 [2025-03-12 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663257', 'tblTempUsageDetail_20' ) start [2025-03-12 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663257', 'tblTempUsageDetail_20' ) end [2025-03-12 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663257', 'tblTempVendorCDR_20' ) start [2025-03-12 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663257', 'tblTempVendorCDR_20' ) end [2025-03-12 09:29:18] Production.INFO: ProcessCDR(1,14663257,1,1,2) [2025-03-12 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663257', 'tblTempUsageDetail_20' ) start [2025-03-12 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663257', 'tblTempUsageDetail_20' ) end [2025-03-12 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:29:23] Production.INFO: ==3575== Releasing lock... [2025-03-12 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:29:23] Production.INFO: 41 MB #Memory Used# [2025-03-12 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:30:06 [end_date_ymd] => 2025-03-12 09:30:06 [RateCDR] => 1 ) [2025-03-12 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:30:06' and `end` < '2025-03-12 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:30:18] Production.INFO: count ==1689 [2025-03-12 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:30:06 - End Time 2025-03-12 09:30:06 [2025-03-12 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663263', 'tblTempUsageDetail_20' ) start [2025-03-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663263', 'tblTempUsageDetail_20' ) end [2025-03-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663263', 'tblTempVendorCDR_20' ) start [2025-03-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663263', 'tblTempVendorCDR_20' ) end [2025-03-12 09:30:19] Production.INFO: ProcessCDR(1,14663263,1,1,2) [2025-03-12 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663263', 'tblTempUsageDetail_20' ) start [2025-03-12 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663263', 'tblTempUsageDetail_20' ) end [2025-03-12 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:30:22] Production.INFO: ==3649== Releasing lock... [2025-03-12 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-12 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:31:06 [end_date_ymd] => 2025-03-12 09:31:06 [RateCDR] => 1 ) [2025-03-12 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:31:06' and `end` < '2025-03-12 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:31:18] Production.INFO: count ==1804 [2025-03-12 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:31:06 - End Time 2025-03-12 09:31:06 [2025-03-12 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663268', 'tblTempUsageDetail_20' ) start [2025-03-12 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663268', 'tblTempUsageDetail_20' ) end [2025-03-12 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663268', 'tblTempVendorCDR_20' ) start [2025-03-12 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663268', 'tblTempVendorCDR_20' ) end [2025-03-12 09:31:19] Production.INFO: ProcessCDR(1,14663268,1,1,2) [2025-03-12 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663268', 'tblTempUsageDetail_20' ) start [2025-03-12 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663268', 'tblTempUsageDetail_20' ) end [2025-03-12 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:31:24] Production.INFO: ==3724== Releasing lock... [2025-03-12 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:31:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:32:06 [end_date_ymd] => 2025-03-12 09:32:06 [RateCDR] => 1 ) [2025-03-12 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:32:06' and `end` < '2025-03-12 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:32:18] Production.INFO: count ==1816 [2025-03-12 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:32:06 - End Time 2025-03-12 09:32:06 [2025-03-12 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663273', 'tblTempUsageDetail_20' ) start [2025-03-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663273', 'tblTempUsageDetail_20' ) end [2025-03-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663273', 'tblTempVendorCDR_20' ) start [2025-03-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663273', 'tblTempVendorCDR_20' ) end [2025-03-12 09:32:19] Production.INFO: ProcessCDR(1,14663273,1,1,2) [2025-03-12 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663273', 'tblTempUsageDetail_20' ) start [2025-03-12 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663273', 'tblTempUsageDetail_20' ) end [2025-03-12 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:32:25] Production.INFO: ==3803== Releasing lock... [2025-03-12 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:32:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:33:05 [end_date_ymd] => 2025-03-12 09:33:05 [RateCDR] => 1 ) [2025-03-12 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:33:05' and `end` < '2025-03-12 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:33:18] Production.INFO: count ==1832 [2025-03-12 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:33:05 - End Time 2025-03-12 09:33:05 [2025-03-12 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663276', 'tblTempUsageDetail_20' ) start [2025-03-12 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663276', 'tblTempUsageDetail_20' ) end [2025-03-12 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663276', 'tblTempVendorCDR_20' ) start [2025-03-12 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663276', 'tblTempVendorCDR_20' ) end [2025-03-12 09:33:19] Production.INFO: ProcessCDR(1,14663276,1,1,2) [2025-03-12 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663276', 'tblTempUsageDetail_20' ) start [2025-03-12 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663276', 'tblTempUsageDetail_20' ) end [2025-03-12 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:33:24] Production.INFO: ==3876== Releasing lock... [2025-03-12 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:33:24] Production.INFO: 42 MB #Memory Used# [2025-03-12 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:34:05 [end_date_ymd] => 2025-03-12 09:34:05 [RateCDR] => 1 ) [2025-03-12 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:34:05' and `end` < '2025-03-12 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:34:17] Production.INFO: count ==1905 [2025-03-12 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 06:34:05 - End Time 2025-03-12 09:34:05 [2025-03-12 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663283', 'tblTempUsageDetail_20' ) start [2025-03-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663283', 'tblTempUsageDetail_20' ) end [2025-03-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663283', 'tblTempVendorCDR_20' ) start [2025-03-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663283', 'tblTempVendorCDR_20' ) end [2025-03-12 09:34:18] Production.INFO: ProcessCDR(1,14663283,1,1,2) [2025-03-12 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663283', 'tblTempUsageDetail_20' ) start [2025-03-12 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663283', 'tblTempUsageDetail_20' ) end [2025-03-12 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:34:25] Production.INFO: ==3950== Releasing lock... [2025-03-12 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:34:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-12 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:35:06 [end_date_ymd] => 2025-03-12 09:35:06 [RateCDR] => 1 ) [2025-03-12 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:35:06' and `end` < '2025-03-12 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:35:19] Production.INFO: count ==1914 [2025-03-12 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:35:06 - End Time 2025-03-12 09:35:06 [2025-03-12 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663288', 'tblTempUsageDetail_20' ) start [2025-03-12 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663288', 'tblTempUsageDetail_20' ) end [2025-03-12 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663288', 'tblTempVendorCDR_20' ) start [2025-03-12 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663288', 'tblTempVendorCDR_20' ) end [2025-03-12 09:35:20] Production.INFO: ProcessCDR(1,14663288,1,1,2) [2025-03-12 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663288', 'tblTempUsageDetail_20' ) start [2025-03-12 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663288', 'tblTempUsageDetail_20' ) end [2025-03-12 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:35:25] Production.INFO: ==4020== Releasing lock... [2025-03-12 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:35:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-12 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:36:05 [end_date_ymd] => 2025-03-12 09:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 09:36:18] Production.INFO: count ==1957 [2025-03-12 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:36:05 - End Time 2025-03-12 09:36:05 [2025-03-12 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663293', 'tblTempUsageDetail_20' ) start [2025-03-12 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663293', 'tblTempUsageDetail_20' ) end [2025-03-12 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663293', 'tblTempVendorCDR_20' ) start [2025-03-12 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663293', 'tblTempVendorCDR_20' ) end [2025-03-12 09:36:19] Production.INFO: ProcessCDR(1,14663293,1,1,2) [2025-03-12 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663293', 'tblTempUsageDetail_20' ) start [2025-03-12 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663293', 'tblTempUsageDetail_20' ) end [2025-03-12 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:36:24] Production.INFO: ==4112== Releasing lock... [2025-03-12 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:36:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 09:37:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:37:07 [end_date_ymd] => 2025-03-12 09:37:07 [RateCDR] => 1 ) [2025-03-12 09:37:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:37:07' and `end` < '2025-03-12 09:37:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:37:19] Production.INFO: count ==1989 [2025-03-12 09:37:20] Production.ERROR: pbx CDR StartTime 2025-03-12 06:37:07 - End Time 2025-03-12 09:37:07 [2025-03-12 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663298', 'tblTempUsageDetail_20' ) start [2025-03-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663298', 'tblTempUsageDetail_20' ) end [2025-03-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663298', 'tblTempVendorCDR_20' ) start [2025-03-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663298', 'tblTempVendorCDR_20' ) end [2025-03-12 09:37:20] Production.INFO: ProcessCDR(1,14663298,1,1,2) [2025-03-12 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663298', 'tblTempUsageDetail_20' ) start [2025-03-12 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663298', 'tblTempUsageDetail_20' ) end [2025-03-12 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:37:26] Production.INFO: ==4186== Releasing lock... [2025-03-12 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:37:26] Production.INFO: 43 MB #Memory Used# [2025-03-12 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:38:06 [end_date_ymd] => 2025-03-12 09:38:06 [RateCDR] => 1 ) [2025-03-12 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:38:06' and `end` < '2025-03-12 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:38:18] Production.INFO: count ==2011 [2025-03-12 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:38:06 - End Time 2025-03-12 09:38:06 [2025-03-12 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663303', 'tblTempUsageDetail_20' ) start [2025-03-12 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663303', 'tblTempUsageDetail_20' ) end [2025-03-12 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663303', 'tblTempVendorCDR_20' ) start [2025-03-12 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663303', 'tblTempVendorCDR_20' ) end [2025-03-12 09:38:19] Production.INFO: ProcessCDR(1,14663303,1,1,2) [2025-03-12 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663303', 'tblTempUsageDetail_20' ) start [2025-03-12 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663303', 'tblTempUsageDetail_20' ) end [2025-03-12 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:38:24] Production.INFO: ==4258== Releasing lock... [2025-03-12 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:38:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:39:05 [end_date_ymd] => 2025-03-12 09:39:05 [RateCDR] => 1 ) [2025-03-12 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:39:05' and `end` < '2025-03-12 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:39:18] Production.INFO: count ==2024 [2025-03-12 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:39:05 - End Time 2025-03-12 09:39:05 [2025-03-12 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663308', 'tblTempUsageDetail_20' ) start [2025-03-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663308', 'tblTempUsageDetail_20' ) end [2025-03-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663308', 'tblTempVendorCDR_20' ) start [2025-03-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663308', 'tblTempVendorCDR_20' ) end [2025-03-12 09:39:19] Production.INFO: ProcessCDR(1,14663308,1,1,2) [2025-03-12 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663308', 'tblTempUsageDetail_20' ) start [2025-03-12 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663308', 'tblTempUsageDetail_20' ) end [2025-03-12 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:39:24] Production.INFO: ==4330== Releasing lock... [2025-03-12 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:39:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:40:06 [end_date_ymd] => 2025-03-12 09:40:06 [RateCDR] => 1 ) [2025-03-12 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:40:06' and `end` < '2025-03-12 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:40:18] Production.INFO: count ==2046 [2025-03-12 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:40:06 - End Time 2025-03-12 09:40:06 [2025-03-12 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663314', 'tblTempUsageDetail_20' ) start [2025-03-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663314', 'tblTempUsageDetail_20' ) end [2025-03-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663314', 'tblTempVendorCDR_20' ) start [2025-03-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663314', 'tblTempVendorCDR_20' ) end [2025-03-12 09:40:19] Production.INFO: ProcessCDR(1,14663314,1,1,2) [2025-03-12 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663314', 'tblTempUsageDetail_20' ) start [2025-03-12 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663314', 'tblTempUsageDetail_20' ) end [2025-03-12 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:40:25] Production.INFO: ==4405== Releasing lock... [2025-03-12 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:40:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-12 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:41:06 [end_date_ymd] => 2025-03-12 09:41:06 [RateCDR] => 1 ) [2025-03-12 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:41:06' and `end` < '2025-03-12 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:41:18] Production.INFO: count ==2166 [2025-03-12 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:41:06 - End Time 2025-03-12 09:41:06 [2025-03-12 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663319', 'tblTempUsageDetail_20' ) start [2025-03-12 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663319', 'tblTempUsageDetail_20' ) end [2025-03-12 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663319', 'tblTempVendorCDR_20' ) start [2025-03-12 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663319', 'tblTempVendorCDR_20' ) end [2025-03-12 09:41:19] Production.INFO: ProcessCDR(1,14663319,1,1,2) [2025-03-12 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663319', 'tblTempUsageDetail_20' ) start [2025-03-12 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663319', 'tblTempUsageDetail_20' ) end [2025-03-12 09:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:41:25] Production.INFO: ==4485== Releasing lock... [2025-03-12 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:41:25] Production.INFO: 44 MB #Memory Used# [2025-03-12 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:42:06 [end_date_ymd] => 2025-03-12 09:42:06 [RateCDR] => 1 ) [2025-03-12 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:42:06' and `end` < '2025-03-12 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:42:18] Production.INFO: count ==2187 [2025-03-12 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:42:06 - End Time 2025-03-12 09:42:06 [2025-03-12 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663324', 'tblTempUsageDetail_20' ) start [2025-03-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663324', 'tblTempUsageDetail_20' ) end [2025-03-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663324', 'tblTempVendorCDR_20' ) start [2025-03-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663324', 'tblTempVendorCDR_20' ) end [2025-03-12 09:42:19] Production.INFO: ProcessCDR(1,14663324,1,1,2) [2025-03-12 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663324', 'tblTempUsageDetail_20' ) start [2025-03-12 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663324', 'tblTempUsageDetail_20' ) end [2025-03-12 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:42:25] Production.INFO: ==4556== Releasing lock... [2025-03-12 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:42:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-12 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:43:05 [end_date_ymd] => 2025-03-12 09:43:05 [RateCDR] => 1 ) [2025-03-12 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:43:05' and `end` < '2025-03-12 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:43:18] Production.INFO: count ==2208 [2025-03-12 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:43:05 - End Time 2025-03-12 09:43:05 [2025-03-12 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663329', 'tblTempUsageDetail_20' ) start [2025-03-12 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663329', 'tblTempUsageDetail_20' ) end [2025-03-12 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663329', 'tblTempVendorCDR_20' ) start [2025-03-12 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663329', 'tblTempVendorCDR_20' ) end [2025-03-12 09:43:19] Production.INFO: ProcessCDR(1,14663329,1,1,2) [2025-03-12 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663329', 'tblTempUsageDetail_20' ) start [2025-03-12 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663329', 'tblTempUsageDetail_20' ) end [2025-03-12 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:43:25] Production.INFO: ==4675== Releasing lock... [2025-03-12 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:43:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-12 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:44:05 [end_date_ymd] => 2025-03-12 09:44:05 [RateCDR] => 1 ) [2025-03-12 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:44:05' and `end` < '2025-03-12 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:44:18] Production.INFO: count ==2223 [2025-03-12 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:44:05 - End Time 2025-03-12 09:44:05 [2025-03-12 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663334', 'tblTempUsageDetail_20' ) start [2025-03-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663334', 'tblTempUsageDetail_20' ) end [2025-03-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663334', 'tblTempVendorCDR_20' ) start [2025-03-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663334', 'tblTempVendorCDR_20' ) end [2025-03-12 09:44:19] Production.INFO: ProcessCDR(1,14663334,1,1,2) [2025-03-12 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663334', 'tblTempUsageDetail_20' ) start [2025-03-12 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663334', 'tblTempUsageDetail_20' ) end [2025-03-12 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:44:25] Production.INFO: ==4752== Releasing lock... [2025-03-12 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:44:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-12 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:45:05 [end_date_ymd] => 2025-03-12 09:45:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 06:45:05' and `end` < '2025-03-12 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:45:18] Production.INFO: count ==2237 [2025-03-12 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:45:05 - End Time 2025-03-12 09:45:05 [2025-03-12 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663339', 'tblTempUsageDetail_20' ) start [2025-03-12 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663339', 'tblTempUsageDetail_20' ) end [2025-03-12 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663339', 'tblTempVendorCDR_20' ) start [2025-03-12 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663339', 'tblTempVendorCDR_20' ) end [2025-03-12 09:45:19] Production.INFO: ProcessCDR(1,14663339,1,1,2) [2025-03-12 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663339', 'tblTempUsageDetail_20' ) start [2025-03-12 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663339', 'tblTempUsageDetail_20' ) end [2025-03-12 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:45:24] Production.INFO: ==4830== Releasing lock... [2025-03-12 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:45:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-12 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:46:05 [end_date_ymd] => 2025-03-12 09:46:05 [RateCDR] => 1 ) [2025-03-12 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:46:05' and `end` < '2025-03-12 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:46:18] Production.INFO: count ==2274 [2025-03-12 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:46:05 - End Time 2025-03-12 09:46:05 [2025-03-12 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663344', 'tblTempUsageDetail_20' ) start [2025-03-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663344', 'tblTempUsageDetail_20' ) end [2025-03-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663344', 'tblTempVendorCDR_20' ) start [2025-03-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663344', 'tblTempVendorCDR_20' ) end [2025-03-12 09:46:19] Production.INFO: ProcessCDR(1,14663344,1,1,2) [2025-03-12 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663344', 'tblTempUsageDetail_20' ) start [2025-03-12 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663344', 'tblTempUsageDetail_20' ) end [2025-03-12 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:46:24] Production.INFO: ==4902== Releasing lock... [2025-03-12 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:47:05 [end_date_ymd] => 2025-03-12 09:47:05 [RateCDR] => 1 ) [2025-03-12 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:47:05' and `end` < '2025-03-12 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:47:18] Production.INFO: count ==2298 [2025-03-12 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:47:05 - End Time 2025-03-12 09:47:05 [2025-03-12 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663349', 'tblTempUsageDetail_20' ) start [2025-03-12 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663349', 'tblTempUsageDetail_20' ) end [2025-03-12 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663349', 'tblTempVendorCDR_20' ) start [2025-03-12 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663349', 'tblTempVendorCDR_20' ) end [2025-03-12 09:47:19] Production.INFO: ProcessCDR(1,14663349,1,1,2) [2025-03-12 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663349', 'tblTempUsageDetail_20' ) start [2025-03-12 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663349', 'tblTempUsageDetail_20' ) end [2025-03-12 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:47:23] Production.INFO: ==4977== Releasing lock... [2025-03-12 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:47:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:48:05 [end_date_ymd] => 2025-03-12 09:48:05 [RateCDR] => 1 ) [2025-03-12 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:48:05' and `end` < '2025-03-12 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:48:18] Production.INFO: count ==2323 [2025-03-12 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:48:05 - End Time 2025-03-12 09:48:05 [2025-03-12 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663354', 'tblTempUsageDetail_20' ) start [2025-03-12 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663354', 'tblTempUsageDetail_20' ) end [2025-03-12 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663354', 'tblTempVendorCDR_20' ) start [2025-03-12 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663354', 'tblTempVendorCDR_20' ) end [2025-03-12 09:48:19] Production.INFO: ProcessCDR(1,14663354,1,1,2) [2025-03-12 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663354', 'tblTempUsageDetail_20' ) start [2025-03-12 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663354', 'tblTempUsageDetail_20' ) end [2025-03-12 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:48:25] Production.INFO: ==5051== Releasing lock... [2025-03-12 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:48:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-12 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:49:06 [end_date_ymd] => 2025-03-12 09:49:06 [RateCDR] => 1 ) [2025-03-12 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:49:06' and `end` < '2025-03-12 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:49:19] Production.INFO: count ==2403 [2025-03-12 09:49:20] Production.ERROR: pbx CDR StartTime 2025-03-12 06:49:06 - End Time 2025-03-12 09:49:06 [2025-03-12 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663359', 'tblTempUsageDetail_20' ) start [2025-03-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663359', 'tblTempUsageDetail_20' ) end [2025-03-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663359', 'tblTempVendorCDR_20' ) start [2025-03-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663359', 'tblTempVendorCDR_20' ) end [2025-03-12 09:49:20] Production.INFO: ProcessCDR(1,14663359,1,1,2) [2025-03-12 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663359', 'tblTempUsageDetail_20' ) start [2025-03-12 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663359', 'tblTempUsageDetail_20' ) end [2025-03-12 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:49:25] Production.INFO: ==5125== Releasing lock... [2025-03-12 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:49:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:50:06 [end_date_ymd] => 2025-03-12 09:50:06 [RateCDR] => 1 ) [2025-03-12 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:50:06' and `end` < '2025-03-12 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:50:19] Production.INFO: count ==2424 [2025-03-12 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-12 06:50:06 - End Time 2025-03-12 09:50:06 [2025-03-12 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663365', 'tblTempUsageDetail_20' ) start [2025-03-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663365', 'tblTempUsageDetail_20' ) end [2025-03-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663365', 'tblTempVendorCDR_20' ) start [2025-03-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663365', 'tblTempVendorCDR_20' ) end [2025-03-12 09:50:20] Production.INFO: ProcessCDR(1,14663365,1,1,2) [2025-03-12 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663365', 'tblTempUsageDetail_20' ) start [2025-03-12 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663365', 'tblTempUsageDetail_20' ) end [2025-03-12 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:50:23] Production.INFO: ==5199== Releasing lock... [2025-03-12 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:50:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-12 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:51:06 [end_date_ymd] => 2025-03-12 09:51:06 [RateCDR] => 1 ) [2025-03-12 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:51:06' and `end` < '2025-03-12 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:51:18] Production.INFO: count ==2538 [2025-03-12 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:51:06 - End Time 2025-03-12 09:51:06 [2025-03-12 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663370', 'tblTempUsageDetail_20' ) start [2025-03-12 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663370', 'tblTempUsageDetail_20' ) end [2025-03-12 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663370', 'tblTempVendorCDR_20' ) start [2025-03-12 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663370', 'tblTempVendorCDR_20' ) end [2025-03-12 09:51:19] Production.INFO: ProcessCDR(1,14663370,1,1,2) [2025-03-12 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663370', 'tblTempUsageDetail_20' ) start [2025-03-12 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663370', 'tblTempUsageDetail_20' ) end [2025-03-12 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:51:24] Production.INFO: ==5271== Releasing lock... [2025-03-12 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:51:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-12 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:52:05 [end_date_ymd] => 2025-03-12 09:52:05 [RateCDR] => 1 ) [2025-03-12 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:52:05' and `end` < '2025-03-12 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:52:18] Production.INFO: count ==2568 [2025-03-12 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:52:05 - End Time 2025-03-12 09:52:05 [2025-03-12 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663375', 'tblTempUsageDetail_20' ) start [2025-03-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663375', 'tblTempUsageDetail_20' ) end [2025-03-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663375', 'tblTempVendorCDR_20' ) start [2025-03-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663375', 'tblTempVendorCDR_20' ) end [2025-03-12 09:52:19] Production.INFO: ProcessCDR(1,14663375,1,1,2) [2025-03-12 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663375', 'tblTempUsageDetail_20' ) start [2025-03-12 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663375', 'tblTempUsageDetail_20' ) end [2025-03-12 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:52:24] Production.INFO: ==5345== Releasing lock... [2025-03-12 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:52:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-12 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:53:06 [end_date_ymd] => 2025-03-12 09:53:06 [RateCDR] => 1 ) [2025-03-12 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:53:06' and `end` < '2025-03-12 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:53:18] Production.INFO: count ==2599 [2025-03-12 09:53:20] Production.ERROR: pbx CDR StartTime 2025-03-12 06:53:06 - End Time 2025-03-12 09:53:06 [2025-03-12 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663380', 'tblTempUsageDetail_20' ) start [2025-03-12 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663380', 'tblTempUsageDetail_20' ) end [2025-03-12 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663380', 'tblTempVendorCDR_20' ) start [2025-03-12 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663380', 'tblTempVendorCDR_20' ) end [2025-03-12 09:53:20] Production.INFO: ProcessCDR(1,14663380,1,1,2) [2025-03-12 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663380', 'tblTempUsageDetail_20' ) start [2025-03-12 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663380', 'tblTempUsageDetail_20' ) end [2025-03-12 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:53:25] Production.INFO: ==5424== Releasing lock... [2025-03-12 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:53:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-12 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:54:05 [end_date_ymd] => 2025-03-12 09:54:05 [RateCDR] => 1 ) [2025-03-12 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:54:05' and `end` < '2025-03-12 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:54:18] Production.INFO: count ==2618 [2025-03-12 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:54:05 - End Time 2025-03-12 09:54:05 [2025-03-12 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663385', 'tblTempUsageDetail_20' ) start [2025-03-12 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663385', 'tblTempUsageDetail_20' ) end [2025-03-12 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663385', 'tblTempVendorCDR_20' ) start [2025-03-12 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663385', 'tblTempVendorCDR_20' ) end [2025-03-12 09:54:19] Production.INFO: ProcessCDR(1,14663385,1,1,2) [2025-03-12 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663385', 'tblTempUsageDetail_20' ) start [2025-03-12 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663385', 'tblTempUsageDetail_20' ) end [2025-03-12 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:54:24] Production.INFO: ==5494== Releasing lock... [2025-03-12 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:54:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-12 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:55:06 [end_date_ymd] => 2025-03-12 09:55:06 [RateCDR] => 1 ) [2025-03-12 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:55:06' and `end` < '2025-03-12 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:55:18] Production.INFO: count ==2637 [2025-03-12 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:55:06 - End Time 2025-03-12 09:55:06 [2025-03-12 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663390', 'tblTempUsageDetail_20' ) start [2025-03-12 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663390', 'tblTempUsageDetail_20' ) end [2025-03-12 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663390', 'tblTempVendorCDR_20' ) start [2025-03-12 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663390', 'tblTempVendorCDR_20' ) end [2025-03-12 09:55:20] Production.INFO: ProcessCDR(1,14663390,1,1,2) [2025-03-12 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663390', 'tblTempUsageDetail_20' ) start [2025-03-12 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663390', 'tblTempUsageDetail_20' ) end [2025-03-12 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:55:25] Production.INFO: ==5563== Releasing lock... [2025-03-12 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:55:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-12 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:56:05 [end_date_ymd] => 2025-03-12 09:56:05 [RateCDR] => 1 ) [2025-03-12 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:56:05' and `end` < '2025-03-12 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:56:18] Production.INFO: count ==2717 [2025-03-12 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:56:05 - End Time 2025-03-12 09:56:05 [2025-03-12 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663395', 'tblTempUsageDetail_20' ) start [2025-03-12 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663395', 'tblTempUsageDetail_20' ) end [2025-03-12 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663395', 'tblTempVendorCDR_20' ) start [2025-03-12 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663395', 'tblTempVendorCDR_20' ) end [2025-03-12 09:56:19] Production.INFO: ProcessCDR(1,14663395,1,1,2) [2025-03-12 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663395', 'tblTempUsageDetail_20' ) start [2025-03-12 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663395', 'tblTempUsageDetail_20' ) end [2025-03-12 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:56:25] Production.INFO: ==5636== Releasing lock... [2025-03-12 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:56:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-12 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:57:06 [end_date_ymd] => 2025-03-12 09:57:06 [RateCDR] => 1 ) [2025-03-12 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:57:06' and `end` < '2025-03-12 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:57:19] Production.INFO: count ==2732 [2025-03-12 09:57:20] Production.ERROR: pbx CDR StartTime 2025-03-12 06:57:06 - End Time 2025-03-12 09:57:06 [2025-03-12 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663400', 'tblTempUsageDetail_20' ) start [2025-03-12 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663400', 'tblTempUsageDetail_20' ) end [2025-03-12 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663400', 'tblTempVendorCDR_20' ) start [2025-03-12 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663400', 'tblTempVendorCDR_20' ) end [2025-03-12 09:57:20] Production.INFO: ProcessCDR(1,14663400,1,1,2) [2025-03-12 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663400', 'tblTempUsageDetail_20' ) start [2025-03-12 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663400', 'tblTempUsageDetail_20' ) end [2025-03-12 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:57:26] Production.INFO: ==5707== Releasing lock... [2025-03-12 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:57:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-12 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:58:05 [end_date_ymd] => 2025-03-12 09:58:05 [RateCDR] => 1 ) [2025-03-12 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:58:05' and `end` < '2025-03-12 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:58:18] Production.INFO: count ==2753 [2025-03-12 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:58:05 - End Time 2025-03-12 09:58:05 [2025-03-12 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663405', 'tblTempUsageDetail_20' ) start [2025-03-12 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663405', 'tblTempUsageDetail_20' ) end [2025-03-12 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663405', 'tblTempVendorCDR_20' ) start [2025-03-12 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663405', 'tblTempVendorCDR_20' ) end [2025-03-12 09:58:19] Production.INFO: ProcessCDR(1,14663405,1,1,2) [2025-03-12 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663405', 'tblTempUsageDetail_20' ) start [2025-03-12 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663405', 'tblTempUsageDetail_20' ) end [2025-03-12 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:58:24] Production.INFO: ==5819== Releasing lock... [2025-03-12 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:58:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-12 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 06:59:05 [end_date_ymd] => 2025-03-12 09:59:05 [RateCDR] => 1 ) [2025-03-12 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 06:59:05' and `end` < '2025-03-12 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 09:59:18] Production.INFO: count ==2775 [2025-03-12 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-12 06:59:05 - End Time 2025-03-12 09:59:05 [2025-03-12 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663410', 'tblTempUsageDetail_20' ) start [2025-03-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663410', 'tblTempUsageDetail_20' ) end [2025-03-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663410', 'tblTempVendorCDR_20' ) start [2025-03-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663410', 'tblTempVendorCDR_20' ) end [2025-03-12 09:59:19] Production.INFO: ProcessCDR(1,14663410,1,1,2) [2025-03-12 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663410', 'tblTempUsageDetail_20' ) start [2025-03-12 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663410', 'tblTempUsageDetail_20' ) end [2025-03-12 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 09:59:25] Production.INFO: ==5893== Releasing lock... [2025-03-12 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 09:59:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-12 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:00:06 [end_date_ymd] => 2025-03-12 10:00:06 [RateCDR] => 1 ) [2025-03-12 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:00:06' and `end` < '2025-03-12 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:00:19] Production.INFO: count ==2823 [2025-03-12 10:00:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:00:06 - End Time 2025-03-12 10:00:06 [2025-03-12 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663416', 'tblTempUsageDetail_20' ) start [2025-03-12 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663416', 'tblTempUsageDetail_20' ) end [2025-03-12 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663416', 'tblTempVendorCDR_20' ) start [2025-03-12 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663416', 'tblTempVendorCDR_20' ) end [2025-03-12 10:00:21] Production.INFO: ProcessCDR(1,14663416,1,1,2) [2025-03-12 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663416', 'tblTempUsageDetail_20' ) start [2025-03-12 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663416', 'tblTempUsageDetail_20' ) end [2025-03-12 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:00:27] Production.INFO: ==5968== Releasing lock... [2025-03-12 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:00:27] Production.INFO: 49.25 MB #Memory Used# [2025-03-12 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:01:06 [end_date_ymd] => 2025-03-12 10:01:06 [RateCDR] => 1 ) [2025-03-12 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:01:06' and `end` < '2025-03-12 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:01:19] Production.INFO: count ==3023 [2025-03-12 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:01:06 - End Time 2025-03-12 10:01:06 [2025-03-12 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663421', 'tblTempUsageDetail_20' ) start [2025-03-12 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663421', 'tblTempUsageDetail_20' ) end [2025-03-12 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663421', 'tblTempVendorCDR_20' ) start [2025-03-12 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663421', 'tblTempVendorCDR_20' ) end [2025-03-12 10:01:20] Production.INFO: ProcessCDR(1,14663421,1,1,2) [2025-03-12 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663421', 'tblTempUsageDetail_20' ) start [2025-03-12 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663421', 'tblTempUsageDetail_20' ) end [2025-03-12 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:01:27] Production.INFO: ==6054== Releasing lock... [2025-03-12 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:01:27] Production.INFO: 51 MB #Memory Used# [2025-03-12 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:02:06 [end_date_ymd] => 2025-03-12 10:02:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:02:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:02:19] Production.INFO: count ==3085 [2025-03-12 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:02:06 - End Time 2025-03-12 10:02:06 [2025-03-12 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663426', 'tblTempUsageDetail_20' ) start [2025-03-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663426', 'tblTempUsageDetail_20' ) end [2025-03-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663426', 'tblTempVendorCDR_20' ) start [2025-03-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663426', 'tblTempVendorCDR_20' ) end [2025-03-12 10:02:20] Production.INFO: ProcessCDR(1,14663426,1,1,2) [2025-03-12 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663426', 'tblTempUsageDetail_20' ) start [2025-03-12 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663426', 'tblTempUsageDetail_20' ) end [2025-03-12 10:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:02:27] Production.INFO: ==6124== Releasing lock... [2025-03-12 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:02:27] Production.INFO: 51.25 MB #Memory Used# [2025-03-12 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:03:05 [end_date_ymd] => 2025-03-12 10:03:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:03:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:03:18] Production.INFO: count ==3143 [2025-03-12 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-12 07:03:05 - End Time 2025-03-12 10:03:05 [2025-03-12 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663431', 'tblTempUsageDetail_20' ) start [2025-03-12 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663431', 'tblTempUsageDetail_20' ) end [2025-03-12 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663431', 'tblTempVendorCDR_20' ) start [2025-03-12 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663431', 'tblTempVendorCDR_20' ) end [2025-03-12 10:03:19] Production.INFO: ProcessCDR(1,14663431,1,1,2) [2025-03-12 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663431', 'tblTempUsageDetail_20' ) start [2025-03-12 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663431', 'tblTempUsageDetail_20' ) end [2025-03-12 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:03:25] Production.INFO: ==6199== Releasing lock... [2025-03-12 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:03:25] Production.INFO: 53 MB #Memory Used# [2025-03-12 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:04:06 [end_date_ymd] => 2025-03-12 10:04:06 [RateCDR] => 1 ) [2025-03-12 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:04:06' and `end` < '2025-03-12 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:04:19] Production.INFO: count ==3203 [2025-03-12 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:04:06 - End Time 2025-03-12 10:04:06 [2025-03-12 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663436', 'tblTempUsageDetail_20' ) start [2025-03-12 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663436', 'tblTempUsageDetail_20' ) end [2025-03-12 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663436', 'tblTempVendorCDR_20' ) start [2025-03-12 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663436', 'tblTempVendorCDR_20' ) end [2025-03-12 10:04:20] Production.INFO: ProcessCDR(1,14663436,1,1,2) [2025-03-12 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663436', 'tblTempUsageDetail_20' ) start [2025-03-12 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663436', 'tblTempUsageDetail_20' ) end [2025-03-12 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:04:25] Production.INFO: ==6273== Releasing lock... [2025-03-12 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:04:25] Production.INFO: 53 MB #Memory Used# [2025-03-12 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:05:05 [end_date_ymd] => 2025-03-12 10:05:05 [RateCDR] => 1 ) [2025-03-12 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:05:05' and `end` < '2025-03-12 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:05:18] Production.INFO: count ==3248 [2025-03-12 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-12 07:05:05 - End Time 2025-03-12 10:05:05 [2025-03-12 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663441', 'tblTempUsageDetail_20' ) start [2025-03-12 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663441', 'tblTempUsageDetail_20' ) end [2025-03-12 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663441', 'tblTempVendorCDR_20' ) start [2025-03-12 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663441', 'tblTempVendorCDR_20' ) end [2025-03-12 10:05:20] Production.INFO: ProcessCDR(1,14663441,1,1,2) [2025-03-12 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663441', 'tblTempUsageDetail_20' ) start [2025-03-12 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663441', 'tblTempUsageDetail_20' ) end [2025-03-12 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:05:24] Production.INFO: ==6343== Releasing lock... [2025-03-12 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:05:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-12 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:06:06 [end_date_ymd] => 2025-03-12 10:06:06 [RateCDR] => 1 ) [2025-03-12 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:06:06' and `end` < '2025-03-12 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:06:19] Production.INFO: count ==3298 [2025-03-12 10:06:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:06:06 - End Time 2025-03-12 10:06:06 [2025-03-12 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663446', 'tblTempUsageDetail_20' ) start [2025-03-12 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663446', 'tblTempUsageDetail_20' ) end [2025-03-12 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663446', 'tblTempVendorCDR_20' ) start [2025-03-12 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663446', 'tblTempVendorCDR_20' ) end [2025-03-12 10:06:21] Production.INFO: ProcessCDR(1,14663446,1,1,2) [2025-03-12 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663446', 'tblTempUsageDetail_20' ) start [2025-03-12 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663446', 'tblTempUsageDetail_20' ) end [2025-03-12 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:06:27] Production.INFO: ==6416== Releasing lock... [2025-03-12 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:06:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-12 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:07:05 [end_date_ymd] => 2025-03-12 10:07:05 [RateCDR] => 1 ) [2025-03-12 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:07:05' and `end` < '2025-03-12 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:07:18] Production.INFO: count ==3309 [2025-03-12 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:07:05 - End Time 2025-03-12 10:07:05 [2025-03-12 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663451', 'tblTempUsageDetail_20' ) start [2025-03-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663451', 'tblTempUsageDetail_20' ) end [2025-03-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663451', 'tblTempVendorCDR_20' ) start [2025-03-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663451', 'tblTempVendorCDR_20' ) end [2025-03-12 10:07:20] Production.INFO: ProcessCDR(1,14663451,1,1,2) [2025-03-12 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663451', 'tblTempUsageDetail_20' ) start [2025-03-12 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663451', 'tblTempUsageDetail_20' ) end [2025-03-12 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:07:25] Production.INFO: ==6490== Releasing lock... [2025-03-12 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:07:25] Production.INFO: 54 MB #Memory Used# [2025-03-12 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:08:06 [end_date_ymd] => 2025-03-12 10:08:06 [RateCDR] => 1 ) [2025-03-12 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:08:06' and `end` < '2025-03-12 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:08:19] Production.INFO: count ==3366 [2025-03-12 10:08:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:08:06 - End Time 2025-03-12 10:08:06 [2025-03-12 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663456', 'tblTempUsageDetail_20' ) start [2025-03-12 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663456', 'tblTempUsageDetail_20' ) end [2025-03-12 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663456', 'tblTempVendorCDR_20' ) start [2025-03-12 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663456', 'tblTempVendorCDR_20' ) end [2025-03-12 10:08:20] Production.INFO: ProcessCDR(1,14663456,1,1,2) [2025-03-12 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663456', 'tblTempUsageDetail_20' ) start [2025-03-12 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663456', 'tblTempUsageDetail_20' ) end [2025-03-12 10:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:08:27] Production.INFO: ==6561== Releasing lock... [2025-03-12 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:08:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-12 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:09:05 [end_date_ymd] => 2025-03-12 10:09:05 [RateCDR] => 1 ) [2025-03-12 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:09:05' and `end` < '2025-03-12 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:09:18] Production.INFO: count ==3409 [2025-03-12 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-12 07:09:05 - End Time 2025-03-12 10:09:05 [2025-03-12 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663461', 'tblTempUsageDetail_20' ) start [2025-03-12 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663461', 'tblTempUsageDetail_20' ) end [2025-03-12 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663461', 'tblTempVendorCDR_20' ) start [2025-03-12 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663461', 'tblTempVendorCDR_20' ) end [2025-03-12 10:09:19] Production.INFO: ProcessCDR(1,14663461,1,1,2) [2025-03-12 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663461', 'tblTempUsageDetail_20' ) start [2025-03-12 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663461', 'tblTempUsageDetail_20' ) end [2025-03-12 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:09:25] Production.INFO: ==6633== Releasing lock... [2025-03-12 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:09:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-12 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:10:06 [end_date_ymd] => 2025-03-12 10:10:06 [RateCDR] => 1 ) [2025-03-12 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:10:06' and `end` < '2025-03-12 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:10:19] Production.INFO: count ==3423 [2025-03-12 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:10:06 - End Time 2025-03-12 10:10:06 [2025-03-12 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663467', 'tblTempUsageDetail_20' ) start [2025-03-12 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663467', 'tblTempUsageDetail_20' ) end [2025-03-12 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663467', 'tblTempVendorCDR_20' ) start [2025-03-12 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663467', 'tblTempVendorCDR_20' ) end [2025-03-12 10:10:21] Production.INFO: ProcessCDR(1,14663467,1,1,2) [2025-03-12 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663467', 'tblTempUsageDetail_20' ) start [2025-03-12 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663467', 'tblTempUsageDetail_20' ) end [2025-03-12 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:10:26] Production.INFO: ==6708== Releasing lock... [2025-03-12 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:10:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-12 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:11:05 [end_date_ymd] => 2025-03-12 10:11:05 [RateCDR] => 1 ) [2025-03-12 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:11:05' and `end` < '2025-03-12 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:11:17] Production.INFO: count ==3553 [2025-03-12 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-12 07:11:05 - End Time 2025-03-12 10:11:05 [2025-03-12 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663472', 'tblTempUsageDetail_20' ) start [2025-03-12 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663472', 'tblTempUsageDetail_20' ) end [2025-03-12 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663472', 'tblTempVendorCDR_20' ) start [2025-03-12 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663472', 'tblTempVendorCDR_20' ) end [2025-03-12 10:11:19] Production.INFO: ProcessCDR(1,14663472,1,1,2) [2025-03-12 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663472', 'tblTempUsageDetail_20' ) start [2025-03-12 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663472', 'tblTempUsageDetail_20' ) end [2025-03-12 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:11:25] Production.INFO: ==6783== Releasing lock... [2025-03-12 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:11:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-12 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:12:05 [end_date_ymd] => 2025-03-12 10:12:05 [RateCDR] => 1 ) [2025-03-12 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:12:05' and `end` < '2025-03-12 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:12:18] Production.INFO: count ==3679 [2025-03-12 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:12:05 - End Time 2025-03-12 10:12:05 [2025-03-12 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663477', 'tblTempUsageDetail_20' ) start [2025-03-12 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663477', 'tblTempUsageDetail_20' ) end [2025-03-12 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663477', 'tblTempVendorCDR_20' ) start [2025-03-12 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663477', 'tblTempVendorCDR_20' ) end [2025-03-12 10:12:20] Production.INFO: ProcessCDR(1,14663477,1,1,2) [2025-03-12 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663477', 'tblTempUsageDetail_20' ) start [2025-03-12 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663477', 'tblTempUsageDetail_20' ) end [2025-03-12 10:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:12:27] Production.INFO: ==6856== Releasing lock... [2025-03-12 10:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:12:27] Production.INFO: 56 MB #Memory Used# [2025-03-12 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:13:05 [end_date_ymd] => 2025-03-12 10:13:05 [RateCDR] => 1 ) [2025-03-12 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:13:05' and `end` < '2025-03-12 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:13:18] Production.INFO: count ==3698 [2025-03-12 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:13:05 - End Time 2025-03-12 10:13:05 [2025-03-12 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663482', 'tblTempUsageDetail_20' ) start [2025-03-12 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663482', 'tblTempUsageDetail_20' ) end [2025-03-12 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663482', 'tblTempVendorCDR_20' ) start [2025-03-12 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663482', 'tblTempVendorCDR_20' ) end [2025-03-12 10:13:20] Production.INFO: ProcessCDR(1,14663482,1,1,2) [2025-03-12 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663482', 'tblTempUsageDetail_20' ) start [2025-03-12 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663482', 'tblTempUsageDetail_20' ) end [2025-03-12 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:13:27] Production.INFO: ==6926== Releasing lock... [2025-03-12 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:13:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-12 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:14:06 [end_date_ymd] => 2025-03-12 10:14:06 [RateCDR] => 1 ) [2025-03-12 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:14:06' and `end` < '2025-03-12 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:14:18] Production.INFO: count ==3742 [2025-03-12 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:14:06 - End Time 2025-03-12 10:14:06 [2025-03-12 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663487', 'tblTempUsageDetail_20' ) start [2025-03-12 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663487', 'tblTempUsageDetail_20' ) end [2025-03-12 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663487', 'tblTempVendorCDR_20' ) start [2025-03-12 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663487', 'tblTempVendorCDR_20' ) end [2025-03-12 10:14:20] Production.INFO: ProcessCDR(1,14663487,1,1,2) [2025-03-12 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663487', 'tblTempUsageDetail_20' ) start [2025-03-12 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663487', 'tblTempUsageDetail_20' ) end [2025-03-12 10:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:14:27] Production.INFO: ==7036== Releasing lock... [2025-03-12 10:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:14:27] Production.INFO: 56 MB #Memory Used# [2025-03-12 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:15:05 [end_date_ymd] => 2025-03-12 10:15:05 [RateCDR] => 1 ) [2025-03-12 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:15:05' and `end` < '2025-03-12 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:15:18] Production.INFO: count ==3761 [2025-03-12 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:15:05 - End Time 2025-03-12 10:15:05 [2025-03-12 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663492', 'tblTempUsageDetail_20' ) start [2025-03-12 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663492', 'tblTempUsageDetail_20' ) end [2025-03-12 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663492', 'tblTempVendorCDR_20' ) start [2025-03-12 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663492', 'tblTempVendorCDR_20' ) end [2025-03-12 10:15:20] Production.INFO: ProcessCDR(1,14663492,1,1,2) [2025-03-12 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663492', 'tblTempUsageDetail_20' ) start [2025-03-12 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663492', 'tblTempUsageDetail_20' ) end [2025-03-12 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:15:25] Production.INFO: ==7107== Releasing lock... [2025-03-12 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:15:25] Production.INFO: 56 MB #Memory Used# [2025-03-12 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:16:06 [end_date_ymd] => 2025-03-12 10:16:06 [RateCDR] => 1 ) [2025-03-12 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:16:06' and `end` < '2025-03-12 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:16:18] Production.INFO: count ==3781 [2025-03-12 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:16:06 - End Time 2025-03-12 10:16:06 [2025-03-12 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663497', 'tblTempUsageDetail_20' ) start [2025-03-12 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663497', 'tblTempUsageDetail_20' ) end [2025-03-12 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663497', 'tblTempVendorCDR_20' ) start [2025-03-12 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663497', 'tblTempVendorCDR_20' ) end [2025-03-12 10:16:21] Production.INFO: ProcessCDR(1,14663497,1,1,2) [2025-03-12 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663497', 'tblTempUsageDetail_20' ) start [2025-03-12 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663497', 'tblTempUsageDetail_20' ) end [2025-03-12 10:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:16:27] Production.INFO: ==7179== Releasing lock... [2025-03-12 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:16:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-12 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:17:05 [end_date_ymd] => 2025-03-12 10:17:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:17:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:17:18] Production.INFO: count ==3802 [2025-03-12 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:17:05 - End Time 2025-03-12 10:17:05 [2025-03-12 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663502', 'tblTempUsageDetail_20' ) start [2025-03-12 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663502', 'tblTempUsageDetail_20' ) end [2025-03-12 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663502', 'tblTempVendorCDR_20' ) start [2025-03-12 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663502', 'tblTempVendorCDR_20' ) end [2025-03-12 10:17:20] Production.INFO: ProcessCDR(1,14663502,1,1,2) [2025-03-12 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663502', 'tblTempUsageDetail_20' ) start [2025-03-12 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663502', 'tblTempUsageDetail_20' ) end [2025-03-12 10:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:17:27] Production.INFO: ==7250== Releasing lock... [2025-03-12 10:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:17:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-12 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:18:05 [end_date_ymd] => 2025-03-12 10:18:05 [RateCDR] => 1 ) [2025-03-12 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:18:05' and `end` < '2025-03-12 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:18:18] Production.INFO: count ==3837 [2025-03-12 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:18:05 - End Time 2025-03-12 10:18:05 [2025-03-12 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663507', 'tblTempUsageDetail_20' ) start [2025-03-12 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663507', 'tblTempUsageDetail_20' ) end [2025-03-12 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663507', 'tblTempVendorCDR_20' ) start [2025-03-12 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663507', 'tblTempVendorCDR_20' ) end [2025-03-12 10:18:20] Production.INFO: ProcessCDR(1,14663507,1,1,2) [2025-03-12 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663507', 'tblTempUsageDetail_20' ) start [2025-03-12 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663507', 'tblTempUsageDetail_20' ) end [2025-03-12 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:18:26] Production.INFO: ==7338== Releasing lock... [2025-03-12 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:18:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-12 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:19:05 [end_date_ymd] => 2025-03-12 10:19:05 [RateCDR] => 1 ) [2025-03-12 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:19:05' and `end` < '2025-03-12 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:19:18] Production.INFO: count ==3852 [2025-03-12 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:19:05 - End Time 2025-03-12 10:19:05 [2025-03-12 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663512', 'tblTempUsageDetail_20' ) start [2025-03-12 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663512', 'tblTempUsageDetail_20' ) end [2025-03-12 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663512', 'tblTempVendorCDR_20' ) start [2025-03-12 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663512', 'tblTempVendorCDR_20' ) end [2025-03-12 10:19:20] Production.INFO: ProcessCDR(1,14663512,1,1,2) [2025-03-12 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663512', 'tblTempUsageDetail_20' ) start [2025-03-12 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663512', 'tblTempUsageDetail_20' ) end [2025-03-12 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:19:26] Production.INFO: ==7437== Releasing lock... [2025-03-12 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:19:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-12 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:20:06 [end_date_ymd] => 2025-03-12 10:20:06 [RateCDR] => 1 ) [2025-03-12 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:20:06' and `end` < '2025-03-12 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:20:19] Production.INFO: count ==3870 [2025-03-12 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:20:06 - End Time 2025-03-12 10:20:06 [2025-03-12 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663517', 'tblTempUsageDetail_20' ) start [2025-03-12 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663517', 'tblTempUsageDetail_20' ) end [2025-03-12 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663517', 'tblTempVendorCDR_20' ) start [2025-03-12 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663517', 'tblTempVendorCDR_20' ) end [2025-03-12 10:20:21] Production.INFO: ProcessCDR(1,14663517,1,1,2) [2025-03-12 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663517', 'tblTempUsageDetail_20' ) start [2025-03-12 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663517', 'tblTempUsageDetail_20' ) end [2025-03-12 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:20:27] Production.INFO: ==7526== Releasing lock... [2025-03-12 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:20:27] Production.INFO: 57 MB #Memory Used# [2025-03-12 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:21:05 [end_date_ymd] => 2025-03-12 10:21:05 [RateCDR] => 1 ) [2025-03-12 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:21:05' and `end` < '2025-03-12 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:21:18] Production.INFO: count ==4014 [2025-03-12 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:21:05 - End Time 2025-03-12 10:21:05 [2025-03-12 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663523', 'tblTempUsageDetail_20' ) start [2025-03-12 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663523', 'tblTempUsageDetail_20' ) end [2025-03-12 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663523', 'tblTempVendorCDR_20' ) start [2025-03-12 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663523', 'tblTempVendorCDR_20' ) end [2025-03-12 10:21:20] Production.INFO: ProcessCDR(1,14663523,1,1,2) [2025-03-12 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663523', 'tblTempUsageDetail_20' ) start [2025-03-12 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663523', 'tblTempUsageDetail_20' ) end [2025-03-12 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:21:26] Production.INFO: ==7620== Releasing lock... [2025-03-12 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:21:26] Production.INFO: 58 MB #Memory Used# [2025-03-12 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:22:06 [end_date_ymd] => 2025-03-12 10:22:06 [RateCDR] => 1 ) [2025-03-12 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:22:06' and `end` < '2025-03-12 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:22:19] Production.INFO: count ==4026 [2025-03-12 10:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:22:06 - End Time 2025-03-12 10:22:06 [2025-03-12 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663528', 'tblTempUsageDetail_20' ) start [2025-03-12 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663528', 'tblTempUsageDetail_20' ) end [2025-03-12 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663528', 'tblTempVendorCDR_20' ) start [2025-03-12 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663528', 'tblTempVendorCDR_20' ) end [2025-03-12 10:22:22] Production.INFO: ProcessCDR(1,14663528,1,1,2) [2025-03-12 10:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663528', 'tblTempUsageDetail_20' ) start [2025-03-12 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663528', 'tblTempUsageDetail_20' ) end [2025-03-12 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:22:28] Production.INFO: ==7707== Releasing lock... [2025-03-12 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:22:28] Production.INFO: 58 MB #Memory Used# [2025-03-12 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:23:05 [end_date_ymd] => 2025-03-12 10:23:05 [RateCDR] => 1 ) [2025-03-12 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:23:05' and `end` < '2025-03-12 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:23:18] Production.INFO: count ==4056 [2025-03-12 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:23:05 - End Time 2025-03-12 10:23:05 [2025-03-12 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663533', 'tblTempUsageDetail_20' ) start [2025-03-12 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663533', 'tblTempUsageDetail_20' ) end [2025-03-12 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663533', 'tblTempVendorCDR_20' ) start [2025-03-12 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663533', 'tblTempVendorCDR_20' ) end [2025-03-12 10:23:20] Production.INFO: ProcessCDR(1,14663533,1,1,2) [2025-03-12 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663533', 'tblTempUsageDetail_20' ) start [2025-03-12 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663533', 'tblTempUsageDetail_20' ) end [2025-03-12 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:23:26] Production.INFO: ==7805== Releasing lock... [2025-03-12 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:23:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-12 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:24:06 [end_date_ymd] => 2025-03-12 10:24:06 [RateCDR] => 1 ) [2025-03-12 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:24:06' and `end` < '2025-03-12 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:24:19] Production.INFO: count ==4077 [2025-03-12 10:24:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:24:06 - End Time 2025-03-12 10:24:06 [2025-03-12 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663538', 'tblTempUsageDetail_20' ) start [2025-03-12 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663538', 'tblTempUsageDetail_20' ) end [2025-03-12 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663538', 'tblTempVendorCDR_20' ) start [2025-03-12 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663538', 'tblTempVendorCDR_20' ) end [2025-03-12 10:24:21] Production.INFO: ProcessCDR(1,14663538,1,1,2) [2025-03-12 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663538', 'tblTempUsageDetail_20' ) start [2025-03-12 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663538', 'tblTempUsageDetail_20' ) end [2025-03-12 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:24:27] Production.INFO: ==7894== Releasing lock... [2025-03-12 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:24:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-12 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:25:05 [end_date_ymd] => 2025-03-12 10:25:05 [RateCDR] => 1 ) [2025-03-12 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:25:05' and `end` < '2025-03-12 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:25:18] Production.INFO: count ==4096 [2025-03-12 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:25:05 - End Time 2025-03-12 10:25:05 [2025-03-12 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663543', 'tblTempUsageDetail_20' ) start [2025-03-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663543', 'tblTempUsageDetail_20' ) end [2025-03-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663543', 'tblTempVendorCDR_20' ) start [2025-03-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663543', 'tblTempVendorCDR_20' ) end [2025-03-12 10:25:20] Production.INFO: ProcessCDR(1,14663543,1,1,2) [2025-03-12 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663543', 'tblTempUsageDetail_20' ) start [2025-03-12 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663543', 'tblTempUsageDetail_20' ) end [2025-03-12 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:25:26] Production.INFO: ==7986== Releasing lock... [2025-03-12 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:25:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-12 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:26:06 [end_date_ymd] => 2025-03-12 10:26:06 [RateCDR] => 1 ) [2025-03-12 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:26:06' and `end` < '2025-03-12 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:26:19] Production.INFO: count ==4116 [2025-03-12 10:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:26:06 - End Time 2025-03-12 10:26:06 [2025-03-12 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663548', 'tblTempUsageDetail_20' ) start [2025-03-12 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663548', 'tblTempUsageDetail_20' ) end [2025-03-12 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663548', 'tblTempVendorCDR_20' ) start [2025-03-12 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663548', 'tblTempVendorCDR_20' ) end [2025-03-12 10:26:21] Production.INFO: ProcessCDR(1,14663548,1,1,2) [2025-03-12 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663548', 'tblTempUsageDetail_20' ) start [2025-03-12 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663548', 'tblTempUsageDetail_20' ) end [2025-03-12 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:26:27] Production.INFO: ==8070== Releasing lock... [2025-03-12 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:26:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-12 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:27:05 [end_date_ymd] => 2025-03-12 10:27:05 [RateCDR] => 1 ) [2025-03-12 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:27:05' and `end` < '2025-03-12 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:27:19] Production.INFO: count ==4130 [2025-03-12 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:27:05 - End Time 2025-03-12 10:27:05 [2025-03-12 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663553', 'tblTempUsageDetail_20' ) start [2025-03-12 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663553', 'tblTempUsageDetail_20' ) end [2025-03-12 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663553', 'tblTempVendorCDR_20' ) start [2025-03-12 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663553', 'tblTempVendorCDR_20' ) end [2025-03-12 10:27:21] Production.INFO: ProcessCDR(1,14663553,1,1,2) [2025-03-12 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663553', 'tblTempUsageDetail_20' ) start [2025-03-12 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663553', 'tblTempUsageDetail_20' ) end [2025-03-12 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:27:26] Production.INFO: ==8161== Releasing lock... [2025-03-12 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:27:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-12 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:28:05 [end_date_ymd] => 2025-03-12 10:28:05 [RateCDR] => 1 ) [2025-03-12 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:28:05' and `end` < '2025-03-12 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:28:19] Production.INFO: count ==4145 [2025-03-12 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:28:05 - End Time 2025-03-12 10:28:05 [2025-03-12 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663558', 'tblTempUsageDetail_20' ) start [2025-03-12 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663558', 'tblTempUsageDetail_20' ) end [2025-03-12 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663558', 'tblTempVendorCDR_20' ) start [2025-03-12 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663558', 'tblTempVendorCDR_20' ) end [2025-03-12 10:28:21] Production.INFO: ProcessCDR(1,14663558,1,1,2) [2025-03-12 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663558', 'tblTempUsageDetail_20' ) start [2025-03-12 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663558', 'tblTempUsageDetail_20' ) end [2025-03-12 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:28:26] Production.INFO: ==8251== Releasing lock... [2025-03-12 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:28:26] Production.INFO: 59 MB #Memory Used# [2025-03-12 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:29:05 [end_date_ymd] => 2025-03-12 10:29:05 [RateCDR] => 1 ) [2025-03-12 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:29:05' and `end` < '2025-03-12 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:29:18] Production.INFO: count ==4152 [2025-03-12 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:29:05 - End Time 2025-03-12 10:29:05 [2025-03-12 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663563', 'tblTempUsageDetail_20' ) start [2025-03-12 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663563', 'tblTempUsageDetail_20' ) end [2025-03-12 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663563', 'tblTempVendorCDR_20' ) start [2025-03-12 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663563', 'tblTempVendorCDR_20' ) end [2025-03-12 10:29:20] Production.INFO: ProcessCDR(1,14663563,1,1,2) [2025-03-12 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663563', 'tblTempUsageDetail_20' ) start [2025-03-12 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663563', 'tblTempUsageDetail_20' ) end [2025-03-12 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:29:24] Production.INFO: ==8381== Releasing lock... [2025-03-12 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:29:24] Production.INFO: 59 MB #Memory Used# [2025-03-12 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:30:07 [end_date_ymd] => 2025-03-12 10:30:07 [RateCDR] => 1 ) [2025-03-12 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:30:07' and `end` < '2025-03-12 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:30:20] Production.INFO: count ==4170 [2025-03-12 10:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 07:30:07 - End Time 2025-03-12 10:30:07 [2025-03-12 10:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663569', 'tblTempUsageDetail_20' ) start [2025-03-12 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663569', 'tblTempUsageDetail_20' ) end [2025-03-12 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663569', 'tblTempVendorCDR_20' ) start [2025-03-12 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663569', 'tblTempVendorCDR_20' ) end [2025-03-12 10:30:22] Production.INFO: ProcessCDR(1,14663569,1,1,2) [2025-03-12 10:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663569', 'tblTempUsageDetail_20' ) start [2025-03-12 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663569', 'tblTempUsageDetail_20' ) end [2025-03-12 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:30:27] Production.INFO: ==8468== Releasing lock... [2025-03-12 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:30:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-12 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:31:05 [end_date_ymd] => 2025-03-12 10:31:05 [RateCDR] => 1 ) [2025-03-12 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:31:05' and `end` < '2025-03-12 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:31:18] Production.INFO: count ==4299 [2025-03-12 10:31:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:31:05 - End Time 2025-03-12 10:31:05 [2025-03-12 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663574', 'tblTempUsageDetail_20' ) start [2025-03-12 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663574', 'tblTempUsageDetail_20' ) end [2025-03-12 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663574', 'tblTempVendorCDR_20' ) start [2025-03-12 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663574', 'tblTempVendorCDR_20' ) end [2025-03-12 10:31:20] Production.INFO: ProcessCDR(1,14663574,1,1,2) [2025-03-12 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663574', 'tblTempUsageDetail_20' ) start [2025-03-12 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663574', 'tblTempUsageDetail_20' ) end [2025-03-12 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:31:25] Production.INFO: ==8561== Releasing lock... [2025-03-12 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:31:25] Production.INFO: 60 MB #Memory Used# [2025-03-12 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:32:06 [end_date_ymd] => 2025-03-12 10:32:06 [RateCDR] => 1 ) [2025-03-12 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:32:06' and `end` < '2025-03-12 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:32:19] Production.INFO: count ==4361 [2025-03-12 10:32:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:32:06 - End Time 2025-03-12 10:32:06 [2025-03-12 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663579', 'tblTempUsageDetail_20' ) start [2025-03-12 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663579', 'tblTempUsageDetail_20' ) end [2025-03-12 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663579', 'tblTempVendorCDR_20' ) start [2025-03-12 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663579', 'tblTempVendorCDR_20' ) end [2025-03-12 10:32:21] Production.INFO: ProcessCDR(1,14663579,1,1,2) [2025-03-12 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663579', 'tblTempUsageDetail_20' ) start [2025-03-12 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663579', 'tblTempUsageDetail_20' ) end [2025-03-12 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:32:26] Production.INFO: ==8653== Releasing lock... [2025-03-12 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:32:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-12 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:33:05 [end_date_ymd] => 2025-03-12 10:33:05 [RateCDR] => 1 ) [2025-03-12 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:33:05' and `end` < '2025-03-12 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:33:18] Production.INFO: count ==4383 [2025-03-12 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:33:05 - End Time 2025-03-12 10:33:05 [2025-03-12 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663584', 'tblTempUsageDetail_20' ) start [2025-03-12 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663584', 'tblTempUsageDetail_20' ) end [2025-03-12 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663584', 'tblTempVendorCDR_20' ) start [2025-03-12 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663584', 'tblTempVendorCDR_20' ) end [2025-03-12 10:33:20] Production.INFO: ProcessCDR(1,14663584,1,1,2) [2025-03-12 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663584', 'tblTempUsageDetail_20' ) start [2025-03-12 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663584', 'tblTempUsageDetail_20' ) end [2025-03-12 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:33:25] Production.INFO: ==8745== Releasing lock... [2025-03-12 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:33:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-12 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:34:05 [end_date_ymd] => 2025-03-12 10:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:34:18] Production.INFO: count ==4406 [2025-03-12 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:34:05 - End Time 2025-03-12 10:34:05 [2025-03-12 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663589', 'tblTempUsageDetail_20' ) start [2025-03-12 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663589', 'tblTempUsageDetail_20' ) end [2025-03-12 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663589', 'tblTempVendorCDR_20' ) start [2025-03-12 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663589', 'tblTempVendorCDR_20' ) end [2025-03-12 10:34:21] Production.INFO: ProcessCDR(1,14663589,1,1,2) [2025-03-12 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663589', 'tblTempUsageDetail_20' ) start [2025-03-12 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663589', 'tblTempUsageDetail_20' ) end [2025-03-12 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:34:26] Production.INFO: ==8841== Releasing lock... [2025-03-12 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:34:26] Production.INFO: 61 MB #Memory Used# [2025-03-12 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:35:05 [end_date_ymd] => 2025-03-12 10:35:05 [RateCDR] => 1 ) [2025-03-12 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:35:05' and `end` < '2025-03-12 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:35:18] Production.INFO: count ==4425 [2025-03-12 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:35:05 - End Time 2025-03-12 10:35:05 [2025-03-12 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663594', 'tblTempUsageDetail_20' ) start [2025-03-12 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663594', 'tblTempUsageDetail_20' ) end [2025-03-12 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663594', 'tblTempVendorCDR_20' ) start [2025-03-12 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663594', 'tblTempVendorCDR_20' ) end [2025-03-12 10:35:20] Production.INFO: ProcessCDR(1,14663594,1,1,2) [2025-03-12 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663594', 'tblTempUsageDetail_20' ) start [2025-03-12 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663594', 'tblTempUsageDetail_20' ) end [2025-03-12 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:35:25] Production.INFO: ==8932== Releasing lock... [2025-03-12 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:35:25] Production.INFO: 61 MB #Memory Used# [2025-03-12 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:36:06 [end_date_ymd] => 2025-03-12 10:36:06 [RateCDR] => 1 ) [2025-03-12 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:36:06' and `end` < '2025-03-12 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:36:19] Production.INFO: count ==4455 [2025-03-12 10:36:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:36:06 - End Time 2025-03-12 10:36:06 [2025-03-12 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663599', 'tblTempUsageDetail_20' ) start [2025-03-12 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663599', 'tblTempUsageDetail_20' ) end [2025-03-12 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663599', 'tblTempVendorCDR_20' ) start [2025-03-12 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663599', 'tblTempVendorCDR_20' ) end [2025-03-12 10:36:21] Production.INFO: ProcessCDR(1,14663599,1,1,2) [2025-03-12 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663599', 'tblTempUsageDetail_20' ) start [2025-03-12 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663599', 'tblTempUsageDetail_20' ) end [2025-03-12 10:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:36:27] Production.INFO: ==9018== Releasing lock... [2025-03-12 10:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:36:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-12 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:37:05 [end_date_ymd] => 2025-03-12 10:37:05 [RateCDR] => 1 ) [2025-03-12 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:37:05' and `end` < '2025-03-12 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:37:18] Production.INFO: count ==4485 [2025-03-12 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:37:05 - End Time 2025-03-12 10:37:05 [2025-03-12 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663604', 'tblTempUsageDetail_20' ) start [2025-03-12 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663604', 'tblTempUsageDetail_20' ) end [2025-03-12 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663604', 'tblTempVendorCDR_20' ) start [2025-03-12 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663604', 'tblTempVendorCDR_20' ) end [2025-03-12 10:37:20] Production.INFO: ProcessCDR(1,14663604,1,1,2) [2025-03-12 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663604', 'tblTempUsageDetail_20' ) start [2025-03-12 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663604', 'tblTempUsageDetail_20' ) end [2025-03-12 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:37:25] Production.INFO: ==9120== Releasing lock... [2025-03-12 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-12 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:38:05 [end_date_ymd] => 2025-03-12 10:38:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:38:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:38:19] Production.INFO: count ==4501 [2025-03-12 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:38:05 - End Time 2025-03-12 10:38:05 [2025-03-12 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663609', 'tblTempUsageDetail_20' ) start [2025-03-12 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663609', 'tblTempUsageDetail_20' ) end [2025-03-12 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663609', 'tblTempVendorCDR_20' ) start [2025-03-12 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663609', 'tblTempVendorCDR_20' ) end [2025-03-12 10:38:21] Production.INFO: ProcessCDR(1,14663609,1,1,2) [2025-03-12 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663609', 'tblTempUsageDetail_20' ) start [2025-03-12 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663609', 'tblTempUsageDetail_20' ) end [2025-03-12 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:38:26] Production.INFO: ==9218== Releasing lock... [2025-03-12 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:38:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:39:05 [end_date_ymd] => 2025-03-12 10:39:05 [RateCDR] => 1 ) [2025-03-12 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:39:05' and `end` < '2025-03-12 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:39:18] Production.INFO: count ==4507 [2025-03-12 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:39:05 - End Time 2025-03-12 10:39:05 [2025-03-12 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663614', 'tblTempUsageDetail_20' ) start [2025-03-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663614', 'tblTempUsageDetail_20' ) end [2025-03-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663614', 'tblTempVendorCDR_20' ) start [2025-03-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663614', 'tblTempVendorCDR_20' ) end [2025-03-12 10:39:20] Production.INFO: ProcessCDR(1,14663614,1,1,2) [2025-03-12 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663614', 'tblTempUsageDetail_20' ) start [2025-03-12 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663614', 'tblTempUsageDetail_20' ) end [2025-03-12 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:39:25] Production.INFO: ==9314== Releasing lock... [2025-03-12 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:39:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:40:06 [end_date_ymd] => 2025-03-12 10:40:06 [RateCDR] => 1 ) [2025-03-12 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:40:06' and `end` < '2025-03-12 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:40:19] Production.INFO: count ==4521 [2025-03-12 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:40:06 - End Time 2025-03-12 10:40:06 [2025-03-12 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663619', 'tblTempUsageDetail_20' ) start [2025-03-12 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663619', 'tblTempUsageDetail_20' ) end [2025-03-12 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663619', 'tblTempVendorCDR_20' ) start [2025-03-12 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663619', 'tblTempVendorCDR_20' ) end [2025-03-12 10:40:21] Production.INFO: ProcessCDR(1,14663619,1,1,2) [2025-03-12 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663619', 'tblTempUsageDetail_20' ) start [2025-03-12 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663619', 'tblTempUsageDetail_20' ) end [2025-03-12 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:40:27] Production.INFO: ==9404== Releasing lock... [2025-03-12 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:40:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:41:05 [end_date_ymd] => 2025-03-12 10:41:05 [RateCDR] => 1 ) [2025-03-12 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:41:05' and `end` < '2025-03-12 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:41:18] Production.INFO: count ==4650 [2025-03-12 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:41:05 - End Time 2025-03-12 10:41:05 [2025-03-12 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663625', 'tblTempUsageDetail_20' ) start [2025-03-12 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663625', 'tblTempUsageDetail_20' ) end [2025-03-12 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663625', 'tblTempVendorCDR_20' ) start [2025-03-12 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663625', 'tblTempVendorCDR_20' ) end [2025-03-12 10:41:20] Production.INFO: ProcessCDR(1,14663625,1,1,2) [2025-03-12 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663625', 'tblTempUsageDetail_20' ) start [2025-03-12 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663625', 'tblTempUsageDetail_20' ) end [2025-03-12 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:41:25] Production.INFO: ==9499== Releasing lock... [2025-03-12 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:41:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-12 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:42:05 [end_date_ymd] => 2025-03-12 10:42:05 [RateCDR] => 1 ) [2025-03-12 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:42:05' and `end` < '2025-03-12 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:42:19] Production.INFO: count ==4687 [2025-03-12 10:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:42:05 - End Time 2025-03-12 10:42:05 [2025-03-12 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663630', 'tblTempUsageDetail_20' ) start [2025-03-12 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663630', 'tblTempUsageDetail_20' ) end [2025-03-12 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663630', 'tblTempVendorCDR_20' ) start [2025-03-12 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663630', 'tblTempVendorCDR_20' ) end [2025-03-12 10:42:21] Production.INFO: ProcessCDR(1,14663630,1,1,2) [2025-03-12 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663630', 'tblTempUsageDetail_20' ) start [2025-03-12 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663630', 'tblTempUsageDetail_20' ) end [2025-03-12 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:42:26] Production.INFO: ==9585== Releasing lock... [2025-03-12 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:42:26] Production.INFO: 63 MB #Memory Used# [2025-03-12 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:43:05 [end_date_ymd] => 2025-03-12 10:43:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:43:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:43:18] Production.INFO: count ==4707 [2025-03-12 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:43:05 - End Time 2025-03-12 10:43:05 [2025-03-12 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663635', 'tblTempUsageDetail_20' ) start [2025-03-12 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663635', 'tblTempUsageDetail_20' ) end [2025-03-12 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663635', 'tblTempVendorCDR_20' ) start [2025-03-12 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663635', 'tblTempVendorCDR_20' ) end [2025-03-12 10:43:20] Production.INFO: ProcessCDR(1,14663635,1,1,2) [2025-03-12 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663635', 'tblTempUsageDetail_20' ) start [2025-03-12 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663635', 'tblTempUsageDetail_20' ) end [2025-03-12 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:43:25] Production.INFO: ==9662== Releasing lock... [2025-03-12 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:43:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-12 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:44:05 [end_date_ymd] => 2025-03-12 10:44:05 [RateCDR] => 1 ) [2025-03-12 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:44:05' and `end` < '2025-03-12 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:44:18] Production.INFO: count ==4762 [2025-03-12 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:44:05 - End Time 2025-03-12 10:44:05 [2025-03-12 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663640', 'tblTempUsageDetail_20' ) start [2025-03-12 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663640', 'tblTempUsageDetail_20' ) end [2025-03-12 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663640', 'tblTempVendorCDR_20' ) start [2025-03-12 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663640', 'tblTempVendorCDR_20' ) end [2025-03-12 10:44:21] Production.INFO: ProcessCDR(1,14663640,1,1,2) [2025-03-12 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663640', 'tblTempUsageDetail_20' ) start [2025-03-12 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663640', 'tblTempUsageDetail_20' ) end [2025-03-12 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:44:26] Production.INFO: ==9736== Releasing lock... [2025-03-12 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:44:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-12 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:45:05 [end_date_ymd] => 2025-03-12 10:45:05 [RateCDR] => 1 ) [2025-03-12 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:45:05' and `end` < '2025-03-12 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:45:19] Production.INFO: count ==4781 [2025-03-12 10:45:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:45:05 - End Time 2025-03-12 10:45:05 [2025-03-12 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663645', 'tblTempUsageDetail_20' ) start [2025-03-12 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663645', 'tblTempUsageDetail_20' ) end [2025-03-12 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663645', 'tblTempVendorCDR_20' ) start [2025-03-12 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663645', 'tblTempVendorCDR_20' ) end [2025-03-12 10:45:21] Production.INFO: ProcessCDR(1,14663645,1,1,2) [2025-03-12 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663645', 'tblTempUsageDetail_20' ) start [2025-03-12 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663645', 'tblTempUsageDetail_20' ) end [2025-03-12 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:45:26] Production.INFO: ==9851== Releasing lock... [2025-03-12 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:45:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-12 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:46:05 [end_date_ymd] => 2025-03-12 10:46:05 [RateCDR] => 1 ) [2025-03-12 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:46:05' and `end` < '2025-03-12 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:46:19] Production.INFO: count ==4806 [2025-03-12 10:46:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:46:05 - End Time 2025-03-12 10:46:05 [2025-03-12 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663650', 'tblTempUsageDetail_20' ) start [2025-03-12 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663650', 'tblTempUsageDetail_20' ) end [2025-03-12 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663650', 'tblTempVendorCDR_20' ) start [2025-03-12 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663650', 'tblTempVendorCDR_20' ) end [2025-03-12 10:46:21] Production.INFO: ProcessCDR(1,14663650,1,1,2) [2025-03-12 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663650', 'tblTempUsageDetail_20' ) start [2025-03-12 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663650', 'tblTempUsageDetail_20' ) end [2025-03-12 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:46:26] Production.INFO: ==9927== Releasing lock... [2025-03-12 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:46:26] Production.INFO: 64 MB #Memory Used# [2025-03-12 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:47:05 [end_date_ymd] => 2025-03-12 10:47:05 [RateCDR] => 1 ) [2025-03-12 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:47:05' and `end` < '2025-03-12 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:47:18] Production.INFO: count ==4833 [2025-03-12 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:47:05 - End Time 2025-03-12 10:47:05 [2025-03-12 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663655', 'tblTempUsageDetail_20' ) start [2025-03-12 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663655', 'tblTempUsageDetail_20' ) end [2025-03-12 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663655', 'tblTempVendorCDR_20' ) start [2025-03-12 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663655', 'tblTempVendorCDR_20' ) end [2025-03-12 10:47:21] Production.INFO: ProcessCDR(1,14663655,1,1,2) [2025-03-12 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663655', 'tblTempUsageDetail_20' ) start [2025-03-12 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663655', 'tblTempUsageDetail_20' ) end [2025-03-12 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:47:26] Production.INFO: ==10000== Releasing lock... [2025-03-12 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:47:26] Production.INFO: 64 MB #Memory Used# [2025-03-12 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:48:05 [end_date_ymd] => 2025-03-12 10:48:05 [RateCDR] => 1 ) [2025-03-12 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:48:05' and `end` < '2025-03-12 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:48:18] Production.INFO: count ==4864 [2025-03-12 10:48:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:48:05 - End Time 2025-03-12 10:48:05 [2025-03-12 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663660', 'tblTempUsageDetail_20' ) start [2025-03-12 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663660', 'tblTempUsageDetail_20' ) end [2025-03-12 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663660', 'tblTempVendorCDR_20' ) start [2025-03-12 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663660', 'tblTempVendorCDR_20' ) end [2025-03-12 10:48:21] Production.INFO: ProcessCDR(1,14663660,1,1,2) [2025-03-12 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663660', 'tblTempUsageDetail_20' ) start [2025-03-12 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663660', 'tblTempUsageDetail_20' ) end [2025-03-12 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:48:26] Production.INFO: ==10075== Releasing lock... [2025-03-12 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:48:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-12 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:49:05 [end_date_ymd] => 2025-03-12 10:49:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:49:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:49:18] Production.INFO: count ==4888 [2025-03-12 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:49:05 - End Time 2025-03-12 10:49:05 [2025-03-12 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663665', 'tblTempUsageDetail_20' ) start [2025-03-12 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663665', 'tblTempUsageDetail_20' ) end [2025-03-12 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663665', 'tblTempVendorCDR_20' ) start [2025-03-12 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663665', 'tblTempVendorCDR_20' ) end [2025-03-12 10:49:21] Production.INFO: ProcessCDR(1,14663665,1,1,2) [2025-03-12 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663665', 'tblTempUsageDetail_20' ) start [2025-03-12 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663665', 'tblTempUsageDetail_20' ) end [2025-03-12 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:49:27] Production.INFO: ==10151== Releasing lock... [2025-03-12 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:49:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:50:06 [end_date_ymd] => 2025-03-12 10:50:06 [RateCDR] => 1 ) [2025-03-12 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:50:06' and `end` < '2025-03-12 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:50:19] Production.INFO: count ==4929 [2025-03-12 10:50:22] Production.ERROR: pbx CDR StartTime 2025-03-12 07:50:06 - End Time 2025-03-12 10:50:06 [2025-03-12 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663671', 'tblTempUsageDetail_20' ) start [2025-03-12 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663671', 'tblTempUsageDetail_20' ) end [2025-03-12 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663671', 'tblTempVendorCDR_20' ) start [2025-03-12 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663671', 'tblTempVendorCDR_20' ) end [2025-03-12 10:50:22] Production.INFO: ProcessCDR(1,14663671,1,1,2) [2025-03-12 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663671', 'tblTempUsageDetail_20' ) start [2025-03-12 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663671', 'tblTempUsageDetail_20' ) end [2025-03-12 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:50:27] Production.INFO: ==10230== Releasing lock... [2025-03-12 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:50:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-12 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:51:05 [end_date_ymd] => 2025-03-12 10:51:05 [RateCDR] => 1 ) [2025-03-12 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:51:05' and `end` < '2025-03-12 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:51:19] Production.INFO: count ==5053 [2025-03-12 10:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:51:05 - End Time 2025-03-12 10:51:05 [2025-03-12 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663676', 'tblTempUsageDetail_20' ) start [2025-03-12 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663676', 'tblTempUsageDetail_20' ) end [2025-03-12 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663676', 'tblTempVendorCDR_20' ) start [2025-03-12 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663676', 'tblTempVendorCDR_20' ) end [2025-03-12 10:51:21] Production.INFO: ProcessCDR(1,14663676,1,1,2) [2025-03-12 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663676', 'tblTempUsageDetail_20' ) start [2025-03-12 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663676', 'tblTempUsageDetail_20' ) end [2025-03-12 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:51:26] Production.INFO: ==10309== Releasing lock... [2025-03-12 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:51:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-12 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:52:05 [end_date_ymd] => 2025-03-12 10:52:05 [RateCDR] => 1 ) [2025-03-12 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:52:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:52:19] Production.INFO: count ==5107 [2025-03-12 10:52:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:52:05 - End Time 2025-03-12 10:52:05 [2025-03-12 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663681', 'tblTempUsageDetail_20' ) start [2025-03-12 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663681', 'tblTempUsageDetail_20' ) end [2025-03-12 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663681', 'tblTempVendorCDR_20' ) start [2025-03-12 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663681', 'tblTempVendorCDR_20' ) end [2025-03-12 10:52:22] Production.INFO: ProcessCDR(1,14663681,1,1,2) [2025-03-12 10:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663681', 'tblTempUsageDetail_20' ) start [2025-03-12 10:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663681', 'tblTempUsageDetail_20' ) end [2025-03-12 10:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:52:27] Production.INFO: ==10384== Releasing lock... [2025-03-12 10:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:52:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:53:05 [end_date_ymd] => 2025-03-12 10:53:05 [RateCDR] => 1 ) [2025-03-12 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:53:05' and `end` < '2025-03-12 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:53:19] Production.INFO: count ==5190 [2025-03-12 10:53:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:53:05 - End Time 2025-03-12 10:53:05 [2025-03-12 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663686', 'tblTempUsageDetail_20' ) start [2025-03-12 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663686', 'tblTempUsageDetail_20' ) end [2025-03-12 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663686', 'tblTempVendorCDR_20' ) start [2025-03-12 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663686', 'tblTempVendorCDR_20' ) end [2025-03-12 10:53:21] Production.INFO: ProcessCDR(1,14663686,1,1,2) [2025-03-12 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663686', 'tblTempUsageDetail_20' ) start [2025-03-12 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663686', 'tblTempUsageDetail_20' ) end [2025-03-12 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:53:27] Production.INFO: ==10459== Releasing lock... [2025-03-12 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:53:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-12 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:54:05 [end_date_ymd] => 2025-03-12 10:54:05 [RateCDR] => 1 ) [2025-03-12 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:54:05' and `end` < '2025-03-12 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:54:19] Production.INFO: count ==5207 [2025-03-12 10:54:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:54:05 - End Time 2025-03-12 10:54:05 [2025-03-12 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663691', 'tblTempUsageDetail_20' ) start [2025-03-12 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663691', 'tblTempUsageDetail_20' ) end [2025-03-12 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663691', 'tblTempVendorCDR_20' ) start [2025-03-12 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663691', 'tblTempVendorCDR_20' ) end [2025-03-12 10:54:21] Production.INFO: ProcessCDR(1,14663691,1,1,2) [2025-03-12 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663691', 'tblTempUsageDetail_20' ) start [2025-03-12 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663691', 'tblTempUsageDetail_20' ) end [2025-03-12 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:54:26] Production.INFO: ==10537== Releasing lock... [2025-03-12 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:54:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:55:05 [end_date_ymd] => 2025-03-12 10:55:05 [RateCDR] => 1 ) [2025-03-12 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:55:05' and `end` < '2025-03-12 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:55:18] Production.INFO: count ==5227 [2025-03-12 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:55:05 - End Time 2025-03-12 10:55:05 [2025-03-12 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663696', 'tblTempUsageDetail_20' ) start [2025-03-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663696', 'tblTempUsageDetail_20' ) end [2025-03-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663696', 'tblTempVendorCDR_20' ) start [2025-03-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663696', 'tblTempVendorCDR_20' ) end [2025-03-12 10:55:20] Production.INFO: ProcessCDR(1,14663696,1,1,2) [2025-03-12 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663696', 'tblTempUsageDetail_20' ) start [2025-03-12 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663696', 'tblTempUsageDetail_20' ) end [2025-03-12 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:55:26] Production.INFO: ==10609== Releasing lock... [2025-03-12 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:55:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:56:05 [end_date_ymd] => 2025-03-12 10:56:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 07:56:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 10:56:18] Production.INFO: count ==5244 [2025-03-12 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:56:05 - End Time 2025-03-12 10:56:05 [2025-03-12 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663701', 'tblTempUsageDetail_20' ) start [2025-03-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663701', 'tblTempUsageDetail_20' ) end [2025-03-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663701', 'tblTempVendorCDR_20' ) start [2025-03-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663701', 'tblTempVendorCDR_20' ) end [2025-03-12 10:56:21] Production.INFO: ProcessCDR(1,14663701,1,1,2) [2025-03-12 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663701', 'tblTempUsageDetail_20' ) start [2025-03-12 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663701', 'tblTempUsageDetail_20' ) end [2025-03-12 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:56:26] Production.INFO: ==10687== Releasing lock... [2025-03-12 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:56:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:57:05 [end_date_ymd] => 2025-03-12 10:57:05 [RateCDR] => 1 ) [2025-03-12 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:57:05' and `end` < '2025-03-12 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:57:18] Production.INFO: count ==5261 [2025-03-12 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-12 07:57:05 - End Time 2025-03-12 10:57:05 [2025-03-12 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663706', 'tblTempUsageDetail_20' ) start [2025-03-12 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663706', 'tblTempUsageDetail_20' ) end [2025-03-12 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663706', 'tblTempVendorCDR_20' ) start [2025-03-12 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663706', 'tblTempVendorCDR_20' ) end [2025-03-12 10:57:20] Production.INFO: ProcessCDR(1,14663706,1,1,2) [2025-03-12 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663706', 'tblTempUsageDetail_20' ) start [2025-03-12 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663706', 'tblTempUsageDetail_20' ) end [2025-03-12 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:57:26] Production.INFO: ==10763== Releasing lock... [2025-03-12 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:57:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:58:05 [end_date_ymd] => 2025-03-12 10:58:05 [RateCDR] => 1 ) [2025-03-12 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:58:05' and `end` < '2025-03-12 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:58:18] Production.INFO: count ==5266 [2025-03-12 10:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:58:05 - End Time 2025-03-12 10:58:05 [2025-03-12 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663711', 'tblTempUsageDetail_20' ) start [2025-03-12 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663711', 'tblTempUsageDetail_20' ) end [2025-03-12 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663711', 'tblTempVendorCDR_20' ) start [2025-03-12 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663711', 'tblTempVendorCDR_20' ) end [2025-03-12 10:58:21] Production.INFO: ProcessCDR(1,14663711,1,1,2) [2025-03-12 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663711', 'tblTempUsageDetail_20' ) start [2025-03-12 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663711', 'tblTempUsageDetail_20' ) end [2025-03-12 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:58:26] Production.INFO: ==10835== Releasing lock... [2025-03-12 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:58:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 07:59:05 [end_date_ymd] => 2025-03-12 10:59:05 [RateCDR] => 1 ) [2025-03-12 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 07:59:05' and `end` < '2025-03-12 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 10:59:18] Production.INFO: count ==5272 [2025-03-12 10:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 07:59:05 - End Time 2025-03-12 10:59:05 [2025-03-12 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663716', 'tblTempUsageDetail_20' ) start [2025-03-12 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663716', 'tblTempUsageDetail_20' ) end [2025-03-12 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663716', 'tblTempVendorCDR_20' ) start [2025-03-12 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663716', 'tblTempVendorCDR_20' ) end [2025-03-12 10:59:21] Production.INFO: ProcessCDR(1,14663716,1,1,2) [2025-03-12 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663716', 'tblTempUsageDetail_20' ) start [2025-03-12 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663716', 'tblTempUsageDetail_20' ) end [2025-03-12 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 10:59:26] Production.INFO: ==10913== Releasing lock... [2025-03-12 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 10:59:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:00:06 [end_date_ymd] => 2025-03-12 11:00:06 [RateCDR] => 1 ) [2025-03-12 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:00:06' and `end` < '2025-03-12 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:00:20] Production.INFO: count ==5280 [2025-03-12 11:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:00:06 - End Time 2025-03-12 11:00:06 [2025-03-12 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663722', 'tblTempUsageDetail_20' ) start [2025-03-12 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663722', 'tblTempUsageDetail_20' ) end [2025-03-12 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663722', 'tblTempVendorCDR_20' ) start [2025-03-12 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663722', 'tblTempVendorCDR_20' ) end [2025-03-12 11:00:23] Production.INFO: ProcessCDR(1,14663722,1,1,2) [2025-03-12 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663722', 'tblTempUsageDetail_20' ) start [2025-03-12 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663722', 'tblTempUsageDetail_20' ) end [2025-03-12 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:00:28] Production.INFO: ==11031== Releasing lock... [2025-03-12 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:00:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:01:05 [end_date_ymd] => 2025-03-12 11:01:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:01:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:01:18] Production.INFO: count ==5396 [2025-03-12 11:01:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:01:05 - End Time 2025-03-12 11:01:05 [2025-03-12 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663727', 'tblTempUsageDetail_20' ) start [2025-03-12 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663727', 'tblTempUsageDetail_20' ) end [2025-03-12 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663727', 'tblTempVendorCDR_20' ) start [2025-03-12 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663727', 'tblTempVendorCDR_20' ) end [2025-03-12 11:01:21] Production.INFO: ProcessCDR(1,14663727,1,1,2) [2025-03-12 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663727', 'tblTempUsageDetail_20' ) start [2025-03-12 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663727', 'tblTempUsageDetail_20' ) end [2025-03-12 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:01:27] Production.INFO: ==11164== Releasing lock... [2025-03-12 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:01:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:02:06 [end_date_ymd] => 2025-03-12 11:02:06 [RateCDR] => 1 ) [2025-03-12 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:02:06' and `end` < '2025-03-12 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:02:19] Production.INFO: count ==5401 [2025-03-12 11:02:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:02:06 - End Time 2025-03-12 11:02:06 [2025-03-12 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663732', 'tblTempUsageDetail_20' ) start [2025-03-12 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663732', 'tblTempUsageDetail_20' ) end [2025-03-12 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663732', 'tblTempVendorCDR_20' ) start [2025-03-12 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663732', 'tblTempVendorCDR_20' ) end [2025-03-12 11:02:22] Production.INFO: ProcessCDR(1,14663732,1,1,2) [2025-03-12 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663732', 'tblTempUsageDetail_20' ) start [2025-03-12 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663732', 'tblTempUsageDetail_20' ) end [2025-03-12 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:02:27] Production.INFO: ==11279== Releasing lock... [2025-03-12 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:02:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:03:05 [end_date_ymd] => 2025-03-12 11:03:05 [RateCDR] => 1 ) [2025-03-12 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:03:05' and `end` < '2025-03-12 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:03:18] Production.INFO: count ==5388 [2025-03-12 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:03:05 - End Time 2025-03-12 11:03:05 [2025-03-12 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663737', 'tblTempUsageDetail_20' ) start [2025-03-12 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663737', 'tblTempUsageDetail_20' ) end [2025-03-12 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663737', 'tblTempVendorCDR_20' ) start [2025-03-12 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663737', 'tblTempVendorCDR_20' ) end [2025-03-12 11:03:21] Production.INFO: ProcessCDR(1,14663737,1,1,2) [2025-03-12 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663737', 'tblTempUsageDetail_20' ) start [2025-03-12 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663737', 'tblTempUsageDetail_20' ) end [2025-03-12 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:03:27] Production.INFO: ==11354== Releasing lock... [2025-03-12 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:03:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:04:06 [end_date_ymd] => 2025-03-12 11:04:06 [RateCDR] => 1 ) [2025-03-12 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:04:06' and `end` < '2025-03-12 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:04:19] Production.INFO: count ==5388 [2025-03-12 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:04:06 - End Time 2025-03-12 11:04:06 [2025-03-12 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663742', 'tblTempUsageDetail_20' ) start [2025-03-12 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663742', 'tblTempUsageDetail_20' ) end [2025-03-12 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663742', 'tblTempVendorCDR_20' ) start [2025-03-12 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663742', 'tblTempVendorCDR_20' ) end [2025-03-12 11:04:22] Production.INFO: ProcessCDR(1,14663742,1,1,2) [2025-03-12 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663742', 'tblTempUsageDetail_20' ) start [2025-03-12 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663742', 'tblTempUsageDetail_20' ) end [2025-03-12 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:04:27] Production.INFO: ==11434== Releasing lock... [2025-03-12 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:04:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:05:05 [end_date_ymd] => 2025-03-12 11:05:05 [RateCDR] => 1 ) [2025-03-12 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:05:05' and `end` < '2025-03-12 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:05:19] Production.INFO: count ==5412 [2025-03-12 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:05:05 - End Time 2025-03-12 11:05:05 [2025-03-12 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663747', 'tblTempUsageDetail_20' ) start [2025-03-12 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663747', 'tblTempUsageDetail_20' ) end [2025-03-12 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663747', 'tblTempVendorCDR_20' ) start [2025-03-12 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663747', 'tblTempVendorCDR_20' ) end [2025-03-12 11:05:21] Production.INFO: ProcessCDR(1,14663747,1,1,2) [2025-03-12 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663747', 'tblTempUsageDetail_20' ) start [2025-03-12 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663747', 'tblTempUsageDetail_20' ) end [2025-03-12 11:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:05:27] Production.INFO: ==11586== Releasing lock... [2025-03-12 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:05:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:06:06 [end_date_ymd] => 2025-03-12 11:06:06 [RateCDR] => 1 ) [2025-03-12 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:06:06' and `end` < '2025-03-12 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:06:20] Production.INFO: count ==5408 [2025-03-12 11:06:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:06:06 - End Time 2025-03-12 11:06:06 [2025-03-12 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663752', 'tblTempUsageDetail_20' ) start [2025-03-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663752', 'tblTempUsageDetail_20' ) end [2025-03-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663752', 'tblTempVendorCDR_20' ) start [2025-03-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663752', 'tblTempVendorCDR_20' ) end [2025-03-12 11:06:23] Production.INFO: ProcessCDR(1,14663752,1,1,2) [2025-03-12 11:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663752', 'tblTempUsageDetail_20' ) start [2025-03-12 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663752', 'tblTempUsageDetail_20' ) end [2025-03-12 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:06:28] Production.INFO: ==11659== Releasing lock... [2025-03-12 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:06:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:07:05 [end_date_ymd] => 2025-03-12 11:07:05 [RateCDR] => 1 ) [2025-03-12 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:07:05' and `end` < '2025-03-12 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:07:18] Production.INFO: count ==5406 [2025-03-12 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:07:05 - End Time 2025-03-12 11:07:05 [2025-03-12 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663757', 'tblTempUsageDetail_20' ) start [2025-03-12 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663757', 'tblTempUsageDetail_20' ) end [2025-03-12 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663757', 'tblTempVendorCDR_20' ) start [2025-03-12 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663757', 'tblTempVendorCDR_20' ) end [2025-03-12 11:07:21] Production.INFO: ProcessCDR(1,14663757,1,1,2) [2025-03-12 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663757', 'tblTempUsageDetail_20' ) start [2025-03-12 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663757', 'tblTempUsageDetail_20' ) end [2025-03-12 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:07:27] Production.INFO: ==11731== Releasing lock... [2025-03-12 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:07:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:08:06 [end_date_ymd] => 2025-03-12 11:08:06 [RateCDR] => 1 ) [2025-03-12 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:08:06' and `end` < '2025-03-12 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:08:19] Production.INFO: count ==5420 [2025-03-12 11:08:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:08:06 - End Time 2025-03-12 11:08:06 [2025-03-12 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663762', 'tblTempUsageDetail_20' ) start [2025-03-12 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663762', 'tblTempUsageDetail_20' ) end [2025-03-12 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663762', 'tblTempVendorCDR_20' ) start [2025-03-12 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663762', 'tblTempVendorCDR_20' ) end [2025-03-12 11:08:22] Production.INFO: ProcessCDR(1,14663762,1,1,2) [2025-03-12 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663762', 'tblTempUsageDetail_20' ) start [2025-03-12 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663762', 'tblTempUsageDetail_20' ) end [2025-03-12 11:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:08:28] Production.INFO: ==11887== Releasing lock... [2025-03-12 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:08:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:09:05 [end_date_ymd] => 2025-03-12 11:09:05 [RateCDR] => 1 ) [2025-03-12 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:09:05' and `end` < '2025-03-12 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:09:18] Production.INFO: count ==5440 [2025-03-12 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:09:05 - End Time 2025-03-12 11:09:05 [2025-03-12 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663767', 'tblTempUsageDetail_20' ) start [2025-03-12 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663767', 'tblTempUsageDetail_20' ) end [2025-03-12 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663767', 'tblTempVendorCDR_20' ) start [2025-03-12 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663767', 'tblTempVendorCDR_20' ) end [2025-03-12 11:09:21] Production.INFO: ProcessCDR(1,14663767,1,1,2) [2025-03-12 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663767', 'tblTempUsageDetail_20' ) start [2025-03-12 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663767', 'tblTempUsageDetail_20' ) end [2025-03-12 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:09:27] Production.INFO: ==11964== Releasing lock... [2025-03-12 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:09:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-12 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:10:06 [end_date_ymd] => 2025-03-12 11:10:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:10:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:10:20] Production.INFO: count ==5449 [2025-03-12 11:10:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:10:06 - End Time 2025-03-12 11:10:06 [2025-03-12 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663773', 'tblTempUsageDetail_20' ) start [2025-03-12 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663773', 'tblTempUsageDetail_20' ) end [2025-03-12 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663773', 'tblTempVendorCDR_20' ) start [2025-03-12 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663773', 'tblTempVendorCDR_20' ) end [2025-03-12 11:10:23] Production.INFO: ProcessCDR(1,14663773,1,1,2) [2025-03-12 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663773', 'tblTempUsageDetail_20' ) start [2025-03-12 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663773', 'tblTempUsageDetail_20' ) end [2025-03-12 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:10:28] Production.INFO: ==12036== Releasing lock... [2025-03-12 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:10:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-12 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:11:05 [end_date_ymd] => 2025-03-12 11:11:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:11:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:11:19] Production.INFO: count ==5504 [2025-03-12 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:11:05 - End Time 2025-03-12 11:11:05 [2025-03-12 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663778', 'tblTempUsageDetail_20' ) start [2025-03-12 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663778', 'tblTempUsageDetail_20' ) end [2025-03-12 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663778', 'tblTempVendorCDR_20' ) start [2025-03-12 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663778', 'tblTempVendorCDR_20' ) end [2025-03-12 11:11:22] Production.INFO: ProcessCDR(1,14663778,1,1,2) [2025-03-12 11:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663778', 'tblTempUsageDetail_20' ) start [2025-03-12 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663778', 'tblTempUsageDetail_20' ) end [2025-03-12 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:11:27] Production.INFO: ==12110== Releasing lock... [2025-03-12 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:11:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:12:06 [end_date_ymd] => 2025-03-12 11:12:06 [RateCDR] => 1 ) [2025-03-12 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:12:06' and `end` < '2025-03-12 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:12:19] Production.INFO: count ==5518 [2025-03-12 11:12:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:12:06 - End Time 2025-03-12 11:12:06 [2025-03-12 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663783', 'tblTempUsageDetail_20' ) start [2025-03-12 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663783', 'tblTempUsageDetail_20' ) end [2025-03-12 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663783', 'tblTempVendorCDR_20' ) start [2025-03-12 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663783', 'tblTempVendorCDR_20' ) end [2025-03-12 11:12:22] Production.INFO: ProcessCDR(1,14663783,1,1,2) [2025-03-12 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663783', 'tblTempUsageDetail_20' ) start [2025-03-12 11:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663783', 'tblTempUsageDetail_20' ) end [2025-03-12 11:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:12:28] Production.INFO: ==12261== Releasing lock... [2025-03-12 11:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:12:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:13:06 [end_date_ymd] => 2025-03-12 11:13:06 [RateCDR] => 1 ) [2025-03-12 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:13:06' and `end` < '2025-03-12 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:13:20] Production.INFO: count ==5532 [2025-03-12 11:13:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:13:06 - End Time 2025-03-12 11:13:06 [2025-03-12 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663788', 'tblTempUsageDetail_20' ) start [2025-03-12 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663788', 'tblTempUsageDetail_20' ) end [2025-03-12 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663788', 'tblTempVendorCDR_20' ) start [2025-03-12 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663788', 'tblTempVendorCDR_20' ) end [2025-03-12 11:13:23] Production.INFO: ProcessCDR(1,14663788,1,1,2) [2025-03-12 11:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663788', 'tblTempUsageDetail_20' ) start [2025-03-12 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663788', 'tblTempUsageDetail_20' ) end [2025-03-12 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:13:28] Production.INFO: ==12333== Releasing lock... [2025-03-12 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:13:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:14:05 [end_date_ymd] => 2025-03-12 11:14:05 [RateCDR] => 1 ) [2025-03-12 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:14:05' and `end` < '2025-03-12 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:14:19] Production.INFO: count ==5552 [2025-03-12 11:14:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:14:05 - End Time 2025-03-12 11:14:05 [2025-03-12 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663793', 'tblTempUsageDetail_20' ) start [2025-03-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663793', 'tblTempUsageDetail_20' ) end [2025-03-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663793', 'tblTempVendorCDR_20' ) start [2025-03-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663793', 'tblTempVendorCDR_20' ) end [2025-03-12 11:14:22] Production.INFO: ProcessCDR(1,14663793,1,1,2) [2025-03-12 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663793', 'tblTempUsageDetail_20' ) start [2025-03-12 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663793', 'tblTempUsageDetail_20' ) end [2025-03-12 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:14:27] Production.INFO: ==12403== Releasing lock... [2025-03-12 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:14:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:15:06 [end_date_ymd] => 2025-03-12 11:15:06 [RateCDR] => 1 ) [2025-03-12 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:15:06' and `end` < '2025-03-12 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:15:19] Production.INFO: count ==5558 [2025-03-12 11:15:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:15:06 - End Time 2025-03-12 11:15:06 [2025-03-12 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663798', 'tblTempUsageDetail_20' ) start [2025-03-12 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663798', 'tblTempUsageDetail_20' ) end [2025-03-12 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663798', 'tblTempVendorCDR_20' ) start [2025-03-12 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663798', 'tblTempVendorCDR_20' ) end [2025-03-12 11:15:22] Production.INFO: ProcessCDR(1,14663798,1,1,2) [2025-03-12 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663798', 'tblTempUsageDetail_20' ) start [2025-03-12 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663798', 'tblTempUsageDetail_20' ) end [2025-03-12 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:15:28] Production.INFO: ==12594== Releasing lock... [2025-03-12 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:15:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:16:05 [end_date_ymd] => 2025-03-12 11:16:05 [RateCDR] => 1 ) [2025-03-12 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:16:05' and `end` < '2025-03-12 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:16:18] Production.INFO: count ==5577 [2025-03-12 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:16:05 - End Time 2025-03-12 11:16:05 [2025-03-12 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663803', 'tblTempUsageDetail_20' ) start [2025-03-12 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663803', 'tblTempUsageDetail_20' ) end [2025-03-12 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663803', 'tblTempVendorCDR_20' ) start [2025-03-12 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663803', 'tblTempVendorCDR_20' ) end [2025-03-12 11:16:22] Production.INFO: ProcessCDR(1,14663803,1,1,2) [2025-03-12 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663803', 'tblTempUsageDetail_20' ) start [2025-03-12 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663803', 'tblTempUsageDetail_20' ) end [2025-03-12 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:16:27] Production.INFO: ==12666== Releasing lock... [2025-03-12 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:16:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:17:06 [end_date_ymd] => 2025-03-12 11:17:06 [RateCDR] => 1 ) [2025-03-12 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:17:06' and `end` < '2025-03-12 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:17:19] Production.INFO: count ==5575 [2025-03-12 11:17:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:17:06 - End Time 2025-03-12 11:17:06 [2025-03-12 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663808', 'tblTempUsageDetail_20' ) start [2025-03-12 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663808', 'tblTempUsageDetail_20' ) end [2025-03-12 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663808', 'tblTempVendorCDR_20' ) start [2025-03-12 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663808', 'tblTempVendorCDR_20' ) end [2025-03-12 11:17:22] Production.INFO: ProcessCDR(1,14663808,1,1,2) [2025-03-12 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663808', 'tblTempUsageDetail_20' ) start [2025-03-12 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663808', 'tblTempUsageDetail_20' ) end [2025-03-12 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:17:28] Production.INFO: ==12742== Releasing lock... [2025-03-12 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:17:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:18:05 [end_date_ymd] => 2025-03-12 11:18:05 [RateCDR] => 1 ) [2025-03-12 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:18:05' and `end` < '2025-03-12 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:18:18] Production.INFO: count ==5588 [2025-03-12 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:18:05 - End Time 2025-03-12 11:18:05 [2025-03-12 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663813', 'tblTempUsageDetail_20' ) start [2025-03-12 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663813', 'tblTempUsageDetail_20' ) end [2025-03-12 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663813', 'tblTempVendorCDR_20' ) start [2025-03-12 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663813', 'tblTempVendorCDR_20' ) end [2025-03-12 11:18:21] Production.INFO: ProcessCDR(1,14663813,1,1,2) [2025-03-12 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663813', 'tblTempUsageDetail_20' ) start [2025-03-12 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663813', 'tblTempUsageDetail_20' ) end [2025-03-12 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:18:27] Production.INFO: ==12815== Releasing lock... [2025-03-12 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:18:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:19:06 [end_date_ymd] => 2025-03-12 11:19:06 [RateCDR] => 1 ) [2025-03-12 11: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` >= '2025-03-12 08:19:06' and `end` < '2025-03-12 11: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 ,'') [2025-03-12 11:19:19] Production.INFO: count ==5597 [2025-03-12 11:19:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:19:06 - End Time 2025-03-12 11:19:06 [2025-03-12 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663818', 'tblTempUsageDetail_20' ) start [2025-03-12 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663818', 'tblTempUsageDetail_20' ) end [2025-03-12 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663818', 'tblTempVendorCDR_20' ) start [2025-03-12 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663818', 'tblTempVendorCDR_20' ) end [2025-03-12 11:19:22] Production.INFO: ProcessCDR(1,14663818,1,1,2) [2025-03-12 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663818', 'tblTempUsageDetail_20' ) start [2025-03-12 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663818', 'tblTempUsageDetail_20' ) end [2025-03-12 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:19:28] Production.INFO: ==12922== Releasing lock... [2025-03-12 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:19:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:20:06 [end_date_ymd] => 2025-03-12 11:20:06 [RateCDR] => 1 ) [2025-03-12 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:20:06' and `end` < '2025-03-12 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:20:19] Production.INFO: count ==5609 [2025-03-12 11:20:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:20:06 - End Time 2025-03-12 11:20:06 [2025-03-12 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663824', 'tblTempUsageDetail_20' ) start [2025-03-12 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663824', 'tblTempUsageDetail_20' ) end [2025-03-12 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663824', 'tblTempVendorCDR_20' ) start [2025-03-12 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663824', 'tblTempVendorCDR_20' ) end [2025-03-12 11:20:23] Production.INFO: ProcessCDR(1,14663824,1,1,2) [2025-03-12 11:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663824', 'tblTempUsageDetail_20' ) start [2025-03-12 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663824', 'tblTempUsageDetail_20' ) end [2025-03-12 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:20:29] Production.INFO: ==12993== Releasing lock... [2025-03-12 11:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:20:29] Production.INFO: 70 MB #Memory Used# [2025-03-12 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:21:06 [end_date_ymd] => 2025-03-12 11:21:06 [RateCDR] => 1 ) [2025-03-12 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:21:06' and `end` < '2025-03-12 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:21:19] Production.INFO: count ==5692 [2025-03-12 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:21:06 - End Time 2025-03-12 11:21:06 [2025-03-12 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663829', 'tblTempUsageDetail_20' ) start [2025-03-12 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663829', 'tblTempUsageDetail_20' ) end [2025-03-12 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663829', 'tblTempVendorCDR_20' ) start [2025-03-12 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663829', 'tblTempVendorCDR_20' ) end [2025-03-12 11:21:22] Production.INFO: ProcessCDR(1,14663829,1,1,2) [2025-03-12 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663829', 'tblTempUsageDetail_20' ) start [2025-03-12 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663829', 'tblTempUsageDetail_20' ) end [2025-03-12 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:21:27] Production.INFO: ==13072== Releasing lock... [2025-03-12 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:21:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:22:05 [end_date_ymd] => 2025-03-12 11:22:05 [RateCDR] => 1 ) [2025-03-12 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:22:05' and `end` < '2025-03-12 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:22:19] Production.INFO: count ==5686 [2025-03-12 11:22:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:22:05 - End Time 2025-03-12 11:22:05 [2025-03-12 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663834', 'tblTempUsageDetail_20' ) start [2025-03-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663834', 'tblTempUsageDetail_20' ) end [2025-03-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663834', 'tblTempVendorCDR_20' ) start [2025-03-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663834', 'tblTempVendorCDR_20' ) end [2025-03-12 11:22:22] Production.INFO: ProcessCDR(1,14663834,1,1,2) [2025-03-12 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663834', 'tblTempUsageDetail_20' ) start [2025-03-12 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663834', 'tblTempUsageDetail_20' ) end [2025-03-12 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:22:28] Production.INFO: ==13153== Releasing lock... [2025-03-12 11:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:22:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:23:05 [end_date_ymd] => 2025-03-12 11:23:05 [RateCDR] => 1 ) [2025-03-12 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:23:05' and `end` < '2025-03-12 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:23:18] Production.INFO: count ==5705 [2025-03-12 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:23:05 - End Time 2025-03-12 11:23:05 [2025-03-12 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663839', 'tblTempUsageDetail_20' ) start [2025-03-12 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663839', 'tblTempUsageDetail_20' ) end [2025-03-12 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663839', 'tblTempVendorCDR_20' ) start [2025-03-12 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663839', 'tblTempVendorCDR_20' ) end [2025-03-12 11:23:21] Production.INFO: ProcessCDR(1,14663839,1,1,2) [2025-03-12 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663839', 'tblTempUsageDetail_20' ) start [2025-03-12 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663839', 'tblTempUsageDetail_20' ) end [2025-03-12 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:23:27] Production.INFO: ==13256== Releasing lock... [2025-03-12 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:23:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:24:06 [end_date_ymd] => 2025-03-12 11:24:06 [RateCDR] => 1 ) [2025-03-12 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:24:06' and `end` < '2025-03-12 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:24:19] Production.INFO: count ==5722 [2025-03-12 11:24:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:24:06 - End Time 2025-03-12 11:24:06 [2025-03-12 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663844', 'tblTempUsageDetail_20' ) start [2025-03-12 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663844', 'tblTempUsageDetail_20' ) end [2025-03-12 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663844', 'tblTempVendorCDR_20' ) start [2025-03-12 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663844', 'tblTempVendorCDR_20' ) end [2025-03-12 11:24:22] Production.INFO: ProcessCDR(1,14663844,1,1,2) [2025-03-12 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663844', 'tblTempUsageDetail_20' ) start [2025-03-12 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663844', 'tblTempUsageDetail_20' ) end [2025-03-12 11:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:24:28] Production.INFO: ==13331== Releasing lock... [2025-03-12 11:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:24:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:25:05 [end_date_ymd] => 2025-03-12 11:25:05 [RateCDR] => 1 ) [2025-03-12 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:25:05' and `end` < '2025-03-12 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:25:18] Production.INFO: count ==5711 [2025-03-12 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:25:05 - End Time 2025-03-12 11:25:05 [2025-03-12 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663849', 'tblTempUsageDetail_20' ) start [2025-03-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663849', 'tblTempUsageDetail_20' ) end [2025-03-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663849', 'tblTempVendorCDR_20' ) start [2025-03-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663849', 'tblTempVendorCDR_20' ) end [2025-03-12 11:25:21] Production.INFO: ProcessCDR(1,14663849,1,1,2) [2025-03-12 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663849', 'tblTempUsageDetail_20' ) start [2025-03-12 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663849', 'tblTempUsageDetail_20' ) end [2025-03-12 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:25:27] Production.INFO: ==13404== Releasing lock... [2025-03-12 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:25:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:26:06 [end_date_ymd] => 2025-03-12 11:26:06 [RateCDR] => 1 ) [2025-03-12 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:26:06' and `end` < '2025-03-12 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:26:19] Production.INFO: count ==5708 [2025-03-12 11:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:26:06 - End Time 2025-03-12 11:26:06 [2025-03-12 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663854', 'tblTempUsageDetail_20' ) start [2025-03-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663854', 'tblTempUsageDetail_20' ) end [2025-03-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663854', 'tblTempVendorCDR_20' ) start [2025-03-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663854', 'tblTempVendorCDR_20' ) end [2025-03-12 11:26:22] Production.INFO: ProcessCDR(1,14663854,1,1,2) [2025-03-12 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663854', 'tblTempUsageDetail_20' ) start [2025-03-12 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663854', 'tblTempUsageDetail_20' ) end [2025-03-12 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:26:27] Production.INFO: ==13476== Releasing lock... [2025-03-12 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:26:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:27:05 [end_date_ymd] => 2025-03-12 11:27:05 [RateCDR] => 1 ) [2025-03-12 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:27:05' and `end` < '2025-03-12 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:27:18] Production.INFO: count ==5710 [2025-03-12 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:27:05 - End Time 2025-03-12 11:27:05 [2025-03-12 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663859', 'tblTempUsageDetail_20' ) start [2025-03-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663859', 'tblTempUsageDetail_20' ) end [2025-03-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663859', 'tblTempVendorCDR_20' ) start [2025-03-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663859', 'tblTempVendorCDR_20' ) end [2025-03-12 11:27:21] Production.INFO: ProcessCDR(1,14663859,1,1,2) [2025-03-12 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663859', 'tblTempUsageDetail_20' ) start [2025-03-12 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663859', 'tblTempUsageDetail_20' ) end [2025-03-12 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:27:27] Production.INFO: ==13548== Releasing lock... [2025-03-12 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:27:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:28:05 [end_date_ymd] => 2025-03-12 11:28:05 [RateCDR] => 1 ) [2025-03-12 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:28:05' and `end` < '2025-03-12 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:28:19] Production.INFO: count ==5739 [2025-03-12 11:28:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:28:05 - End Time 2025-03-12 11:28:05 [2025-03-12 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663864', 'tblTempUsageDetail_20' ) start [2025-03-12 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663864', 'tblTempUsageDetail_20' ) end [2025-03-12 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663864', 'tblTempVendorCDR_20' ) start [2025-03-12 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663864', 'tblTempVendorCDR_20' ) end [2025-03-12 11:28:22] Production.INFO: ProcessCDR(1,14663864,1,1,2) [2025-03-12 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663864', 'tblTempUsageDetail_20' ) start [2025-03-12 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663864', 'tblTempUsageDetail_20' ) end [2025-03-12 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:28:26] Production.INFO: ==13620== Releasing lock... [2025-03-12 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:28:26] Production.INFO: 71 MB #Memory Used# [2025-03-12 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:29:06 [end_date_ymd] => 2025-03-12 11:29:06 [RateCDR] => 1 ) [2025-03-12 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:29:06' and `end` < '2025-03-12 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:29:19] Production.INFO: count ==5749 [2025-03-12 11:29:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:29:06 - End Time 2025-03-12 11:29:06 [2025-03-12 11:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663869', 'tblTempUsageDetail_20' ) start [2025-03-12 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663869', 'tblTempUsageDetail_20' ) end [2025-03-12 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663869', 'tblTempVendorCDR_20' ) start [2025-03-12 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663869', 'tblTempVendorCDR_20' ) end [2025-03-12 11:29:22] Production.INFO: ProcessCDR(1,14663869,1,1,2) [2025-03-12 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663869', 'tblTempUsageDetail_20' ) start [2025-03-12 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663869', 'tblTempUsageDetail_20' ) end [2025-03-12 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:29:28] Production.INFO: ==13690== Releasing lock... [2025-03-12 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:29:28] Production.INFO: 71 MB #Memory Used# [2025-03-12 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:30:06 [end_date_ymd] => 2025-03-12 11:30:06 [RateCDR] => 1 ) [2025-03-12 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:30:06' and `end` < '2025-03-12 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:30:19] Production.INFO: count ==5753 [2025-03-12 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:30:06 - End Time 2025-03-12 11:30:06 [2025-03-12 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663874', 'tblTempUsageDetail_20' ) start [2025-03-12 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663874', 'tblTempUsageDetail_20' ) end [2025-03-12 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663874', 'tblTempVendorCDR_20' ) start [2025-03-12 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663874', 'tblTempVendorCDR_20' ) end [2025-03-12 11:30:22] Production.INFO: ProcessCDR(1,14663874,1,1,2) [2025-03-12 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663874', 'tblTempUsageDetail_20' ) start [2025-03-12 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663874', 'tblTempUsageDetail_20' ) end [2025-03-12 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:30:27] Production.INFO: ==13770== Releasing lock... [2025-03-12 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:30:27] Production.INFO: 71 MB #Memory Used# [2025-03-12 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:31:05 [end_date_ymd] => 2025-03-12 11:31:05 [RateCDR] => 1 ) [2025-03-12 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:31:05' and `end` < '2025-03-12 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:31:18] Production.INFO: count ==5866 [2025-03-12 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:31:05 - End Time 2025-03-12 11:31:05 [2025-03-12 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663880', 'tblTempUsageDetail_20' ) start [2025-03-12 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663880', 'tblTempUsageDetail_20' ) end [2025-03-12 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663880', 'tblTempVendorCDR_20' ) start [2025-03-12 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663880', 'tblTempVendorCDR_20' ) end [2025-03-12 11:31:21] Production.INFO: ProcessCDR(1,14663880,1,1,2) [2025-03-12 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663880', 'tblTempUsageDetail_20' ) start [2025-03-12 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663880', 'tblTempUsageDetail_20' ) end [2025-03-12 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:31:27] Production.INFO: ==13881== Releasing lock... [2025-03-12 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:31:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:32:06 [end_date_ymd] => 2025-03-12 11:32:06 [RateCDR] => 1 ) [2025-03-12 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:32:06' and `end` < '2025-03-12 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:32:19] Production.INFO: count ==5863 [2025-03-12 11:32:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:32:06 - End Time 2025-03-12 11:32:06 [2025-03-12 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663885', 'tblTempUsageDetail_20' ) start [2025-03-12 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663885', 'tblTempUsageDetail_20' ) end [2025-03-12 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663885', 'tblTempVendorCDR_20' ) start [2025-03-12 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663885', 'tblTempVendorCDR_20' ) end [2025-03-12 11:32:22] Production.INFO: ProcessCDR(1,14663885,1,1,2) [2025-03-12 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663885', 'tblTempUsageDetail_20' ) start [2025-03-12 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663885', 'tblTempUsageDetail_20' ) end [2025-03-12 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:32:28] Production.INFO: ==13954== Releasing lock... [2025-03-12 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:32:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:33:06 [end_date_ymd] => 2025-03-12 11:33:06 [RateCDR] => 1 ) [2025-03-12 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:33:06' and `end` < '2025-03-12 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:33:19] Production.INFO: count ==5880 [2025-03-12 11:33:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:33:06 - End Time 2025-03-12 11:33:06 [2025-03-12 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663890', 'tblTempUsageDetail_20' ) start [2025-03-12 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663890', 'tblTempUsageDetail_20' ) end [2025-03-12 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663890', 'tblTempVendorCDR_20' ) start [2025-03-12 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663890', 'tblTempVendorCDR_20' ) end [2025-03-12 11:33:22] Production.INFO: ProcessCDR(1,14663890,1,1,2) [2025-03-12 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663890', 'tblTempUsageDetail_20' ) start [2025-03-12 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663890', 'tblTempUsageDetail_20' ) end [2025-03-12 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:33:28] Production.INFO: ==14030== Releasing lock... [2025-03-12 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:33:28] Production.INFO: 72 MB #Memory Used# [2025-03-12 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:34:05 [end_date_ymd] => 2025-03-12 11:34:05 [RateCDR] => 1 ) [2025-03-12 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:34:05' and `end` < '2025-03-12 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:34:19] Production.INFO: count ==5888 [2025-03-12 11:34:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:34:05 - End Time 2025-03-12 11:34:05 [2025-03-12 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663895', 'tblTempUsageDetail_20' ) start [2025-03-12 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663895', 'tblTempUsageDetail_20' ) end [2025-03-12 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663895', 'tblTempVendorCDR_20' ) start [2025-03-12 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663895', 'tblTempVendorCDR_20' ) end [2025-03-12 11:34:22] Production.INFO: ProcessCDR(1,14663895,1,1,2) [2025-03-12 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663895', 'tblTempUsageDetail_20' ) start [2025-03-12 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663895', 'tblTempUsageDetail_20' ) end [2025-03-12 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:34:27] Production.INFO: ==14110== Releasing lock... [2025-03-12 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:34:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:35:06 [end_date_ymd] => 2025-03-12 11:35:06 [RateCDR] => 1 ) [2025-03-12 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:35:06' and `end` < '2025-03-12 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:35:19] Production.INFO: count ==5904 [2025-03-12 11:35:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:35:06 - End Time 2025-03-12 11:35:06 [2025-03-12 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663900', 'tblTempUsageDetail_20' ) start [2025-03-12 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663900', 'tblTempUsageDetail_20' ) end [2025-03-12 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663900', 'tblTempVendorCDR_20' ) start [2025-03-12 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663900', 'tblTempVendorCDR_20' ) end [2025-03-12 11:35:22] Production.INFO: ProcessCDR(1,14663900,1,1,2) [2025-03-12 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663900', 'tblTempUsageDetail_20' ) start [2025-03-12 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663900', 'tblTempUsageDetail_20' ) end [2025-03-12 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:35:28] Production.INFO: ==14180== Releasing lock... [2025-03-12 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:35:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:36:06 [end_date_ymd] => 2025-03-12 11:36:06 [RateCDR] => 1 ) [2025-03-12 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:36:06' and `end` < '2025-03-12 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:36:19] Production.INFO: count ==5902 [2025-03-12 11:36:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:36:06 - End Time 2025-03-12 11:36:06 [2025-03-12 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663905', 'tblTempUsageDetail_20' ) start [2025-03-12 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663905', 'tblTempUsageDetail_20' ) end [2025-03-12 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663905', 'tblTempVendorCDR_20' ) start [2025-03-12 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663905', 'tblTempVendorCDR_20' ) end [2025-03-12 11:36:22] Production.INFO: ProcessCDR(1,14663905,1,1,2) [2025-03-12 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663905', 'tblTempUsageDetail_20' ) start [2025-03-12 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663905', 'tblTempUsageDetail_20' ) end [2025-03-12 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:36:28] Production.INFO: ==14251== Releasing lock... [2025-03-12 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:36:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:37:06 [end_date_ymd] => 2025-03-12 11:37:06 [RateCDR] => 1 ) [2025-03-12 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:37:06' and `end` < '2025-03-12 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:37:19] Production.INFO: count ==5898 [2025-03-12 11:37:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:37:06 - End Time 2025-03-12 11:37:06 [2025-03-12 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663910', 'tblTempUsageDetail_20' ) start [2025-03-12 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663910', 'tblTempUsageDetail_20' ) end [2025-03-12 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663910', 'tblTempVendorCDR_20' ) start [2025-03-12 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663910', 'tblTempVendorCDR_20' ) end [2025-03-12 11:37:22] Production.INFO: ProcessCDR(1,14663910,1,1,2) [2025-03-12 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663910', 'tblTempUsageDetail_20' ) start [2025-03-12 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663910', 'tblTempUsageDetail_20' ) end [2025-03-12 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:37:28] Production.INFO: ==14322== Releasing lock... [2025-03-12 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:37:28] Production.INFO: 72 MB #Memory Used# [2025-03-12 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:38:06 [end_date_ymd] => 2025-03-12 11:38:06 [RateCDR] => 1 ) [2025-03-12 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:38:06' and `end` < '2025-03-12 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:38:19] Production.INFO: count ==5907 [2025-03-12 11:38:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:38:06 - End Time 2025-03-12 11:38:06 [2025-03-12 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663915', 'tblTempUsageDetail_20' ) start [2025-03-12 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663915', 'tblTempUsageDetail_20' ) end [2025-03-12 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663915', 'tblTempVendorCDR_20' ) start [2025-03-12 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663915', 'tblTempVendorCDR_20' ) end [2025-03-12 11:38:22] Production.INFO: ProcessCDR(1,14663915,1,1,2) [2025-03-12 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663915', 'tblTempUsageDetail_20' ) start [2025-03-12 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663915', 'tblTempUsageDetail_20' ) end [2025-03-12 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:38:28] Production.INFO: ==14395== Releasing lock... [2025-03-12 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:38:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:39:05 [end_date_ymd] => 2025-03-12 11:39:05 [RateCDR] => 1 ) [2025-03-12 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:39:05' and `end` < '2025-03-12 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:39:19] Production.INFO: count ==5911 [2025-03-12 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:39:05 - End Time 2025-03-12 11:39:05 [2025-03-12 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663920', 'tblTempUsageDetail_20' ) start [2025-03-12 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663920', 'tblTempUsageDetail_20' ) end [2025-03-12 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663920', 'tblTempVendorCDR_20' ) start [2025-03-12 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663920', 'tblTempVendorCDR_20' ) end [2025-03-12 11:39:22] Production.INFO: ProcessCDR(1,14663920,1,1,2) [2025-03-12 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663920', 'tblTempUsageDetail_20' ) start [2025-03-12 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663920', 'tblTempUsageDetail_20' ) end [2025-03-12 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:39:28] Production.INFO: ==14466== Releasing lock... [2025-03-12 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:39:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:40:06 [end_date_ymd] => 2025-03-12 11:40:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:40:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:40:19] Production.INFO: count ==5919 [2025-03-12 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:40:06 - End Time 2025-03-12 11:40:06 [2025-03-12 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663926', 'tblTempUsageDetail_20' ) start [2025-03-12 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663926', 'tblTempUsageDetail_20' ) end [2025-03-12 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663926', 'tblTempVendorCDR_20' ) start [2025-03-12 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663926', 'tblTempVendorCDR_20' ) end [2025-03-12 11:40:22] Production.INFO: ProcessCDR(1,14663926,1,1,2) [2025-03-12 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663926', 'tblTempUsageDetail_20' ) start [2025-03-12 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663926', 'tblTempUsageDetail_20' ) end [2025-03-12 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:40:28] Production.INFO: ==14546== Releasing lock... [2025-03-12 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:40:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:41:06 [end_date_ymd] => 2025-03-12 11:41:06 [RateCDR] => 1 ) [2025-03-12 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:41:06' and `end` < '2025-03-12 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:41:19] Production.INFO: count ==5973 [2025-03-12 11:41:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:41:06 - End Time 2025-03-12 11:41:06 [2025-03-12 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663931', 'tblTempUsageDetail_20' ) start [2025-03-12 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663931', 'tblTempUsageDetail_20' ) end [2025-03-12 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663931', 'tblTempVendorCDR_20' ) start [2025-03-12 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663931', 'tblTempVendorCDR_20' ) end [2025-03-12 11:41:23] Production.INFO: ProcessCDR(1,14663931,1,1,2) [2025-03-12 11:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663931', 'tblTempUsageDetail_20' ) start [2025-03-12 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663931', 'tblTempUsageDetail_20' ) end [2025-03-12 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:41:28] Production.INFO: ==14646== Releasing lock... [2025-03-12 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:41:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:42:06 [end_date_ymd] => 2025-03-12 11:42:06 [RateCDR] => 1 ) [2025-03-12 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:42:06' and `end` < '2025-03-12 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:42:19] Production.INFO: count ==5978 [2025-03-12 11:42:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:42:06 - End Time 2025-03-12 11:42:06 [2025-03-12 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663936', 'tblTempUsageDetail_20' ) start [2025-03-12 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663936', 'tblTempUsageDetail_20' ) end [2025-03-12 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663936', 'tblTempVendorCDR_20' ) start [2025-03-12 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663936', 'tblTempVendorCDR_20' ) end [2025-03-12 11:42:22] Production.INFO: ProcessCDR(1,14663936,1,1,2) [2025-03-12 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663936', 'tblTempUsageDetail_20' ) start [2025-03-12 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663936', 'tblTempUsageDetail_20' ) end [2025-03-12 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:42:28] Production.INFO: ==14761== Releasing lock... [2025-03-12 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:42:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:43:05 [end_date_ymd] => 2025-03-12 11:43:05 [RateCDR] => 1 ) [2025-03-12 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:43:05' and `end` < '2025-03-12 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:43:19] Production.INFO: count ==5988 [2025-03-12 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:43:05 - End Time 2025-03-12 11:43:05 [2025-03-12 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663940', 'tblTempUsageDetail_20' ) start [2025-03-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663940', 'tblTempUsageDetail_20' ) end [2025-03-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663940', 'tblTempVendorCDR_20' ) start [2025-03-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663940', 'tblTempVendorCDR_20' ) end [2025-03-12 11:43:22] Production.INFO: ProcessCDR(1,14663940,1,1,2) [2025-03-12 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663940', 'tblTempUsageDetail_20' ) start [2025-03-12 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663940', 'tblTempUsageDetail_20' ) end [2025-03-12 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:43:27] Production.INFO: ==14836== Releasing lock... [2025-03-12 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:43:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:44:05 [end_date_ymd] => 2025-03-12 11:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:44:19] Production.INFO: count ==6023 [2025-03-12 11:44:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:44:05 - End Time 2025-03-12 11:44:05 [2025-03-12 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663946', 'tblTempUsageDetail_20' ) start [2025-03-12 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663946', 'tblTempUsageDetail_20' ) end [2025-03-12 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663946', 'tblTempVendorCDR_20' ) start [2025-03-12 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663946', 'tblTempVendorCDR_20' ) end [2025-03-12 11:44:22] Production.INFO: ProcessCDR(1,14663946,1,1,2) [2025-03-12 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663946', 'tblTempUsageDetail_20' ) start [2025-03-12 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663946', 'tblTempUsageDetail_20' ) end [2025-03-12 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:44:28] Production.INFO: ==14906== Releasing lock... [2025-03-12 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:44:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:45:06 [end_date_ymd] => 2025-03-12 11:45:06 [RateCDR] => 1 ) [2025-03-12 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:45:06' and `end` < '2025-03-12 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:45:19] Production.INFO: count ==6045 [2025-03-12 11:45:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:45:06 - End Time 2025-03-12 11:45:06 [2025-03-12 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663951', 'tblTempUsageDetail_20' ) start [2025-03-12 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663951', 'tblTempUsageDetail_20' ) end [2025-03-12 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663951', 'tblTempVendorCDR_20' ) start [2025-03-12 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663951', 'tblTempVendorCDR_20' ) end [2025-03-12 11:45:22] Production.INFO: ProcessCDR(1,14663951,1,1,2) [2025-03-12 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663951', 'tblTempUsageDetail_20' ) start [2025-03-12 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663951', 'tblTempUsageDetail_20' ) end [2025-03-12 11:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:45:28] Production.INFO: ==14977== Releasing lock... [2025-03-12 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:45:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:46:05 [end_date_ymd] => 2025-03-12 11:46:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:46:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:46:19] Production.INFO: count ==6065 [2025-03-12 11:46:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:46:05 - End Time 2025-03-12 11:46:05 [2025-03-12 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663956', 'tblTempUsageDetail_20' ) start [2025-03-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663956', 'tblTempUsageDetail_20' ) end [2025-03-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663956', 'tblTempVendorCDR_20' ) start [2025-03-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663956', 'tblTempVendorCDR_20' ) end [2025-03-12 11:46:22] Production.INFO: ProcessCDR(1,14663956,1,1,2) [2025-03-12 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663956', 'tblTempUsageDetail_20' ) start [2025-03-12 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663956', 'tblTempUsageDetail_20' ) end [2025-03-12 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:46:28] Production.INFO: ==15089== Releasing lock... [2025-03-12 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:46:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 11:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:47:07 [end_date_ymd] => 2025-03-12 11:47:07 [RateCDR] => 1 ) [2025-03-12 11:47:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:47:07' and `end` < '2025-03-12 11:47:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:47:20] Production.INFO: count ==6052 [2025-03-12 11:47:23] Production.ERROR: pbx CDR StartTime 2025-03-12 08:47:07 - End Time 2025-03-12 11:47:07 [2025-03-12 11:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663961', 'tblTempUsageDetail_20' ) start [2025-03-12 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663961', 'tblTempUsageDetail_20' ) end [2025-03-12 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663961', 'tblTempVendorCDR_20' ) start [2025-03-12 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663961', 'tblTempVendorCDR_20' ) end [2025-03-12 11:47:23] Production.INFO: ProcessCDR(1,14663961,1,1,2) [2025-03-12 11:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663961', 'tblTempUsageDetail_20' ) start [2025-03-12 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663961', 'tblTempUsageDetail_20' ) end [2025-03-12 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:47:29] Production.INFO: ==15161== Releasing lock... [2025-03-12 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:47:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:48:05 [end_date_ymd] => 2025-03-12 11:48:05 [RateCDR] => 1 ) [2025-03-12 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:48:05' and `end` < '2025-03-12 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:48:19] Production.INFO: count ==6032 [2025-03-12 11:48:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:48:05 - End Time 2025-03-12 11:48:05 [2025-03-12 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663966', 'tblTempUsageDetail_20' ) start [2025-03-12 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663966', 'tblTempUsageDetail_20' ) end [2025-03-12 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663966', 'tblTempVendorCDR_20' ) start [2025-03-12 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663966', 'tblTempVendorCDR_20' ) end [2025-03-12 11:48:22] Production.INFO: ProcessCDR(1,14663966,1,1,2) [2025-03-12 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663966', 'tblTempUsageDetail_20' ) start [2025-03-12 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663966', 'tblTempUsageDetail_20' ) end [2025-03-12 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:48:27] Production.INFO: ==15230== Releasing lock... [2025-03-12 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:48:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:49:06 [end_date_ymd] => 2025-03-12 11:49:06 [RateCDR] => 1 ) [2025-03-12 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:49:06' and `end` < '2025-03-12 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:49:19] Production.INFO: count ==6055 [2025-03-12 11:49:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:49:06 - End Time 2025-03-12 11:49:06 [2025-03-12 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663971', 'tblTempUsageDetail_20' ) start [2025-03-12 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663971', 'tblTempUsageDetail_20' ) end [2025-03-12 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663971', 'tblTempVendorCDR_20' ) start [2025-03-12 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663971', 'tblTempVendorCDR_20' ) end [2025-03-12 11:49:23] Production.INFO: ProcessCDR(1,14663971,1,1,2) [2025-03-12 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663971', 'tblTempUsageDetail_20' ) start [2025-03-12 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663971', 'tblTempUsageDetail_20' ) end [2025-03-12 11:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:49:28] Production.INFO: ==15305== Releasing lock... [2025-03-12 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:49:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:50:06 [end_date_ymd] => 2025-03-12 11:50:06 [RateCDR] => 1 ) [2025-03-12 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:50:06' and `end` < '2025-03-12 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:50:19] Production.INFO: count ==6060 [2025-03-12 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:50:06 - End Time 2025-03-12 11:50:06 [2025-03-12 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663976', 'tblTempUsageDetail_20' ) start [2025-03-12 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663976', 'tblTempUsageDetail_20' ) end [2025-03-12 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663976', 'tblTempVendorCDR_20' ) start [2025-03-12 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663976', 'tblTempVendorCDR_20' ) end [2025-03-12 11:50:23] Production.INFO: ProcessCDR(1,14663976,1,1,2) [2025-03-12 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663976', 'tblTempUsageDetail_20' ) start [2025-03-12 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663976', 'tblTempUsageDetail_20' ) end [2025-03-12 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:50:28] Production.INFO: ==15379== Releasing lock... [2025-03-12 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:50:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:51:05 [end_date_ymd] => 2025-03-12 11:51:05 [RateCDR] => 1 ) [2025-03-12 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:51:05' and `end` < '2025-03-12 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:51:19] Production.INFO: count ==6126 [2025-03-12 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:51:05 - End Time 2025-03-12 11:51:05 [2025-03-12 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663982', 'tblTempUsageDetail_20' ) start [2025-03-12 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663982', 'tblTempUsageDetail_20' ) end [2025-03-12 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663982', 'tblTempVendorCDR_20' ) start [2025-03-12 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663982', 'tblTempVendorCDR_20' ) end [2025-03-12 11:51:22] Production.INFO: ProcessCDR(1,14663982,1,1,2) [2025-03-12 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663982', 'tblTempUsageDetail_20' ) start [2025-03-12 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663982', 'tblTempUsageDetail_20' ) end [2025-03-12 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:51:27] Production.INFO: ==15452== Releasing lock... [2025-03-12 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:51:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:52:06 [end_date_ymd] => 2025-03-12 11:52:06 [RateCDR] => 1 ) [2025-03-12 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:52:06' and `end` < '2025-03-12 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:52:19] Production.INFO: count ==6139 [2025-03-12 11:52:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:52:06 - End Time 2025-03-12 11:52:06 [2025-03-12 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663987', 'tblTempUsageDetail_20' ) start [2025-03-12 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663987', 'tblTempUsageDetail_20' ) end [2025-03-12 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663987', 'tblTempVendorCDR_20' ) start [2025-03-12 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663987', 'tblTempVendorCDR_20' ) end [2025-03-12 11:52:22] Production.INFO: ProcessCDR(1,14663987,1,1,2) [2025-03-12 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663987', 'tblTempUsageDetail_20' ) start [2025-03-12 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663987', 'tblTempUsageDetail_20' ) end [2025-03-12 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:52:28] Production.INFO: ==15524== Releasing lock... [2025-03-12 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:52:28] Production.INFO: 74 MB #Memory Used# [2025-03-12 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:53:05 [end_date_ymd] => 2025-03-12 11:53:05 [RateCDR] => 1 ) [2025-03-12 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:53:05' and `end` < '2025-03-12 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:53:18] Production.INFO: count ==6164 [2025-03-12 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:53:05 - End Time 2025-03-12 11:53:05 [2025-03-12 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663992', 'tblTempUsageDetail_20' ) start [2025-03-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663992', 'tblTempUsageDetail_20' ) end [2025-03-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663992', 'tblTempVendorCDR_20' ) start [2025-03-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663992', 'tblTempVendorCDR_20' ) end [2025-03-12 11:53:22] Production.INFO: ProcessCDR(1,14663992,1,1,2) [2025-03-12 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663992', 'tblTempUsageDetail_20' ) start [2025-03-12 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663992', 'tblTempUsageDetail_20' ) end [2025-03-12 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:53:27] Production.INFO: ==15597== Releasing lock... [2025-03-12 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:53:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:54:05 [end_date_ymd] => 2025-03-12 11:54:05 [RateCDR] => 1 ) [2025-03-12 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:54:05' and `end` < '2025-03-12 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:54:19] Production.INFO: count ==6159 [2025-03-12 11:54:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:54:05 - End Time 2025-03-12 11:54:05 [2025-03-12 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663997', 'tblTempUsageDetail_20' ) start [2025-03-12 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14663997', 'tblTempUsageDetail_20' ) end [2025-03-12 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663997', 'tblTempVendorCDR_20' ) start [2025-03-12 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14663997', 'tblTempVendorCDR_20' ) end [2025-03-12 11:54:22] Production.INFO: ProcessCDR(1,14663997,1,1,2) [2025-03-12 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14663997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14663997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14663997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14663997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663997', 'tblTempUsageDetail_20' ) start [2025-03-12 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14663997', 'tblTempUsageDetail_20' ) end [2025-03-12 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:54:28] Production.INFO: ==15668== Releasing lock... [2025-03-12 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:54:28] Production.INFO: 74 MB #Memory Used# [2025-03-12 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:55:05 [end_date_ymd] => 2025-03-12 11:55:05 [RateCDR] => 1 ) [2025-03-12 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:55:05' and `end` < '2025-03-12 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:55:19] Production.INFO: count ==6180 [2025-03-12 11:55:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:55:05 - End Time 2025-03-12 11:55:05 [2025-03-12 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664002', 'tblTempUsageDetail_20' ) start [2025-03-12 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664002', 'tblTempUsageDetail_20' ) end [2025-03-12 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664002', 'tblTempVendorCDR_20' ) start [2025-03-12 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664002', 'tblTempVendorCDR_20' ) end [2025-03-12 11:55:22] Production.INFO: ProcessCDR(1,14664002,1,1,2) [2025-03-12 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664002', 'tblTempUsageDetail_20' ) start [2025-03-12 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664002', 'tblTempUsageDetail_20' ) end [2025-03-12 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:55:27] Production.INFO: ==15739== Releasing lock... [2025-03-12 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:55:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:56:05 [end_date_ymd] => 2025-03-12 11:56:05 [RateCDR] => 1 ) [2025-03-12 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:56:05' and `end` < '2025-03-12 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:56:19] Production.INFO: count ==6181 [2025-03-12 11:56:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:56:05 - End Time 2025-03-12 11:56:05 [2025-03-12 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664007', 'tblTempUsageDetail_20' ) start [2025-03-12 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664007', 'tblTempUsageDetail_20' ) end [2025-03-12 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664007', 'tblTempVendorCDR_20' ) start [2025-03-12 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664007', 'tblTempVendorCDR_20' ) end [2025-03-12 11:56:22] Production.INFO: ProcessCDR(1,14664007,1,1,2) [2025-03-12 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664007', 'tblTempUsageDetail_20' ) start [2025-03-12 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664007', 'tblTempUsageDetail_20' ) end [2025-03-12 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:56:28] Production.INFO: ==15816== Releasing lock... [2025-03-12 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:56:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:57:05 [end_date_ymd] => 2025-03-12 11:57:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 08:57:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 11:57:18] Production.INFO: count ==6183 [2025-03-12 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:57:05 - End Time 2025-03-12 11:57:05 [2025-03-12 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664012', 'tblTempUsageDetail_20' ) start [2025-03-12 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664012', 'tblTempUsageDetail_20' ) end [2025-03-12 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664012', 'tblTempVendorCDR_20' ) start [2025-03-12 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664012', 'tblTempVendorCDR_20' ) end [2025-03-12 11:57:21] Production.INFO: ProcessCDR(1,14664012,1,1,2) [2025-03-12 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664012', 'tblTempUsageDetail_20' ) start [2025-03-12 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664012', 'tblTempUsageDetail_20' ) end [2025-03-12 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:57:27] Production.INFO: ==15887== Releasing lock... [2025-03-12 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:57:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:58:06 [end_date_ymd] => 2025-03-12 11:58:06 [RateCDR] => 1 ) [2025-03-12 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:58:06' and `end` < '2025-03-12 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:58:19] Production.INFO: count ==6181 [2025-03-12 11:58:22] Production.ERROR: pbx CDR StartTime 2025-03-12 08:58:06 - End Time 2025-03-12 11:58:06 [2025-03-12 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664017', 'tblTempUsageDetail_20' ) start [2025-03-12 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664017', 'tblTempUsageDetail_20' ) end [2025-03-12 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664017', 'tblTempVendorCDR_20' ) start [2025-03-12 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664017', 'tblTempVendorCDR_20' ) end [2025-03-12 11:58:22] Production.INFO: ProcessCDR(1,14664017,1,1,2) [2025-03-12 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664017', 'tblTempUsageDetail_20' ) start [2025-03-12 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664017', 'tblTempUsageDetail_20' ) end [2025-03-12 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:58:28] Production.INFO: ==15958== Releasing lock... [2025-03-12 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:58:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 08:59:05 [end_date_ymd] => 2025-03-12 11:59:05 [RateCDR] => 1 ) [2025-03-12 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 08:59:05' and `end` < '2025-03-12 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 11:59:18] Production.INFO: count ==6162 [2025-03-12 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 08:59:05 - End Time 2025-03-12 11:59:05 [2025-03-12 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664022', 'tblTempUsageDetail_20' ) start [2025-03-12 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664022', 'tblTempUsageDetail_20' ) end [2025-03-12 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664022', 'tblTempVendorCDR_20' ) start [2025-03-12 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664022', 'tblTempVendorCDR_20' ) end [2025-03-12 11:59:22] Production.INFO: ProcessCDR(1,14664022,1,1,2) [2025-03-12 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664022', 'tblTempUsageDetail_20' ) start [2025-03-12 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664022', 'tblTempUsageDetail_20' ) end [2025-03-12 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 11:59:27] Production.INFO: ==16035== Releasing lock... [2025-03-12 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 11:59:27] Production.INFO: 74 MB #Memory Used# [2025-03-12 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:00:06 [end_date_ymd] => 2025-03-12 12:00:06 [RateCDR] => 1 ) [2025-03-12 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:00:06' and `end` < '2025-03-12 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:00:19] Production.INFO: count ==6163 [2025-03-12 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:00:06 - End Time 2025-03-12 12:00:06 [2025-03-12 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664027', 'tblTempUsageDetail_20' ) start [2025-03-12 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664027', 'tblTempUsageDetail_20' ) end [2025-03-12 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664027', 'tblTempVendorCDR_20' ) start [2025-03-12 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664027', 'tblTempVendorCDR_20' ) end [2025-03-12 12:00:23] Production.INFO: ProcessCDR(1,14664027,1,1,2) [2025-03-12 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664027', 'tblTempUsageDetail_20' ) start [2025-03-12 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664027', 'tblTempUsageDetail_20' ) end [2025-03-12 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:00:29] Production.INFO: ==16112== Releasing lock... [2025-03-12 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:00:29] Production.INFO: 74 MB #Memory Used# [2025-03-12 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:01:05 [end_date_ymd] => 2025-03-12 12:01:05 [RateCDR] => 1 ) [2025-03-12 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:01:05' and `end` < '2025-03-12 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:01:18] Production.INFO: count ==6260 [2025-03-12 12:01:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:01:05 - End Time 2025-03-12 12:01:05 [2025-03-12 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664033', 'tblTempUsageDetail_20' ) start [2025-03-12 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664033', 'tblTempUsageDetail_20' ) end [2025-03-12 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664033', 'tblTempVendorCDR_20' ) start [2025-03-12 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664033', 'tblTempVendorCDR_20' ) end [2025-03-12 12:01:22] Production.INFO: ProcessCDR(1,14664033,1,1,2) [2025-03-12 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664033', 'tblTempUsageDetail_20' ) start [2025-03-12 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664033', 'tblTempUsageDetail_20' ) end [2025-03-12 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:01:28] Production.INFO: ==16196== Releasing lock... [2025-03-12 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:01:28] Production.INFO: 74.75 MB #Memory Used# [2025-03-12 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:02:06 [end_date_ymd] => 2025-03-12 12:02:06 [RateCDR] => 1 ) [2025-03-12 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:02:06' and `end` < '2025-03-12 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:02:19] Production.INFO: count ==6292 [2025-03-12 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:02:06 - End Time 2025-03-12 12:02:06 [2025-03-12 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664038', 'tblTempUsageDetail_20' ) start [2025-03-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664038', 'tblTempUsageDetail_20' ) end [2025-03-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664038', 'tblTempVendorCDR_20' ) start [2025-03-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664038', 'tblTempVendorCDR_20' ) end [2025-03-12 12:02:22] Production.INFO: ProcessCDR(1,14664038,1,1,2) [2025-03-12 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664038', 'tblTempUsageDetail_20' ) start [2025-03-12 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664038', 'tblTempUsageDetail_20' ) end [2025-03-12 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:02:29] Production.INFO: ==16309== Releasing lock... [2025-03-12 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:02:29] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:03:05 [end_date_ymd] => 2025-03-12 12:03:05 [RateCDR] => 1 ) [2025-03-12 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:03:05' and `end` < '2025-03-12 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:03:19] Production.INFO: count ==6302 [2025-03-12 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:03:05 - End Time 2025-03-12 12:03:05 [2025-03-12 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664043', 'tblTempUsageDetail_20' ) start [2025-03-12 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664043', 'tblTempUsageDetail_20' ) end [2025-03-12 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664043', 'tblTempVendorCDR_20' ) start [2025-03-12 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664043', 'tblTempVendorCDR_20' ) end [2025-03-12 12:03:22] Production.INFO: ProcessCDR(1,14664043,1,1,2) [2025-03-12 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664043', 'tblTempUsageDetail_20' ) start [2025-03-12 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664043', 'tblTempUsageDetail_20' ) end [2025-03-12 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:03:28] Production.INFO: ==16379== Releasing lock... [2025-03-12 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:03:28] Production.INFO: 75.25 MB #Memory Used# [2025-03-12 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:04:06 [end_date_ymd] => 2025-03-12 12:04:06 [RateCDR] => 1 ) [2025-03-12 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:04:06' and `end` < '2025-03-12 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:04:19] Production.INFO: count ==6276 [2025-03-12 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:04:06 - End Time 2025-03-12 12:04:06 [2025-03-12 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664048', 'tblTempUsageDetail_20' ) start [2025-03-12 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664048', 'tblTempUsageDetail_20' ) end [2025-03-12 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664048', 'tblTempVendorCDR_20' ) start [2025-03-12 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664048', 'tblTempVendorCDR_20' ) end [2025-03-12 12:04:22] Production.INFO: ProcessCDR(1,14664048,1,1,2) [2025-03-12 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664048', 'tblTempUsageDetail_20' ) start [2025-03-12 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664048', 'tblTempUsageDetail_20' ) end [2025-03-12 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:04:28] Production.INFO: ==16451== Releasing lock... [2025-03-12 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:04:28] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:05:05 [end_date_ymd] => 2025-03-12 12:05:05 [RateCDR] => 1 ) [2025-03-12 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:05:05' and `end` < '2025-03-12 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:05:19] Production.INFO: count ==6266 [2025-03-12 12:05:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:05:05 - End Time 2025-03-12 12:05:05 [2025-03-12 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664053', 'tblTempUsageDetail_20' ) start [2025-03-12 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664053', 'tblTempUsageDetail_20' ) end [2025-03-12 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664053', 'tblTempVendorCDR_20' ) start [2025-03-12 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664053', 'tblTempVendorCDR_20' ) end [2025-03-12 12:05:22] Production.INFO: ProcessCDR(1,14664053,1,1,2) [2025-03-12 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664053', 'tblTempUsageDetail_20' ) start [2025-03-12 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664053', 'tblTempUsageDetail_20' ) end [2025-03-12 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:05:28] Production.INFO: ==16525== Releasing lock... [2025-03-12 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:05:28] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:06:05 [end_date_ymd] => 2025-03-12 12:06:05 [RateCDR] => 1 ) [2025-03-12 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:06:05' and `end` < '2025-03-12 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:06:19] Production.INFO: count ==6275 [2025-03-12 12:06:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:06:05 - End Time 2025-03-12 12:06:05 [2025-03-12 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664058', 'tblTempUsageDetail_20' ) start [2025-03-12 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664058', 'tblTempUsageDetail_20' ) end [2025-03-12 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664058', 'tblTempVendorCDR_20' ) start [2025-03-12 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664058', 'tblTempVendorCDR_20' ) end [2025-03-12 12:06:22] Production.INFO: ProcessCDR(1,14664058,1,1,2) [2025-03-12 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664058', 'tblTempUsageDetail_20' ) start [2025-03-12 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664058', 'tblTempUsageDetail_20' ) end [2025-03-12 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:06:28] Production.INFO: ==16598== Releasing lock... [2025-03-12 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:06:28] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:07:05 [end_date_ymd] => 2025-03-12 12:07:05 [RateCDR] => 1 ) [2025-03-12 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:07:05' and `end` < '2025-03-12 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:07:18] Production.INFO: count ==6280 [2025-03-12 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:07:05 - End Time 2025-03-12 12:07:05 [2025-03-12 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664063', 'tblTempUsageDetail_20' ) start [2025-03-12 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664063', 'tblTempUsageDetail_20' ) end [2025-03-12 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664063', 'tblTempVendorCDR_20' ) start [2025-03-12 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664063', 'tblTempVendorCDR_20' ) end [2025-03-12 12:07:21] Production.INFO: ProcessCDR(1,14664063,1,1,2) [2025-03-12 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664063', 'tblTempUsageDetail_20' ) start [2025-03-12 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664063', 'tblTempUsageDetail_20' ) end [2025-03-12 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:07:27] Production.INFO: ==16669== Releasing lock... [2025-03-12 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:07:27] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:08:06 [end_date_ymd] => 2025-03-12 12:08:06 [RateCDR] => 1 ) [2025-03-12 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:08:06' and `end` < '2025-03-12 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:08:19] Production.INFO: count ==6218 [2025-03-12 12:08:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:08:06 - End Time 2025-03-12 12:08:06 [2025-03-12 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664068', 'tblTempUsageDetail_20' ) start [2025-03-12 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664068', 'tblTempUsageDetail_20' ) end [2025-03-12 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664068', 'tblTempVendorCDR_20' ) start [2025-03-12 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664068', 'tblTempVendorCDR_20' ) end [2025-03-12 12:08:23] Production.INFO: ProcessCDR(1,14664068,1,1,2) [2025-03-12 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664068', 'tblTempUsageDetail_20' ) start [2025-03-12 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664068', 'tblTempUsageDetail_20' ) end [2025-03-12 12:08:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:08:29] Production.INFO: ==16742== Releasing lock... [2025-03-12 12:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:08:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:09:05 [end_date_ymd] => 2025-03-12 12:09:05 [RateCDR] => 1 ) [2025-03-12 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:09:05' and `end` < '2025-03-12 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:09:18] Production.INFO: count ==6222 [2025-03-12 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:09:05 - End Time 2025-03-12 12:09:05 [2025-03-12 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664073', 'tblTempUsageDetail_20' ) start [2025-03-12 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664073', 'tblTempUsageDetail_20' ) end [2025-03-12 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664073', 'tblTempVendorCDR_20' ) start [2025-03-12 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664073', 'tblTempVendorCDR_20' ) end [2025-03-12 12:09:21] Production.INFO: ProcessCDR(1,14664073,1,1,2) [2025-03-12 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664073', 'tblTempUsageDetail_20' ) start [2025-03-12 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664073', 'tblTempUsageDetail_20' ) end [2025-03-12 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:09:27] Production.INFO: ==16814== Releasing lock... [2025-03-12 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:09:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:10:06 [end_date_ymd] => 2025-03-12 12:10:06 [RateCDR] => 1 ) [2025-03-12 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:10:06' and `end` < '2025-03-12 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:10:20] Production.INFO: count ==6207 [2025-03-12 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:10:06 - End Time 2025-03-12 12:10:06 [2025-03-12 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664078', 'tblTempUsageDetail_20' ) start [2025-03-12 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664078', 'tblTempUsageDetail_20' ) end [2025-03-12 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664078', 'tblTempVendorCDR_20' ) start [2025-03-12 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664078', 'tblTempVendorCDR_20' ) end [2025-03-12 12:10:23] Production.INFO: ProcessCDR(1,14664078,1,1,2) [2025-03-12 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664078', 'tblTempUsageDetail_20' ) start [2025-03-12 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664078', 'tblTempUsageDetail_20' ) end [2025-03-12 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:10:28] Production.INFO: ==16893== Releasing lock... [2025-03-12 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:10:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:11:05 [end_date_ymd] => 2025-03-12 12:11:05 [RateCDR] => 1 ) [2025-03-12 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:11:05' and `end` < '2025-03-12 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:11:18] Production.INFO: count ==6220 [2025-03-12 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:11:05 - End Time 2025-03-12 12:11:05 [2025-03-12 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664084', 'tblTempUsageDetail_20' ) start [2025-03-12 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664084', 'tblTempUsageDetail_20' ) end [2025-03-12 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664084', 'tblTempVendorCDR_20' ) start [2025-03-12 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664084', 'tblTempVendorCDR_20' ) end [2025-03-12 12:11:22] Production.INFO: ProcessCDR(1,14664084,1,1,2) [2025-03-12 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664084', 'tblTempUsageDetail_20' ) start [2025-03-12 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664084', 'tblTempUsageDetail_20' ) end [2025-03-12 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:11:27] Production.INFO: ==16966== Releasing lock... [2025-03-12 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:11:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:12:06 [end_date_ymd] => 2025-03-12 12:12:06 [RateCDR] => 1 ) [2025-03-12 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:12:06' and `end` < '2025-03-12 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:12:19] Production.INFO: count ==6212 [2025-03-12 12:12:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:12:06 - End Time 2025-03-12 12:12:06 [2025-03-12 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664089', 'tblTempUsageDetail_20' ) start [2025-03-12 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664089', 'tblTempUsageDetail_20' ) end [2025-03-12 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664089', 'tblTempVendorCDR_20' ) start [2025-03-12 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664089', 'tblTempVendorCDR_20' ) end [2025-03-12 12:12:23] Production.INFO: ProcessCDR(1,14664089,1,1,2) [2025-03-12 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664089', 'tblTempUsageDetail_20' ) start [2025-03-12 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664089', 'tblTempUsageDetail_20' ) end [2025-03-12 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:12:28] Production.INFO: ==17039== Releasing lock... [2025-03-12 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:12:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:13:05 [end_date_ymd] => 2025-03-12 12:13:05 [RateCDR] => 1 ) [2025-03-12 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:13:05' and `end` < '2025-03-12 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:13:18] Production.INFO: count ==6197 [2025-03-12 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:13:05 - End Time 2025-03-12 12:13:05 [2025-03-12 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664094', 'tblTempUsageDetail_20' ) start [2025-03-12 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664094', 'tblTempUsageDetail_20' ) end [2025-03-12 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664094', 'tblTempVendorCDR_20' ) start [2025-03-12 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664094', 'tblTempVendorCDR_20' ) end [2025-03-12 12:13:22] Production.INFO: ProcessCDR(1,14664094,1,1,2) [2025-03-12 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664094', 'tblTempUsageDetail_20' ) start [2025-03-12 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664094', 'tblTempUsageDetail_20' ) end [2025-03-12 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:13:27] Production.INFO: ==17109== Releasing lock... [2025-03-12 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:13:27] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:14:06 [end_date_ymd] => 2025-03-12 12:14:06 [RateCDR] => 1 ) [2025-03-12 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:14:06' and `end` < '2025-03-12 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:14:19] Production.INFO: count ==6210 [2025-03-12 12:14:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:14:06 - End Time 2025-03-12 12:14:06 [2025-03-12 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664099', 'tblTempUsageDetail_20' ) start [2025-03-12 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664099', 'tblTempUsageDetail_20' ) end [2025-03-12 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664099', 'tblTempVendorCDR_20' ) start [2025-03-12 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664099', 'tblTempVendorCDR_20' ) end [2025-03-12 12:14:22] Production.INFO: ProcessCDR(1,14664099,1,1,2) [2025-03-12 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664099', 'tblTempUsageDetail_20' ) start [2025-03-12 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664099', 'tblTempUsageDetail_20' ) end [2025-03-12 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:14:28] Production.INFO: ==17182== Releasing lock... [2025-03-12 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:14:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:15:05 [end_date_ymd] => 2025-03-12 12:15:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 09:15:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:15:19] Production.INFO: count ==6189 [2025-03-12 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:15:05 - End Time 2025-03-12 12:15:05 [2025-03-12 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664104', 'tblTempUsageDetail_20' ) start [2025-03-12 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664104', 'tblTempUsageDetail_20' ) end [2025-03-12 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664104', 'tblTempVendorCDR_20' ) start [2025-03-12 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664104', 'tblTempVendorCDR_20' ) end [2025-03-12 12:15:22] Production.INFO: ProcessCDR(1,14664104,1,1,2) [2025-03-12 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664104', 'tblTempUsageDetail_20' ) start [2025-03-12 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664104', 'tblTempUsageDetail_20' ) end [2025-03-12 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:15:27] Production.INFO: ==17253== Releasing lock... [2025-03-12 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:15:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:16:06 [end_date_ymd] => 2025-03-12 12:16:06 [RateCDR] => 1 ) [2025-03-12 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:16:06' and `end` < '2025-03-12 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:16:19] Production.INFO: count ==6192 [2025-03-12 12:16:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:16:06 - End Time 2025-03-12 12:16:06 [2025-03-12 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664109', 'tblTempUsageDetail_20' ) start [2025-03-12 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664109', 'tblTempUsageDetail_20' ) end [2025-03-12 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664109', 'tblTempVendorCDR_20' ) start [2025-03-12 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664109', 'tblTempVendorCDR_20' ) end [2025-03-12 12:16:22] Production.INFO: ProcessCDR(1,14664109,1,1,2) [2025-03-12 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664109', 'tblTempUsageDetail_20' ) start [2025-03-12 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664109', 'tblTempUsageDetail_20' ) end [2025-03-12 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:16:28] Production.INFO: ==17323== Releasing lock... [2025-03-12 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:16:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:17:05 [end_date_ymd] => 2025-03-12 12:17:05 [RateCDR] => 1 ) [2025-03-12 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:17:05' and `end` < '2025-03-12 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:17:19] Production.INFO: count ==6188 [2025-03-12 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:17:05 - End Time 2025-03-12 12:17:05 [2025-03-12 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664114', 'tblTempUsageDetail_20' ) start [2025-03-12 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664114', 'tblTempUsageDetail_20' ) end [2025-03-12 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664114', 'tblTempVendorCDR_20' ) start [2025-03-12 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664114', 'tblTempVendorCDR_20' ) end [2025-03-12 12:17:22] Production.INFO: ProcessCDR(1,14664114,1,1,2) [2025-03-12 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664114', 'tblTempUsageDetail_20' ) start [2025-03-12 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664114', 'tblTempUsageDetail_20' ) end [2025-03-12 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:17:27] Production.INFO: ==17431== Releasing lock... [2025-03-12 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:17:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:18:06 [end_date_ymd] => 2025-03-12 12:18:06 [RateCDR] => 1 ) [2025-03-12 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:18:06' and `end` < '2025-03-12 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:18:19] Production.INFO: count ==6193 [2025-03-12 12:18:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:18:06 - End Time 2025-03-12 12:18:06 [2025-03-12 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664119', 'tblTempUsageDetail_20' ) start [2025-03-12 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664119', 'tblTempUsageDetail_20' ) end [2025-03-12 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664119', 'tblTempVendorCDR_20' ) start [2025-03-12 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664119', 'tblTempVendorCDR_20' ) end [2025-03-12 12:18:23] Production.INFO: ProcessCDR(1,14664119,1,1,2) [2025-03-12 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664119', 'tblTempUsageDetail_20' ) start [2025-03-12 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664119', 'tblTempUsageDetail_20' ) end [2025-03-12 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:18:28] Production.INFO: ==17504== Releasing lock... [2025-03-12 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:18:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:19:05 [end_date_ymd] => 2025-03-12 12:19:05 [RateCDR] => 1 ) [2025-03-12 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:19:05' and `end` < '2025-03-12 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:19:19] Production.INFO: count ==6191 [2025-03-12 12:19:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:19:05 - End Time 2025-03-12 12:19:05 [2025-03-12 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664124', 'tblTempUsageDetail_20' ) start [2025-03-12 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664124', 'tblTempUsageDetail_20' ) end [2025-03-12 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664124', 'tblTempVendorCDR_20' ) start [2025-03-12 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664124', 'tblTempVendorCDR_20' ) end [2025-03-12 12:19:22] Production.INFO: ProcessCDR(1,14664124,1,1,2) [2025-03-12 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664124', 'tblTempUsageDetail_20' ) start [2025-03-12 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664124', 'tblTempUsageDetail_20' ) end [2025-03-12 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:19:28] Production.INFO: ==17580== Releasing lock... [2025-03-12 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:19:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:20:07 [end_date_ymd] => 2025-03-12 12:20:07 [RateCDR] => 1 ) [2025-03-12 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:20:07' and `end` < '2025-03-12 12:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:20:20] Production.INFO: count ==6204 [2025-03-12 12:20:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:20:07 - End Time 2025-03-12 12:20:07 [2025-03-12 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664130', 'tblTempUsageDetail_20' ) start [2025-03-12 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664130', 'tblTempUsageDetail_20' ) end [2025-03-12 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664130', 'tblTempVendorCDR_20' ) start [2025-03-12 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664130', 'tblTempVendorCDR_20' ) end [2025-03-12 12:20:23] Production.INFO: ProcessCDR(1,14664130,1,1,2) [2025-03-12 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664130', 'tblTempUsageDetail_20' ) start [2025-03-12 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664130', 'tblTempUsageDetail_20' ) end [2025-03-12 12:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:20:29] Production.INFO: ==17657== Releasing lock... [2025-03-12 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:20:29] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:21:06 [end_date_ymd] => 2025-03-12 12:21:06 [RateCDR] => 1 ) [2025-03-12 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:21:06' and `end` < '2025-03-12 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:21:19] Production.INFO: count ==6264 [2025-03-12 12:21:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:21:06 - End Time 2025-03-12 12:21:06 [2025-03-12 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664135', 'tblTempUsageDetail_20' ) start [2025-03-12 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664135', 'tblTempUsageDetail_20' ) end [2025-03-12 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664135', 'tblTempVendorCDR_20' ) start [2025-03-12 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664135', 'tblTempVendorCDR_20' ) end [2025-03-12 12:21:22] Production.INFO: ProcessCDR(1,14664135,1,1,2) [2025-03-12 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664135', 'tblTempUsageDetail_20' ) start [2025-03-12 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664135', 'tblTempUsageDetail_20' ) end [2025-03-12 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:21:28] Production.INFO: ==17728== Releasing lock... [2025-03-12 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:21:28] Production.INFO: 75 MB #Memory Used# [2025-03-12 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:22:05 [end_date_ymd] => 2025-03-12 12:22:05 [RateCDR] => 1 ) [2025-03-12 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:22:05' and `end` < '2025-03-12 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:22:18] Production.INFO: count ==6231 [2025-03-12 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:22:05 - End Time 2025-03-12 12:22:05 [2025-03-12 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664140', 'tblTempUsageDetail_20' ) start [2025-03-12 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664140', 'tblTempUsageDetail_20' ) end [2025-03-12 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664140', 'tblTempVendorCDR_20' ) start [2025-03-12 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664140', 'tblTempVendorCDR_20' ) end [2025-03-12 12:22:21] Production.INFO: ProcessCDR(1,14664140,1,1,2) [2025-03-12 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664140', 'tblTempUsageDetail_20' ) start [2025-03-12 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664140', 'tblTempUsageDetail_20' ) end [2025-03-12 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:22:27] Production.INFO: ==17802== Releasing lock... [2025-03-12 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:22:27] Production.INFO: 74.75 MB #Memory Used# [2025-03-12 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:23:05 [end_date_ymd] => 2025-03-12 12:23:05 [RateCDR] => 1 ) [2025-03-12 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:23:05' and `end` < '2025-03-12 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:23:19] Production.INFO: count ==6207 [2025-03-12 12:23:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:23:05 - End Time 2025-03-12 12:23:05 [2025-03-12 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664145', 'tblTempUsageDetail_20' ) start [2025-03-12 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664145', 'tblTempUsageDetail_20' ) end [2025-03-12 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664145', 'tblTempVendorCDR_20' ) start [2025-03-12 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664145', 'tblTempVendorCDR_20' ) end [2025-03-12 12:23:22] Production.INFO: ProcessCDR(1,14664145,1,1,2) [2025-03-12 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664145', 'tblTempUsageDetail_20' ) start [2025-03-12 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664145', 'tblTempUsageDetail_20' ) end [2025-03-12 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:23:28] Production.INFO: ==17874== Releasing lock... [2025-03-12 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:23:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:24:05 [end_date_ymd] => 2025-03-12 12:24:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 09:24:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:24:18] Production.INFO: count ==6199 [2025-03-12 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:24:05 - End Time 2025-03-12 12:24:05 [2025-03-12 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664150', 'tblTempUsageDetail_20' ) start [2025-03-12 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664150', 'tblTempUsageDetail_20' ) end [2025-03-12 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664150', 'tblTempVendorCDR_20' ) start [2025-03-12 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664150', 'tblTempVendorCDR_20' ) end [2025-03-12 12:24:22] Production.INFO: ProcessCDR(1,14664150,1,1,2) [2025-03-12 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664150', 'tblTempUsageDetail_20' ) start [2025-03-12 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664150', 'tblTempUsageDetail_20' ) end [2025-03-12 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:24:28] Production.INFO: ==17945== Releasing lock... [2025-03-12 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:24:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:25:06 [end_date_ymd] => 2025-03-12 12:25:06 [RateCDR] => 1 ) [2025-03-12 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:25:06' and `end` < '2025-03-12 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:25:19] Production.INFO: count ==6179 [2025-03-12 12:25:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:25:06 - End Time 2025-03-12 12:25:06 [2025-03-12 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664155', 'tblTempUsageDetail_20' ) start [2025-03-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664155', 'tblTempUsageDetail_20' ) end [2025-03-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664155', 'tblTempVendorCDR_20' ) start [2025-03-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664155', 'tblTempVendorCDR_20' ) end [2025-03-12 12:25:22] Production.INFO: ProcessCDR(1,14664155,1,1,2) [2025-03-12 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664155', 'tblTempUsageDetail_20' ) start [2025-03-12 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664155', 'tblTempUsageDetail_20' ) end [2025-03-12 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:25:28] Production.INFO: ==18018== Releasing lock... [2025-03-12 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:25:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:26:05 [end_date_ymd] => 2025-03-12 12:26:05 [RateCDR] => 1 ) [2025-03-12 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:26:05' and `end` < '2025-03-12 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:26:18] Production.INFO: count ==6166 [2025-03-12 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:26:05 - End Time 2025-03-12 12:26:05 [2025-03-12 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664160', 'tblTempUsageDetail_20' ) start [2025-03-12 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664160', 'tblTempUsageDetail_20' ) end [2025-03-12 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664160', 'tblTempVendorCDR_20' ) start [2025-03-12 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664160', 'tblTempVendorCDR_20' ) end [2025-03-12 12:26:22] Production.INFO: ProcessCDR(1,14664160,1,1,2) [2025-03-12 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664160', 'tblTempUsageDetail_20' ) start [2025-03-12 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664160', 'tblTempUsageDetail_20' ) end [2025-03-12 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:26:27] Production.INFO: ==18090== Releasing lock... [2025-03-12 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:26:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:27:05 [end_date_ymd] => 2025-03-12 12:27:05 [RateCDR] => 1 ) [2025-03-12 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:27:05' and `end` < '2025-03-12 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:27:19] Production.INFO: count ==6156 [2025-03-12 12:27:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:27:05 - End Time 2025-03-12 12:27:05 [2025-03-12 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664165', 'tblTempUsageDetail_20' ) start [2025-03-12 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664165', 'tblTempUsageDetail_20' ) end [2025-03-12 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664165', 'tblTempVendorCDR_20' ) start [2025-03-12 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664165', 'tblTempVendorCDR_20' ) end [2025-03-12 12:27:22] Production.INFO: ProcessCDR(1,14664165,1,1,2) [2025-03-12 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664165', 'tblTempUsageDetail_20' ) start [2025-03-12 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664165', 'tblTempUsageDetail_20' ) end [2025-03-12 12:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:27:28] Production.INFO: ==18167== Releasing lock... [2025-03-12 12:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:27:28] Production.INFO: 74 MB #Memory Used# [2025-03-12 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:28:05 [end_date_ymd] => 2025-03-12 12:28:05 [RateCDR] => 1 ) [2025-03-12 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:28:05' and `end` < '2025-03-12 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:28:19] Production.INFO: count ==6176 [2025-03-12 12:28:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:28:05 - End Time 2025-03-12 12:28:05 [2025-03-12 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664170', 'tblTempUsageDetail_20' ) start [2025-03-12 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664170', 'tblTempUsageDetail_20' ) end [2025-03-12 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664170', 'tblTempVendorCDR_20' ) start [2025-03-12 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664170', 'tblTempVendorCDR_20' ) end [2025-03-12 12:28:22] Production.INFO: ProcessCDR(1,14664170,1,1,2) [2025-03-12 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664170', 'tblTempUsageDetail_20' ) start [2025-03-12 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664170', 'tblTempUsageDetail_20' ) end [2025-03-12 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:28:28] Production.INFO: ==18242== Releasing lock... [2025-03-12 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:28:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:29:05 [end_date_ymd] => 2025-03-12 12:29:05 [RateCDR] => 1 ) [2025-03-12 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:29:05' and `end` < '2025-03-12 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:29:19] Production.INFO: count ==6175 [2025-03-12 12:29:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:29:05 - End Time 2025-03-12 12:29:05 [2025-03-12 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664175', 'tblTempUsageDetail_20' ) start [2025-03-12 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664175', 'tblTempUsageDetail_20' ) end [2025-03-12 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664175', 'tblTempVendorCDR_20' ) start [2025-03-12 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664175', 'tblTempVendorCDR_20' ) end [2025-03-12 12:29:22] Production.INFO: ProcessCDR(1,14664175,1,1,2) [2025-03-12 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664175', 'tblTempUsageDetail_20' ) start [2025-03-12 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664175', 'tblTempUsageDetail_20' ) end [2025-03-12 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:29:28] Production.INFO: ==18313== Releasing lock... [2025-03-12 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:29:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:30:07 [end_date_ymd] => 2025-03-12 12:30:07 [RateCDR] => 1 ) [2025-03-12 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:30:07' and `end` < '2025-03-12 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:30:20] Production.INFO: count ==6189 [2025-03-12 12:30:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:30:07 - End Time 2025-03-12 12:30:07 [2025-03-12 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664181', 'tblTempUsageDetail_20' ) start [2025-03-12 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664181', 'tblTempUsageDetail_20' ) end [2025-03-12 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664181', 'tblTempVendorCDR_20' ) start [2025-03-12 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664181', 'tblTempVendorCDR_20' ) end [2025-03-12 12:30:23] Production.INFO: ProcessCDR(1,14664181,1,1,2) [2025-03-12 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664181', 'tblTempUsageDetail_20' ) start [2025-03-12 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664181', 'tblTempUsageDetail_20' ) end [2025-03-12 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:30:29] Production.INFO: ==18391== Releasing lock... [2025-03-12 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:30:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:31:06 [end_date_ymd] => 2025-03-12 12:31:06 [RateCDR] => 1 ) [2025-03-12 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:31:06' and `end` < '2025-03-12 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:31:19] Production.INFO: count ==6219 [2025-03-12 12:31:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:31:06 - End Time 2025-03-12 12:31:06 [2025-03-12 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664186', 'tblTempUsageDetail_20' ) start [2025-03-12 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664186', 'tblTempUsageDetail_20' ) end [2025-03-12 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664186', 'tblTempVendorCDR_20' ) start [2025-03-12 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664186', 'tblTempVendorCDR_20' ) end [2025-03-12 12:31:22] Production.INFO: ProcessCDR(1,14664186,1,1,2) [2025-03-12 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664186', 'tblTempUsageDetail_20' ) start [2025-03-12 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664186', 'tblTempUsageDetail_20' ) end [2025-03-12 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:31:28] Production.INFO: ==18466== Releasing lock... [2025-03-12 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:31:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:32:05 [end_date_ymd] => 2025-03-12 12:32:05 [RateCDR] => 1 ) [2025-03-12 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:32:05' and `end` < '2025-03-12 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:32:19] Production.INFO: count ==6208 [2025-03-12 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:32:05 - End Time 2025-03-12 12:32:05 [2025-03-12 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664191', 'tblTempUsageDetail_20' ) start [2025-03-12 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664191', 'tblTempUsageDetail_20' ) end [2025-03-12 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664191', 'tblTempVendorCDR_20' ) start [2025-03-12 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664191', 'tblTempVendorCDR_20' ) end [2025-03-12 12:32:22] Production.INFO: ProcessCDR(1,14664191,1,1,2) [2025-03-12 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664191', 'tblTempUsageDetail_20' ) start [2025-03-12 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664191', 'tblTempUsageDetail_20' ) end [2025-03-12 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:32:28] Production.INFO: ==18536== Releasing lock... [2025-03-12 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:32:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:33:05 [end_date_ymd] => 2025-03-12 12:33:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 09:33:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:33:19] Production.INFO: count ==6195 [2025-03-12 12:33:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:33:05 - End Time 2025-03-12 12:33:05 [2025-03-12 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664196', 'tblTempUsageDetail_20' ) start [2025-03-12 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664196', 'tblTempUsageDetail_20' ) end [2025-03-12 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664196', 'tblTempVendorCDR_20' ) start [2025-03-12 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664196', 'tblTempVendorCDR_20' ) end [2025-03-12 12:33:22] Production.INFO: ProcessCDR(1,14664196,1,1,2) [2025-03-12 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664196', 'tblTempUsageDetail_20' ) start [2025-03-12 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664196', 'tblTempUsageDetail_20' ) end [2025-03-12 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:33:28] Production.INFO: ==18648== Releasing lock... [2025-03-12 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:33:28] Production.INFO: 74.5 MB #Memory Used# [2025-03-12 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:34:05 [end_date_ymd] => 2025-03-12 12:34:05 [RateCDR] => 1 ) [2025-03-12 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:34:05' and `end` < '2025-03-12 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:34:18] Production.INFO: count ==6177 [2025-03-12 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:34:05 - End Time 2025-03-12 12:34:05 [2025-03-12 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664201', 'tblTempUsageDetail_20' ) start [2025-03-12 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664201', 'tblTempUsageDetail_20' ) end [2025-03-12 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664201', 'tblTempVendorCDR_20' ) start [2025-03-12 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664201', 'tblTempVendorCDR_20' ) end [2025-03-12 12:34:22] Production.INFO: ProcessCDR(1,14664201,1,1,2) [2025-03-12 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664201', 'tblTempUsageDetail_20' ) start [2025-03-12 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664201', 'tblTempUsageDetail_20' ) end [2025-03-12 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:34:27] Production.INFO: ==18720== Releasing lock... [2025-03-12 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:34:27] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:35:06 [end_date_ymd] => 2025-03-12 12:35:06 [RateCDR] => 1 ) [2025-03-12 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:35:06' and `end` < '2025-03-12 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:35:19] Production.INFO: count ==6177 [2025-03-12 12:35:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:35:06 - End Time 2025-03-12 12:35:06 [2025-03-12 12:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664206', 'tblTempUsageDetail_20' ) start [2025-03-12 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664206', 'tblTempUsageDetail_20' ) end [2025-03-12 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664206', 'tblTempVendorCDR_20' ) start [2025-03-12 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664206', 'tblTempVendorCDR_20' ) end [2025-03-12 12:35:23] Production.INFO: ProcessCDR(1,14664206,1,1,2) [2025-03-12 12:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664206', 'tblTempUsageDetail_20' ) start [2025-03-12 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664206', 'tblTempUsageDetail_20' ) end [2025-03-12 12:35:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:35:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:35:29] Production.INFO: ==18795== Releasing lock... [2025-03-12 12:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:35:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-12 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:36:05 [end_date_ymd] => 2025-03-12 12:36:05 [RateCDR] => 1 ) [2025-03-12 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:36:05' and `end` < '2025-03-12 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:36:18] Production.INFO: count ==6140 [2025-03-12 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:36:05 - End Time 2025-03-12 12:36:05 [2025-03-12 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664211', 'tblTempUsageDetail_20' ) start [2025-03-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664211', 'tblTempUsageDetail_20' ) end [2025-03-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664211', 'tblTempVendorCDR_20' ) start [2025-03-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664211', 'tblTempVendorCDR_20' ) end [2025-03-12 12:36:22] Production.INFO: ProcessCDR(1,14664211,1,1,2) [2025-03-12 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664211', 'tblTempUsageDetail_20' ) start [2025-03-12 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664211', 'tblTempUsageDetail_20' ) end [2025-03-12 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:36:27] Production.INFO: ==18869== Releasing lock... [2025-03-12 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:36:27] Production.INFO: 74 MB #Memory Used# [2025-03-12 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:37:06 [end_date_ymd] => 2025-03-12 12:37:06 [RateCDR] => 1 ) [2025-03-12 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:37:06' and `end` < '2025-03-12 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:37:19] Production.INFO: count ==6110 [2025-03-12 12:37:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:37:06 - End Time 2025-03-12 12:37:06 [2025-03-12 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664216', 'tblTempUsageDetail_20' ) start [2025-03-12 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664216', 'tblTempUsageDetail_20' ) end [2025-03-12 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664216', 'tblTempVendorCDR_20' ) start [2025-03-12 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664216', 'tblTempVendorCDR_20' ) end [2025-03-12 12:37:22] Production.INFO: ProcessCDR(1,14664216,1,1,2) [2025-03-12 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664216', 'tblTempUsageDetail_20' ) start [2025-03-12 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664216', 'tblTempUsageDetail_20' ) end [2025-03-12 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:37:28] Production.INFO: ==18941== Releasing lock... [2025-03-12 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:37:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:38:06 [end_date_ymd] => 2025-03-12 12:38:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 09:38:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:38:20] Production.INFO: count ==6087 [2025-03-12 12:38:23] Production.ERROR: pbx CDR StartTime 2025-03-12 09:38:06 - End Time 2025-03-12 12:38:06 [2025-03-12 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664221', 'tblTempUsageDetail_20' ) start [2025-03-12 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664221', 'tblTempUsageDetail_20' ) end [2025-03-12 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664221', 'tblTempVendorCDR_20' ) start [2025-03-12 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664221', 'tblTempVendorCDR_20' ) end [2025-03-12 12:38:23] Production.INFO: ProcessCDR(1,14664221,1,1,2) [2025-03-12 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664221', 'tblTempUsageDetail_20' ) start [2025-03-12 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664221', 'tblTempUsageDetail_20' ) end [2025-03-12 12:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:38:29] Production.INFO: ==19018== Releasing lock... [2025-03-12 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:38:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:39:06 [end_date_ymd] => 2025-03-12 12:39:06 [RateCDR] => 1 ) [2025-03-12 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:39:06' and `end` < '2025-03-12 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:39:19] Production.INFO: count ==6079 [2025-03-12 12:39:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:39:06 - End Time 2025-03-12 12:39:06 [2025-03-12 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664226', 'tblTempUsageDetail_20' ) start [2025-03-12 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664226', 'tblTempUsageDetail_20' ) end [2025-03-12 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664226', 'tblTempVendorCDR_20' ) start [2025-03-12 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664226', 'tblTempVendorCDR_20' ) end [2025-03-12 12:39:22] Production.INFO: ProcessCDR(1,14664226,1,1,2) [2025-03-12 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664226', 'tblTempUsageDetail_20' ) start [2025-03-12 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664226', 'tblTempUsageDetail_20' ) end [2025-03-12 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:39:28] Production.INFO: ==19097== Releasing lock... [2025-03-12 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:39:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:40:06 [end_date_ymd] => 2025-03-12 12:40:06 [RateCDR] => 1 ) [2025-03-12 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:40:06' and `end` < '2025-03-12 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:40:19] Production.INFO: count ==6066 [2025-03-12 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:40:06 - End Time 2025-03-12 12:40:06 [2025-03-12 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664232', 'tblTempUsageDetail_20' ) start [2025-03-12 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664232', 'tblTempUsageDetail_20' ) end [2025-03-12 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664232', 'tblTempVendorCDR_20' ) start [2025-03-12 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664232', 'tblTempVendorCDR_20' ) end [2025-03-12 12:40:23] Production.INFO: ProcessCDR(1,14664232,1,1,2) [2025-03-12 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664232', 'tblTempUsageDetail_20' ) start [2025-03-12 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664232', 'tblTempUsageDetail_20' ) end [2025-03-12 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:40:28] Production.INFO: ==19171== Releasing lock... [2025-03-12 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:40:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:41:06 [end_date_ymd] => 2025-03-12 12:41:06 [RateCDR] => 1 ) [2025-03-12 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:41:06' and `end` < '2025-03-12 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:41:19] Production.INFO: count ==6099 [2025-03-12 12:41:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:41:06 - End Time 2025-03-12 12:41:06 [2025-03-12 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664237', 'tblTempUsageDetail_20' ) start [2025-03-12 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664237', 'tblTempUsageDetail_20' ) end [2025-03-12 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664237', 'tblTempVendorCDR_20' ) start [2025-03-12 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664237', 'tblTempVendorCDR_20' ) end [2025-03-12 12:41:23] Production.INFO: ProcessCDR(1,14664237,1,1,2) [2025-03-12 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664237', 'tblTempUsageDetail_20' ) start [2025-03-12 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664237', 'tblTempUsageDetail_20' ) end [2025-03-12 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:41:27] Production.INFO: ==19244== Releasing lock... [2025-03-12 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:41:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:42:05 [end_date_ymd] => 2025-03-12 12:42:05 [RateCDR] => 1 ) [2025-03-12 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:42:05' and `end` < '2025-03-12 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:42:19] Production.INFO: count ==6083 [2025-03-12 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:42:05 - End Time 2025-03-12 12:42:05 [2025-03-12 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664242', 'tblTempUsageDetail_20' ) start [2025-03-12 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664242', 'tblTempUsageDetail_20' ) end [2025-03-12 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664242', 'tblTempVendorCDR_20' ) start [2025-03-12 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664242', 'tblTempVendorCDR_20' ) end [2025-03-12 12:42:22] Production.INFO: ProcessCDR(1,14664242,1,1,2) [2025-03-12 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664242', 'tblTempUsageDetail_20' ) start [2025-03-12 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664242', 'tblTempUsageDetail_20' ) end [2025-03-12 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:42:28] Production.INFO: ==19315== Releasing lock... [2025-03-12 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:42:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:43:06 [end_date_ymd] => 2025-03-12 12:43:06 [RateCDR] => 1 ) [2025-03-12 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:43:06' and `end` < '2025-03-12 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:43:19] Production.INFO: count ==6077 [2025-03-12 12:43:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:43:06 - End Time 2025-03-12 12:43:06 [2025-03-12 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664247', 'tblTempUsageDetail_20' ) start [2025-03-12 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664247', 'tblTempUsageDetail_20' ) end [2025-03-12 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664247', 'tblTempVendorCDR_20' ) start [2025-03-12 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664247', 'tblTempVendorCDR_20' ) end [2025-03-12 12:43:23] Production.INFO: ProcessCDR(1,14664247,1,1,2) [2025-03-12 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664247', 'tblTempUsageDetail_20' ) start [2025-03-12 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664247', 'tblTempUsageDetail_20' ) end [2025-03-12 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:43:28] Production.INFO: ==19388== Releasing lock... [2025-03-12 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:43:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:44:05 [end_date_ymd] => 2025-03-12 12:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 09:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:44:19] Production.INFO: count ==6059 [2025-03-12 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:44:05 - End Time 2025-03-12 12:44:05 [2025-03-12 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664252', 'tblTempUsageDetail_20' ) start [2025-03-12 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664252', 'tblTempUsageDetail_20' ) end [2025-03-12 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664252', 'tblTempVendorCDR_20' ) start [2025-03-12 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664252', 'tblTempVendorCDR_20' ) end [2025-03-12 12:44:22] Production.INFO: ProcessCDR(1,14664252,1,1,2) [2025-03-12 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664252', 'tblTempUsageDetail_20' ) start [2025-03-12 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664252', 'tblTempUsageDetail_20' ) end [2025-03-12 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:44:27] Production.INFO: ==19456== Releasing lock... [2025-03-12 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:44:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:45:06 [end_date_ymd] => 2025-03-12 12:45:06 [RateCDR] => 1 ) [2025-03-12 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:45:06' and `end` < '2025-03-12 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:45:19] Production.INFO: count ==6057 [2025-03-12 12:45:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:45:06 - End Time 2025-03-12 12:45:06 [2025-03-12 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664257', 'tblTempUsageDetail_20' ) start [2025-03-12 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664257', 'tblTempUsageDetail_20' ) end [2025-03-12 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664257', 'tblTempVendorCDR_20' ) start [2025-03-12 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664257', 'tblTempVendorCDR_20' ) end [2025-03-12 12:45:22] Production.INFO: ProcessCDR(1,14664257,1,1,2) [2025-03-12 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664257', 'tblTempUsageDetail_20' ) start [2025-03-12 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664257', 'tblTempUsageDetail_20' ) end [2025-03-12 12:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:45:29] Production.INFO: ==19528== Releasing lock... [2025-03-12 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:45:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:46:06 [end_date_ymd] => 2025-03-12 12:46:06 [RateCDR] => 1 ) [2025-03-12 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:46:06' and `end` < '2025-03-12 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:46:19] Production.INFO: count ==6024 [2025-03-12 12:46:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:46:06 - End Time 2025-03-12 12:46:06 [2025-03-12 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664262', 'tblTempUsageDetail_20' ) start [2025-03-12 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664262', 'tblTempUsageDetail_20' ) end [2025-03-12 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664262', 'tblTempVendorCDR_20' ) start [2025-03-12 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664262', 'tblTempVendorCDR_20' ) end [2025-03-12 12:46:22] Production.INFO: ProcessCDR(1,14664262,1,1,2) [2025-03-12 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664262', 'tblTempUsageDetail_20' ) start [2025-03-12 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664262', 'tblTempUsageDetail_20' ) end [2025-03-12 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:46:28] Production.INFO: ==19599== Releasing lock... [2025-03-12 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:46:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:47:06 [end_date_ymd] => 2025-03-12 12:47:06 [RateCDR] => 1 ) [2025-03-12 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:47:06' and `end` < '2025-03-12 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:47:19] Production.INFO: count ==6015 [2025-03-12 12:47:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:47:06 - End Time 2025-03-12 12:47:06 [2025-03-12 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664267', 'tblTempUsageDetail_20' ) start [2025-03-12 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664267', 'tblTempUsageDetail_20' ) end [2025-03-12 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664267', 'tblTempVendorCDR_20' ) start [2025-03-12 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664267', 'tblTempVendorCDR_20' ) end [2025-03-12 12:47:22] Production.INFO: ProcessCDR(1,14664267,1,1,2) [2025-03-12 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664267', 'tblTempUsageDetail_20' ) start [2025-03-12 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664267', 'tblTempUsageDetail_20' ) end [2025-03-12 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:47:28] Production.INFO: ==19672== Releasing lock... [2025-03-12 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:47:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:48:06 [end_date_ymd] => 2025-03-12 12:48:06 [RateCDR] => 1 ) [2025-03-12 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:48:06' and `end` < '2025-03-12 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:48:19] Production.INFO: count ==5976 [2025-03-12 12:48:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:48:06 - End Time 2025-03-12 12:48:06 [2025-03-12 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664272', 'tblTempUsageDetail_20' ) start [2025-03-12 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664272', 'tblTempUsageDetail_20' ) end [2025-03-12 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664272', 'tblTempVendorCDR_20' ) start [2025-03-12 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664272', 'tblTempVendorCDR_20' ) end [2025-03-12 12:48:22] Production.INFO: ProcessCDR(1,14664272,1,1,2) [2025-03-12 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664272', 'tblTempUsageDetail_20' ) start [2025-03-12 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664272', 'tblTempUsageDetail_20' ) end [2025-03-12 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:48:28] Production.INFO: ==19783== Releasing lock... [2025-03-12 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:48:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:49:05 [end_date_ymd] => 2025-03-12 12:49:05 [RateCDR] => 1 ) [2025-03-12 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:49:05' and `end` < '2025-03-12 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:49:19] Production.INFO: count ==5953 [2025-03-12 12:49:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:49:05 - End Time 2025-03-12 12:49:05 [2025-03-12 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664277', 'tblTempUsageDetail_20' ) start [2025-03-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664277', 'tblTempUsageDetail_20' ) end [2025-03-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664277', 'tblTempVendorCDR_20' ) start [2025-03-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664277', 'tblTempVendorCDR_20' ) end [2025-03-12 12:49:22] Production.INFO: ProcessCDR(1,14664277,1,1,2) [2025-03-12 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664277', 'tblTempUsageDetail_20' ) start [2025-03-12 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664277', 'tblTempUsageDetail_20' ) end [2025-03-12 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:49:28] Production.INFO: ==19858== Releasing lock... [2025-03-12 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:49:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-12 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:50:07 [end_date_ymd] => 2025-03-12 12:50:07 [RateCDR] => 1 ) [2025-03-12 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:50:07' and `end` < '2025-03-12 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:50:21] Production.INFO: count ==5949 [2025-03-12 12:50:24] Production.ERROR: pbx CDR StartTime 2025-03-12 09:50:07 - End Time 2025-03-12 12:50:07 [2025-03-12 12:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664283', 'tblTempUsageDetail_20' ) start [2025-03-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664283', 'tblTempUsageDetail_20' ) end [2025-03-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664283', 'tblTempVendorCDR_20' ) start [2025-03-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664283', 'tblTempVendorCDR_20' ) end [2025-03-12 12:50:24] Production.INFO: ProcessCDR(1,14664283,1,1,2) [2025-03-12 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664283', 'tblTempUsageDetail_20' ) start [2025-03-12 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664283', 'tblTempUsageDetail_20' ) end [2025-03-12 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:50:29] Production.INFO: ==19935== Releasing lock... [2025-03-12 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:50:29] Production.INFO: 72.5 MB #Memory Used# [2025-03-12 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:51:05 [end_date_ymd] => 2025-03-12 12:51:05 [RateCDR] => 1 ) [2025-03-12 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:51:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 12:51:19] Production.INFO: count ==5949 [2025-03-12 12:51:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:51:05 - End Time 2025-03-12 12:51:05 [2025-03-12 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664288', 'tblTempUsageDetail_20' ) start [2025-03-12 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664288', 'tblTempUsageDetail_20' ) end [2025-03-12 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664288', 'tblTempVendorCDR_20' ) start [2025-03-12 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664288', 'tblTempVendorCDR_20' ) end [2025-03-12 12:51:22] Production.INFO: ProcessCDR(1,14664288,1,1,2) [2025-03-12 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664288', 'tblTempUsageDetail_20' ) start [2025-03-12 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664288', 'tblTempUsageDetail_20' ) end [2025-03-12 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:51:28] Production.INFO: ==20008== Releasing lock... [2025-03-12 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:51:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-12 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:52:06 [end_date_ymd] => 2025-03-12 12:52:06 [RateCDR] => 1 ) [2025-03-12 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:52:06' and `end` < '2025-03-12 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:52:19] Production.INFO: count ==5929 [2025-03-12 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:52:06 - End Time 2025-03-12 12:52:06 [2025-03-12 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664293', 'tblTempUsageDetail_20' ) start [2025-03-12 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664293', 'tblTempUsageDetail_20' ) end [2025-03-12 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664293', 'tblTempVendorCDR_20' ) start [2025-03-12 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664293', 'tblTempVendorCDR_20' ) end [2025-03-12 12:52:22] Production.INFO: ProcessCDR(1,14664293,1,1,2) [2025-03-12 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664293', 'tblTempUsageDetail_20' ) start [2025-03-12 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664293', 'tblTempUsageDetail_20' ) end [2025-03-12 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:52:27] Production.INFO: ==20078== Releasing lock... [2025-03-12 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:52:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-12 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:53:05 [end_date_ymd] => 2025-03-12 12:53:05 [RateCDR] => 1 ) [2025-03-12 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:53:05' and `end` < '2025-03-12 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:53:19] Production.INFO: count ==5916 [2025-03-12 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:53:05 - End Time 2025-03-12 12:53:05 [2025-03-12 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664298', 'tblTempUsageDetail_20' ) start [2025-03-12 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664298', 'tblTempUsageDetail_20' ) end [2025-03-12 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664298', 'tblTempVendorCDR_20' ) start [2025-03-12 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664298', 'tblTempVendorCDR_20' ) end [2025-03-12 12:53:22] Production.INFO: ProcessCDR(1,14664298,1,1,2) [2025-03-12 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664298', 'tblTempUsageDetail_20' ) start [2025-03-12 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664298', 'tblTempUsageDetail_20' ) end [2025-03-12 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:53:27] Production.INFO: ==20149== Releasing lock... [2025-03-12 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:54:06 [end_date_ymd] => 2025-03-12 12:54:06 [RateCDR] => 1 ) [2025-03-12 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:54:06' and `end` < '2025-03-12 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:54:19] Production.INFO: count ==5866 [2025-03-12 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:54:06 - End Time 2025-03-12 12:54:06 [2025-03-12 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664303', 'tblTempUsageDetail_20' ) start [2025-03-12 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664303', 'tblTempUsageDetail_20' ) end [2025-03-12 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664303', 'tblTempVendorCDR_20' ) start [2025-03-12 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664303', 'tblTempVendorCDR_20' ) end [2025-03-12 12:54:22] Production.INFO: ProcessCDR(1,14664303,1,1,2) [2025-03-12 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664303', 'tblTempUsageDetail_20' ) start [2025-03-12 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664303', 'tblTempUsageDetail_20' ) end [2025-03-12 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:54:27] Production.INFO: ==20226== Releasing lock... [2025-03-12 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:54:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:55:06 [end_date_ymd] => 2025-03-12 12:55:06 [RateCDR] => 1 ) [2025-03-12 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:55:06' and `end` < '2025-03-12 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:55:19] Production.INFO: count ==5839 [2025-03-12 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:55:06 - End Time 2025-03-12 12:55:06 [2025-03-12 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664308', 'tblTempUsageDetail_20' ) start [2025-03-12 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664308', 'tblTempUsageDetail_20' ) end [2025-03-12 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664308', 'tblTempVendorCDR_20' ) start [2025-03-12 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664308', 'tblTempVendorCDR_20' ) end [2025-03-12 12:55:21] Production.INFO: ProcessCDR(1,14664308,1,1,2) [2025-03-12 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664308', 'tblTempUsageDetail_20' ) start [2025-03-12 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664308', 'tblTempUsageDetail_20' ) end [2025-03-12 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:55:26] Production.INFO: ==20298== Releasing lock... [2025-03-12 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:55:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:56:06 [end_date_ymd] => 2025-03-12 12:56:06 [RateCDR] => 1 ) [2025-03-12 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:56:06' and `end` < '2025-03-12 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:56:19] Production.INFO: count ==5835 [2025-03-12 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:56:06 - End Time 2025-03-12 12:56:06 [2025-03-12 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664313', 'tblTempUsageDetail_20' ) start [2025-03-12 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664313', 'tblTempUsageDetail_20' ) end [2025-03-12 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664313', 'tblTempVendorCDR_20' ) start [2025-03-12 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664313', 'tblTempVendorCDR_20' ) end [2025-03-12 12:56:22] Production.INFO: ProcessCDR(1,14664313,1,1,2) [2025-03-12 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664313', 'tblTempUsageDetail_20' ) start [2025-03-12 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664313', 'tblTempUsageDetail_20' ) end [2025-03-12 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:56:27] Production.INFO: ==20372== Releasing lock... [2025-03-12 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:56:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:57:05 [end_date_ymd] => 2025-03-12 12:57:05 [RateCDR] => 1 ) [2025-03-12 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:57:05' and `end` < '2025-03-12 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:57:19] Production.INFO: count ==5827 [2025-03-12 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:57:05 - End Time 2025-03-12 12:57:05 [2025-03-12 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664318', 'tblTempUsageDetail_20' ) start [2025-03-12 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664318', 'tblTempUsageDetail_20' ) end [2025-03-12 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664318', 'tblTempVendorCDR_20' ) start [2025-03-12 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664318', 'tblTempVendorCDR_20' ) end [2025-03-12 12:57:21] Production.INFO: ProcessCDR(1,14664318,1,1,2) [2025-03-12 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664318', 'tblTempUsageDetail_20' ) start [2025-03-12 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664318', 'tblTempUsageDetail_20' ) end [2025-03-12 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:57:26] Production.INFO: ==20446== Releasing lock... [2025-03-12 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:57:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:58:05 [end_date_ymd] => 2025-03-12 12:58:05 [RateCDR] => 1 ) [2025-03-12 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:58:05' and `end` < '2025-03-12 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:58:18] Production.INFO: count ==5819 [2025-03-12 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 09:58:05 - End Time 2025-03-12 12:58:05 [2025-03-12 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664323', 'tblTempUsageDetail_20' ) start [2025-03-12 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664323', 'tblTempUsageDetail_20' ) end [2025-03-12 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664323', 'tblTempVendorCDR_20' ) start [2025-03-12 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664323', 'tblTempVendorCDR_20' ) end [2025-03-12 12:58:21] Production.INFO: ProcessCDR(1,14664323,1,1,2) [2025-03-12 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664323', 'tblTempUsageDetail_20' ) start [2025-03-12 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664323', 'tblTempUsageDetail_20' ) end [2025-03-12 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:58:27] Production.INFO: ==20516== Releasing lock... [2025-03-12 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:58:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 09:59:06 [end_date_ymd] => 2025-03-12 12:59:06 [RateCDR] => 1 ) [2025-03-12 12:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 09:59:06' and `end` < '2025-03-12 12:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 12:59:19] Production.INFO: count ==5813 [2025-03-12 12:59:22] Production.ERROR: pbx CDR StartTime 2025-03-12 09:59:06 - End Time 2025-03-12 12:59:06 [2025-03-12 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664328', 'tblTempUsageDetail_20' ) start [2025-03-12 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664328', 'tblTempUsageDetail_20' ) end [2025-03-12 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664328', 'tblTempVendorCDR_20' ) start [2025-03-12 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664328', 'tblTempVendorCDR_20' ) end [2025-03-12 12:59:22] Production.INFO: ProcessCDR(1,14664328,1,1,2) [2025-03-12 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664328', 'tblTempUsageDetail_20' ) start [2025-03-12 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664328', 'tblTempUsageDetail_20' ) end [2025-03-12 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 12:59:28] Production.INFO: ==20586== Releasing lock... [2025-03-12 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 12:59:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:00:05 [end_date_ymd] => 2025-03-12 13:00:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:00:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:00:19] Production.INFO: count ==5815 [2025-03-12 13:00:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:00:05 - End Time 2025-03-12 13:00:05 [2025-03-12 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664333', 'tblTempUsageDetail_20' ) start [2025-03-12 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664333', 'tblTempUsageDetail_20' ) end [2025-03-12 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664333', 'tblTempVendorCDR_20' ) start [2025-03-12 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664333', 'tblTempVendorCDR_20' ) end [2025-03-12 13:00:22] Production.INFO: ProcessCDR(1,14664333,1,1,2) [2025-03-12 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664333', 'tblTempUsageDetail_20' ) start [2025-03-12 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664333', 'tblTempUsageDetail_20' ) end [2025-03-12 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:00:27] Production.INFO: ==20664== Releasing lock... [2025-03-12 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:00:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:01:05 [end_date_ymd] => 2025-03-12 13:01:05 [RateCDR] => 1 ) [2025-03-12 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:01:05' and `end` < '2025-03-12 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:01:19] Production.INFO: count ==5781 [2025-03-12 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:01:05 - End Time 2025-03-12 13:01:05 [2025-03-12 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664339', 'tblTempUsageDetail_20' ) start [2025-03-12 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664339', 'tblTempUsageDetail_20' ) end [2025-03-12 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664339', 'tblTempVendorCDR_20' ) start [2025-03-12 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664339', 'tblTempVendorCDR_20' ) end [2025-03-12 13:01:22] Production.INFO: ProcessCDR(1,14664339,1,1,2) [2025-03-12 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664339', 'tblTempUsageDetail_20' ) start [2025-03-12 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664339', 'tblTempUsageDetail_20' ) end [2025-03-12 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:01:27] Production.INFO: ==20750== Releasing lock... [2025-03-12 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:01:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:02:06 [end_date_ymd] => 2025-03-12 13:02:06 [RateCDR] => 1 ) [2025-03-12 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:02:06' and `end` < '2025-03-12 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:02:20] Production.INFO: count ==5756 [2025-03-12 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:02:06 - End Time 2025-03-12 13:02:06 [2025-03-12 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664344', 'tblTempUsageDetail_20' ) start [2025-03-12 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664344', 'tblTempUsageDetail_20' ) end [2025-03-12 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664344', 'tblTempVendorCDR_20' ) start [2025-03-12 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664344', 'tblTempVendorCDR_20' ) end [2025-03-12 13:02:22] Production.INFO: ProcessCDR(1,14664344,1,1,2) [2025-03-12 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664344', 'tblTempUsageDetail_20' ) start [2025-03-12 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664344', 'tblTempUsageDetail_20' ) end [2025-03-12 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:02:28] Production.INFO: ==20828== Releasing lock... [2025-03-12 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:02:28] Production.INFO: 71 MB #Memory Used# [2025-03-12 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:03:06 [end_date_ymd] => 2025-03-12 13:03:06 [RateCDR] => 1 ) [2025-03-12 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:03:06' and `end` < '2025-03-12 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:03:19] Production.INFO: count ==5703 [2025-03-12 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:03:06 - End Time 2025-03-12 13:03:06 [2025-03-12 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664349', 'tblTempUsageDetail_20' ) start [2025-03-12 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664349', 'tblTempUsageDetail_20' ) end [2025-03-12 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664349', 'tblTempVendorCDR_20' ) start [2025-03-12 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664349', 'tblTempVendorCDR_20' ) end [2025-03-12 13:03:22] Production.INFO: ProcessCDR(1,14664349,1,1,2) [2025-03-12 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664349', 'tblTempUsageDetail_20' ) start [2025-03-12 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664349', 'tblTempUsageDetail_20' ) end [2025-03-12 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:03:27] Production.INFO: ==20938== Releasing lock... [2025-03-12 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:03:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:04:06 [end_date_ymd] => 2025-03-12 13:04:06 [RateCDR] => 1 ) [2025-03-12 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:04:06' and `end` < '2025-03-12 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:04:19] Production.INFO: count ==5685 [2025-03-12 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:04:06 - End Time 2025-03-12 13:04:06 [2025-03-12 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664354', 'tblTempUsageDetail_20' ) start [2025-03-12 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664354', 'tblTempUsageDetail_20' ) end [2025-03-12 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664354', 'tblTempVendorCDR_20' ) start [2025-03-12 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664354', 'tblTempVendorCDR_20' ) end [2025-03-12 13:04:21] Production.INFO: ProcessCDR(1,14664354,1,1,2) [2025-03-12 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664354', 'tblTempUsageDetail_20' ) start [2025-03-12 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664354', 'tblTempUsageDetail_20' ) end [2025-03-12 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:04:27] Production.INFO: ==21014== Releasing lock... [2025-03-12 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:04:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:05:05 [end_date_ymd] => 2025-03-12 13:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:05:18] Production.INFO: count ==5646 [2025-03-12 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:05:05 - End Time 2025-03-12 13:05:05 [2025-03-12 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664359', 'tblTempUsageDetail_20' ) start [2025-03-12 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664359', 'tblTempUsageDetail_20' ) end [2025-03-12 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664359', 'tblTempVendorCDR_20' ) start [2025-03-12 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664359', 'tblTempVendorCDR_20' ) end [2025-03-12 13:05:21] Production.INFO: ProcessCDR(1,14664359,1,1,2) [2025-03-12 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664359', 'tblTempUsageDetail_20' ) start [2025-03-12 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664359', 'tblTempUsageDetail_20' ) end [2025-03-12 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:05:26] Production.INFO: ==21084== Releasing lock... [2025-03-12 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:05:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:06:05 [end_date_ymd] => 2025-03-12 13:06:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:06:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:06:19] Production.INFO: count ==5605 [2025-03-12 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:06:05 - End Time 2025-03-12 13:06:05 [2025-03-12 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664364', 'tblTempUsageDetail_20' ) start [2025-03-12 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664364', 'tblTempUsageDetail_20' ) end [2025-03-12 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664364', 'tblTempVendorCDR_20' ) start [2025-03-12 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664364', 'tblTempVendorCDR_20' ) end [2025-03-12 13:06:21] Production.INFO: ProcessCDR(1,14664364,1,1,2) [2025-03-12 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664364', 'tblTempUsageDetail_20' ) start [2025-03-12 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664364', 'tblTempUsageDetail_20' ) end [2025-03-12 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:06:27] Production.INFO: ==21155== Releasing lock... [2025-03-12 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:06:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:07:05 [end_date_ymd] => 2025-03-12 13:07:05 [RateCDR] => 1 ) [2025-03-12 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:07:05' and `end` < '2025-03-12 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:07:18] Production.INFO: count ==5590 [2025-03-12 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:07:05 - End Time 2025-03-12 13:07:05 [2025-03-12 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664369', 'tblTempUsageDetail_20' ) start [2025-03-12 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664369', 'tblTempUsageDetail_20' ) end [2025-03-12 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664369', 'tblTempVendorCDR_20' ) start [2025-03-12 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664369', 'tblTempVendorCDR_20' ) end [2025-03-12 13:07:21] Production.INFO: ProcessCDR(1,14664369,1,1,2) [2025-03-12 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664369', 'tblTempUsageDetail_20' ) start [2025-03-12 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664369', 'tblTempUsageDetail_20' ) end [2025-03-12 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:07:26] Production.INFO: ==21230== Releasing lock... [2025-03-12 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:07:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:08:05 [end_date_ymd] => 2025-03-12 13:08:05 [RateCDR] => 1 ) [2025-03-12 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:08:05' and `end` < '2025-03-12 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:08:18] Production.INFO: count ==5532 [2025-03-12 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:08:05 - End Time 2025-03-12 13:08:05 [2025-03-12 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664374', 'tblTempUsageDetail_20' ) start [2025-03-12 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664374', 'tblTempUsageDetail_20' ) end [2025-03-12 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664374', 'tblTempVendorCDR_20' ) start [2025-03-12 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664374', 'tblTempVendorCDR_20' ) end [2025-03-12 13:08:21] Production.INFO: ProcessCDR(1,14664374,1,1,2) [2025-03-12 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664374', 'tblTempUsageDetail_20' ) start [2025-03-12 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664374', 'tblTempUsageDetail_20' ) end [2025-03-12 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:08:26] Production.INFO: ==21302== Releasing lock... [2025-03-12 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:08:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:09:05 [end_date_ymd] => 2025-03-12 13:09:05 [RateCDR] => 1 ) [2025-03-12 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:09:05' and `end` < '2025-03-12 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:09:18] Production.INFO: count ==5536 [2025-03-12 13:09:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:09:05 - End Time 2025-03-12 13:09:05 [2025-03-12 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664379', 'tblTempUsageDetail_20' ) start [2025-03-12 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664379', 'tblTempUsageDetail_20' ) end [2025-03-12 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664379', 'tblTempVendorCDR_20' ) start [2025-03-12 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664379', 'tblTempVendorCDR_20' ) end [2025-03-12 13:09:21] Production.INFO: ProcessCDR(1,14664379,1,1,2) [2025-03-12 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664379', 'tblTempUsageDetail_20' ) start [2025-03-12 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664379', 'tblTempUsageDetail_20' ) end [2025-03-12 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:09:26] Production.INFO: ==21375== Releasing lock... [2025-03-12 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:09:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:10:06 [end_date_ymd] => 2025-03-12 13:10:06 [RateCDR] => 1 ) [2025-03-12 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:10:06' and `end` < '2025-03-12 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:10:19] Production.INFO: count ==5531 [2025-03-12 13:10:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:10:06 - End Time 2025-03-12 13:10:06 [2025-03-12 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664384', 'tblTempUsageDetail_20' ) start [2025-03-12 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664384', 'tblTempUsageDetail_20' ) end [2025-03-12 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664384', 'tblTempVendorCDR_20' ) start [2025-03-12 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664384', 'tblTempVendorCDR_20' ) end [2025-03-12 13:10:22] Production.INFO: ProcessCDR(1,14664384,1,1,2) [2025-03-12 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664384', 'tblTempUsageDetail_20' ) start [2025-03-12 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664384', 'tblTempUsageDetail_20' ) end [2025-03-12 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:10:27] Production.INFO: ==21452== Releasing lock... [2025-03-12 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:10:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:11:05 [end_date_ymd] => 2025-03-12 13:11:05 [RateCDR] => 1 ) [2025-03-12 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:11:05' and `end` < '2025-03-12 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:11:18] Production.INFO: count ==5518 [2025-03-12 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:11:05 - End Time 2025-03-12 13:11:05 [2025-03-12 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664390', 'tblTempUsageDetail_20' ) start [2025-03-12 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664390', 'tblTempUsageDetail_20' ) end [2025-03-12 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664390', 'tblTempVendorCDR_20' ) start [2025-03-12 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664390', 'tblTempVendorCDR_20' ) end [2025-03-12 13:11:21] Production.INFO: ProcessCDR(1,14664390,1,1,2) [2025-03-12 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664390', 'tblTempUsageDetail_20' ) start [2025-03-12 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664390', 'tblTempUsageDetail_20' ) end [2025-03-12 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:11:27] Production.INFO: ==21524== Releasing lock... [2025-03-12 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:11:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:12:05 [end_date_ymd] => 2025-03-12 13:12:05 [RateCDR] => 1 ) [2025-03-12 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:12:05' and `end` < '2025-03-12 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:12:18] Production.INFO: count ==5407 [2025-03-12 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:12:05 - End Time 2025-03-12 13:12:05 [2025-03-12 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664395', 'tblTempUsageDetail_20' ) start [2025-03-12 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664395', 'tblTempUsageDetail_20' ) end [2025-03-12 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664395', 'tblTempVendorCDR_20' ) start [2025-03-12 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664395', 'tblTempVendorCDR_20' ) end [2025-03-12 13:12:21] Production.INFO: ProcessCDR(1,14664395,1,1,2) [2025-03-12 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664395', 'tblTempUsageDetail_20' ) start [2025-03-12 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664395', 'tblTempUsageDetail_20' ) end [2025-03-12 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:12:26] Production.INFO: ==21596== Releasing lock... [2025-03-12 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:12:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:13:05 [end_date_ymd] => 2025-03-12 13:13:05 [RateCDR] => 1 ) [2025-03-12 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:13:05' and `end` < '2025-03-12 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:13:18] Production.INFO: count ==5384 [2025-03-12 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:13:05 - End Time 2025-03-12 13:13:05 [2025-03-12 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664400', 'tblTempUsageDetail_20' ) start [2025-03-12 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664400', 'tblTempUsageDetail_20' ) end [2025-03-12 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664400', 'tblTempVendorCDR_20' ) start [2025-03-12 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664400', 'tblTempVendorCDR_20' ) end [2025-03-12 13:13:21] Production.INFO: ProcessCDR(1,14664400,1,1,2) [2025-03-12 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664400', 'tblTempUsageDetail_20' ) start [2025-03-12 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664400', 'tblTempUsageDetail_20' ) end [2025-03-12 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:13:27] Production.INFO: ==21667== Releasing lock... [2025-03-12 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:13:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:14:05 [end_date_ymd] => 2025-03-12 13:14:05 [RateCDR] => 1 ) [2025-03-12 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:14:05' and `end` < '2025-03-12 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:14:19] Production.INFO: count ==5342 [2025-03-12 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:14:05 - End Time 2025-03-12 13:14:05 [2025-03-12 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664405', 'tblTempUsageDetail_20' ) start [2025-03-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664405', 'tblTempUsageDetail_20' ) end [2025-03-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664405', 'tblTempVendorCDR_20' ) start [2025-03-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664405', 'tblTempVendorCDR_20' ) end [2025-03-12 13:14:21] Production.INFO: ProcessCDR(1,14664405,1,1,2) [2025-03-12 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664405', 'tblTempUsageDetail_20' ) start [2025-03-12 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664405', 'tblTempUsageDetail_20' ) end [2025-03-12 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:14:27] Production.INFO: ==21747== Releasing lock... [2025-03-12 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:14:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:15:05 [end_date_ymd] => 2025-03-12 13:15:05 [RateCDR] => 1 ) [2025-03-12 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:15:05' and `end` < '2025-03-12 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:15:19] Production.INFO: count ==5353 [2025-03-12 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:15:05 - End Time 2025-03-12 13:15:05 [2025-03-12 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664410', 'tblTempUsageDetail_20' ) start [2025-03-12 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664410', 'tblTempUsageDetail_20' ) end [2025-03-12 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664410', 'tblTempVendorCDR_20' ) start [2025-03-12 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664410', 'tblTempVendorCDR_20' ) end [2025-03-12 13:15:21] Production.INFO: ProcessCDR(1,14664410,1,1,2) [2025-03-12 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664410', 'tblTempUsageDetail_20' ) start [2025-03-12 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664410', 'tblTempUsageDetail_20' ) end [2025-03-12 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:15:27] Production.INFO: ==21825== Releasing lock... [2025-03-12 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:15:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:16:06 [end_date_ymd] => 2025-03-12 13:16:06 [RateCDR] => 1 ) [2025-03-12 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:16:06' and `end` < '2025-03-12 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:16:19] Production.INFO: count ==5336 [2025-03-12 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:16:06 - End Time 2025-03-12 13:16:06 [2025-03-12 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664415', 'tblTempUsageDetail_20' ) start [2025-03-12 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664415', 'tblTempUsageDetail_20' ) end [2025-03-12 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664415', 'tblTempVendorCDR_20' ) start [2025-03-12 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664415', 'tblTempVendorCDR_20' ) end [2025-03-12 13:16:21] Production.INFO: ProcessCDR(1,14664415,1,1,2) [2025-03-12 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664415', 'tblTempUsageDetail_20' ) start [2025-03-12 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664415', 'tblTempUsageDetail_20' ) end [2025-03-12 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:16:27] Production.INFO: ==21898== Releasing lock... [2025-03-12 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:16:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:17:05 [end_date_ymd] => 2025-03-12 13:17:05 [RateCDR] => 1 ) [2025-03-12 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:17:05' and `end` < '2025-03-12 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:17:18] Production.INFO: count ==5320 [2025-03-12 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:17:05 - End Time 2025-03-12 13:17:05 [2025-03-12 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664420', 'tblTempUsageDetail_20' ) start [2025-03-12 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664420', 'tblTempUsageDetail_20' ) end [2025-03-12 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664420', 'tblTempVendorCDR_20' ) start [2025-03-12 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664420', 'tblTempVendorCDR_20' ) end [2025-03-12 13:17:21] Production.INFO: ProcessCDR(1,14664420,1,1,2) [2025-03-12 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664420', 'tblTempUsageDetail_20' ) start [2025-03-12 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664420', 'tblTempUsageDetail_20' ) end [2025-03-12 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:17:27] Production.INFO: ==21975== Releasing lock... [2025-03-12 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:17:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:18:06 [end_date_ymd] => 2025-03-12 13:18:06 [RateCDR] => 1 ) [2025-03-12 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:18:06' and `end` < '2025-03-12 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:18:19] Production.INFO: count ==5301 [2025-03-12 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:18:06 - End Time 2025-03-12 13:18:06 [2025-03-12 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664425', 'tblTempUsageDetail_20' ) start [2025-03-12 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664425', 'tblTempUsageDetail_20' ) end [2025-03-12 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664425', 'tblTempVendorCDR_20' ) start [2025-03-12 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664425', 'tblTempVendorCDR_20' ) end [2025-03-12 13:18:21] Production.INFO: ProcessCDR(1,14664425,1,1,2) [2025-03-12 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664425', 'tblTempUsageDetail_20' ) start [2025-03-12 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664425', 'tblTempUsageDetail_20' ) end [2025-03-12 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:18:27] Production.INFO: ==22058== Releasing lock... [2025-03-12 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:19:05 [end_date_ymd] => 2025-03-12 13:19:05 [RateCDR] => 1 ) [2025-03-12 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:19:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:19:18] Production.INFO: count ==5309 [2025-03-12 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:19:05 - End Time 2025-03-12 13:19:05 [2025-03-12 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664430', 'tblTempUsageDetail_20' ) start [2025-03-12 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664430', 'tblTempUsageDetail_20' ) end [2025-03-12 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664430', 'tblTempVendorCDR_20' ) start [2025-03-12 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664430', 'tblTempVendorCDR_20' ) end [2025-03-12 13:19:21] Production.INFO: ProcessCDR(1,14664430,1,1,2) [2025-03-12 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664430', 'tblTempUsageDetail_20' ) start [2025-03-12 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664430', 'tblTempUsageDetail_20' ) end [2025-03-12 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:19:27] Production.INFO: ==22176== Releasing lock... [2025-03-12 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:20:07 [end_date_ymd] => 2025-03-12 13:20:07 [RateCDR] => 1 ) [2025-03-12 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:20:07' and `end` < '2025-03-12 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:20:21] Production.INFO: count ==5302 [2025-03-12 13:20:23] Production.ERROR: pbx CDR StartTime 2025-03-12 10:20:07 - End Time 2025-03-12 13:20:07 [2025-03-12 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664436', 'tblTempUsageDetail_20' ) start [2025-03-12 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664436', 'tblTempUsageDetail_20' ) end [2025-03-12 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664436', 'tblTempVendorCDR_20' ) start [2025-03-12 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664436', 'tblTempVendorCDR_20' ) end [2025-03-12 13:20:23] Production.INFO: ProcessCDR(1,14664436,1,1,2) [2025-03-12 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664436', 'tblTempUsageDetail_20' ) start [2025-03-12 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664436', 'tblTempUsageDetail_20' ) end [2025-03-12 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:20:29] Production.INFO: ==22254== Releasing lock... [2025-03-12 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:20:29] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:21:05 [end_date_ymd] => 2025-03-12 13:21:05 [RateCDR] => 1 ) [2025-03-12 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:21:05' and `end` < '2025-03-12 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:21:19] Production.INFO: count ==5301 [2025-03-12 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:21:05 - End Time 2025-03-12 13:21:05 [2025-03-12 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664441', 'tblTempUsageDetail_20' ) start [2025-03-12 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664441', 'tblTempUsageDetail_20' ) end [2025-03-12 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664441', 'tblTempVendorCDR_20' ) start [2025-03-12 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664441', 'tblTempVendorCDR_20' ) end [2025-03-12 13:21:21] Production.INFO: ProcessCDR(1,14664441,1,1,2) [2025-03-12 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664441', 'tblTempUsageDetail_20' ) start [2025-03-12 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664441', 'tblTempUsageDetail_20' ) end [2025-03-12 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:21:27] Production.INFO: ==22336== Releasing lock... [2025-03-12 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:21:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:22:06 [end_date_ymd] => 2025-03-12 13:22:06 [RateCDR] => 1 ) [2025-03-12 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:22:06' and `end` < '2025-03-12 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:22:19] Production.INFO: count ==5304 [2025-03-12 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:22:06 - End Time 2025-03-12 13:22:06 [2025-03-12 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664446', 'tblTempUsageDetail_20' ) start [2025-03-12 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664446', 'tblTempUsageDetail_20' ) end [2025-03-12 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664446', 'tblTempVendorCDR_20' ) start [2025-03-12 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664446', 'tblTempVendorCDR_20' ) end [2025-03-12 13:22:22] Production.INFO: ProcessCDR(1,14664446,1,1,2) [2025-03-12 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664446', 'tblTempUsageDetail_20' ) start [2025-03-12 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664446', 'tblTempUsageDetail_20' ) end [2025-03-12 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:22:27] Production.INFO: ==22408== Releasing lock... [2025-03-12 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:22:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:23:05 [end_date_ymd] => 2025-03-12 13:23:05 [RateCDR] => 1 ) [2025-03-12 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:23:05' and `end` < '2025-03-12 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:23:18] Production.INFO: count ==5300 [2025-03-12 13:23:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:23:05 - End Time 2025-03-12 13:23:05 [2025-03-12 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664451', 'tblTempUsageDetail_20' ) start [2025-03-12 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664451', 'tblTempUsageDetail_20' ) end [2025-03-12 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664451', 'tblTempVendorCDR_20' ) start [2025-03-12 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664451', 'tblTempVendorCDR_20' ) end [2025-03-12 13:23:21] Production.INFO: ProcessCDR(1,14664451,1,1,2) [2025-03-12 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664451', 'tblTempUsageDetail_20' ) start [2025-03-12 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664451', 'tblTempUsageDetail_20' ) end [2025-03-12 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:23:26] Production.INFO: ==22482== Releasing lock... [2025-03-12 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:23:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:24:06 [end_date_ymd] => 2025-03-12 13:24:06 [RateCDR] => 1 ) [2025-03-12 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:24:06' and `end` < '2025-03-12 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:24:19] Production.INFO: count ==5298 [2025-03-12 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:24:06 - End Time 2025-03-12 13:24:06 [2025-03-12 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664456', 'tblTempUsageDetail_20' ) start [2025-03-12 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664456', 'tblTempUsageDetail_20' ) end [2025-03-12 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664456', 'tblTempVendorCDR_20' ) start [2025-03-12 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664456', 'tblTempVendorCDR_20' ) end [2025-03-12 13:24:22] Production.INFO: ProcessCDR(1,14664456,1,1,2) [2025-03-12 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664456', 'tblTempUsageDetail_20' ) start [2025-03-12 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664456', 'tblTempUsageDetail_20' ) end [2025-03-12 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:24:28] Production.INFO: ==22555== Releasing lock... [2025-03-12 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:24:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:25:05 [end_date_ymd] => 2025-03-12 13:25:05 [RateCDR] => 1 ) [2025-03-12 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:25:05' and `end` < '2025-03-12 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:25:18] Production.INFO: count ==5302 [2025-03-12 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:25:05 - End Time 2025-03-12 13:25:05 [2025-03-12 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664461', 'tblTempUsageDetail_20' ) start [2025-03-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664461', 'tblTempUsageDetail_20' ) end [2025-03-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664461', 'tblTempVendorCDR_20' ) start [2025-03-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664461', 'tblTempVendorCDR_20' ) end [2025-03-12 13:25:21] Production.INFO: ProcessCDR(1,14664461,1,1,2) [2025-03-12 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664461', 'tblTempUsageDetail_20' ) start [2025-03-12 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664461', 'tblTempUsageDetail_20' ) end [2025-03-12 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:25:26] Production.INFO: ==22624== Releasing lock... [2025-03-12 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:25:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:26:06 [end_date_ymd] => 2025-03-12 13:26:06 [RateCDR] => 1 ) [2025-03-12 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:26:06' and `end` < '2025-03-12 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:26:19] Production.INFO: count ==5328 [2025-03-12 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:26:06 - End Time 2025-03-12 13:26:06 [2025-03-12 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664466', 'tblTempUsageDetail_20' ) start [2025-03-12 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664466', 'tblTempUsageDetail_20' ) end [2025-03-12 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664466', 'tblTempVendorCDR_20' ) start [2025-03-12 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664466', 'tblTempVendorCDR_20' ) end [2025-03-12 13:26:21] Production.INFO: ProcessCDR(1,14664466,1,1,2) [2025-03-12 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664466', 'tblTempUsageDetail_20' ) start [2025-03-12 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664466', 'tblTempUsageDetail_20' ) end [2025-03-12 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:26:27] Production.INFO: ==22696== Releasing lock... [2025-03-12 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:26:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:27:06 [end_date_ymd] => 2025-03-12 13:27:06 [RateCDR] => 1 ) [2025-03-12 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:27:06' and `end` < '2025-03-12 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:27:19] Production.INFO: count ==5343 [2025-03-12 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:27:06 - End Time 2025-03-12 13:27:06 [2025-03-12 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664471', 'tblTempUsageDetail_20' ) start [2025-03-12 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664471', 'tblTempUsageDetail_20' ) end [2025-03-12 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664471', 'tblTempVendorCDR_20' ) start [2025-03-12 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664471', 'tblTempVendorCDR_20' ) end [2025-03-12 13:27:21] Production.INFO: ProcessCDR(1,14664471,1,1,2) [2025-03-12 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664471', 'tblTempUsageDetail_20' ) start [2025-03-12 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664471', 'tblTempUsageDetail_20' ) end [2025-03-12 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:27:27] Production.INFO: ==22770== Releasing lock... [2025-03-12 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:27:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:28:05 [end_date_ymd] => 2025-03-12 13:28:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:28:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:28:19] Production.INFO: count ==5342 [2025-03-12 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:28:05 - End Time 2025-03-12 13:28:05 [2025-03-12 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664476', 'tblTempUsageDetail_20' ) start [2025-03-12 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664476', 'tblTempUsageDetail_20' ) end [2025-03-12 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664476', 'tblTempVendorCDR_20' ) start [2025-03-12 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664476', 'tblTempVendorCDR_20' ) end [2025-03-12 13:28:21] Production.INFO: ProcessCDR(1,14664476,1,1,2) [2025-03-12 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664476', 'tblTempUsageDetail_20' ) start [2025-03-12 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664476', 'tblTempUsageDetail_20' ) end [2025-03-12 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:28:27] Production.INFO: ==22856== Releasing lock... [2025-03-12 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:28:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:29:05 [end_date_ymd] => 2025-03-12 13:29:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:29:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:29:19] Production.INFO: count ==5355 [2025-03-12 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:29:05 - End Time 2025-03-12 13:29:05 [2025-03-12 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664481', 'tblTempUsageDetail_20' ) start [2025-03-12 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664481', 'tblTempUsageDetail_20' ) end [2025-03-12 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664481', 'tblTempVendorCDR_20' ) start [2025-03-12 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664481', 'tblTempVendorCDR_20' ) end [2025-03-12 13:29:21] Production.INFO: ProcessCDR(1,14664481,1,1,2) [2025-03-12 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664481', 'tblTempUsageDetail_20' ) start [2025-03-12 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664481', 'tblTempUsageDetail_20' ) end [2025-03-12 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:29:27] Production.INFO: ==22928== Releasing lock... [2025-03-12 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:29:27] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:30:06 [end_date_ymd] => 2025-03-12 13:30:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:30:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:30:19] Production.INFO: count ==5342 [2025-03-12 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:30:06 - End Time 2025-03-12 13:30:06 [2025-03-12 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664487', 'tblTempUsageDetail_20' ) start [2025-03-12 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664487', 'tblTempUsageDetail_20' ) end [2025-03-12 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664487', 'tblTempVendorCDR_20' ) start [2025-03-12 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664487', 'tblTempVendorCDR_20' ) end [2025-03-12 13:30:22] Production.INFO: ProcessCDR(1,14664487,1,1,2) [2025-03-12 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664487', 'tblTempUsageDetail_20' ) start [2025-03-12 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664487', 'tblTempUsageDetail_20' ) end [2025-03-12 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:30:28] Production.INFO: ==23003== Releasing lock... [2025-03-12 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:30:28] Production.INFO: 68 MB #Memory Used# [2025-03-12 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:31:05 [end_date_ymd] => 2025-03-12 13:31:05 [RateCDR] => 1 ) [2025-03-12 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:31:05' and `end` < '2025-03-12 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:31:19] Production.INFO: count ==5306 [2025-03-12 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:31:05 - End Time 2025-03-12 13:31:05 [2025-03-12 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664492', 'tblTempUsageDetail_20' ) start [2025-03-12 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664492', 'tblTempUsageDetail_20' ) end [2025-03-12 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664492', 'tblTempVendorCDR_20' ) start [2025-03-12 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664492', 'tblTempVendorCDR_20' ) end [2025-03-12 13:31:21] Production.INFO: ProcessCDR(1,14664492,1,1,2) [2025-03-12 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664492', 'tblTempUsageDetail_20' ) start [2025-03-12 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664492', 'tblTempUsageDetail_20' ) end [2025-03-12 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:31:27] Production.INFO: ==23078== Releasing lock... [2025-03-12 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:31:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:32:05 [end_date_ymd] => 2025-03-12 13:32:05 [RateCDR] => 1 ) [2025-03-12 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:32:05' and `end` < '2025-03-12 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:32:18] Production.INFO: count ==5290 [2025-03-12 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:32:05 - End Time 2025-03-12 13:32:05 [2025-03-12 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664497', 'tblTempUsageDetail_20' ) start [2025-03-12 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664497', 'tblTempUsageDetail_20' ) end [2025-03-12 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664497', 'tblTempVendorCDR_20' ) start [2025-03-12 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664497', 'tblTempVendorCDR_20' ) end [2025-03-12 13:32:21] Production.INFO: ProcessCDR(1,14664497,1,1,2) [2025-03-12 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664497', 'tblTempUsageDetail_20' ) start [2025-03-12 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664497', 'tblTempUsageDetail_20' ) end [2025-03-12 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:32:26] Production.INFO: ==23149== Releasing lock... [2025-03-12 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:32:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:33:06 [end_date_ymd] => 2025-03-12 13:33:06 [RateCDR] => 1 ) [2025-03-12 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:33:06' and `end` < '2025-03-12 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:33:19] Production.INFO: count ==5299 [2025-03-12 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:33:06 - End Time 2025-03-12 13:33:06 [2025-03-12 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664502', 'tblTempUsageDetail_20' ) start [2025-03-12 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664502', 'tblTempUsageDetail_20' ) end [2025-03-12 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664502', 'tblTempVendorCDR_20' ) start [2025-03-12 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664502', 'tblTempVendorCDR_20' ) end [2025-03-12 13:33:22] Production.INFO: ProcessCDR(1,14664502,1,1,2) [2025-03-12 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664502', 'tblTempUsageDetail_20' ) start [2025-03-12 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664502', 'tblTempUsageDetail_20' ) end [2025-03-12 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:33:27] Production.INFO: ==23219== Releasing lock... [2025-03-12 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:33:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:34:05 [end_date_ymd] => 2025-03-12 13:34:05 [RateCDR] => 1 ) [2025-03-12 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:34:05' and `end` < '2025-03-12 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:34:19] Production.INFO: count ==5291 [2025-03-12 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:34:05 - End Time 2025-03-12 13:34:05 [2025-03-12 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664507', 'tblTempUsageDetail_20' ) start [2025-03-12 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664507', 'tblTempUsageDetail_20' ) end [2025-03-12 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664507', 'tblTempVendorCDR_20' ) start [2025-03-12 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664507', 'tblTempVendorCDR_20' ) end [2025-03-12 13:34:21] Production.INFO: ProcessCDR(1,14664507,1,1,2) [2025-03-12 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664507', 'tblTempUsageDetail_20' ) start [2025-03-12 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664507', 'tblTempUsageDetail_20' ) end [2025-03-12 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:34:27] Production.INFO: ==23332== Releasing lock... [2025-03-12 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:34:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:35:06 [end_date_ymd] => 2025-03-12 13:35:06 [RateCDR] => 1 ) [2025-03-12 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:35:06' and `end` < '2025-03-12 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:35:19] Production.INFO: count ==5314 [2025-03-12 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:35:06 - End Time 2025-03-12 13:35:06 [2025-03-12 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664512', 'tblTempUsageDetail_20' ) start [2025-03-12 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664512', 'tblTempUsageDetail_20' ) end [2025-03-12 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664512', 'tblTempVendorCDR_20' ) start [2025-03-12 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664512', 'tblTempVendorCDR_20' ) end [2025-03-12 13:35:21] Production.INFO: ProcessCDR(1,14664512,1,1,2) [2025-03-12 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664512', 'tblTempUsageDetail_20' ) start [2025-03-12 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664512', 'tblTempUsageDetail_20' ) end [2025-03-12 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:35:27] Production.INFO: ==23412== Releasing lock... [2025-03-12 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:35:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:36:05 [end_date_ymd] => 2025-03-12 13:36:05 [RateCDR] => 1 ) [2025-03-12 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:36:05' and `end` < '2025-03-12 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:36:19] Production.INFO: count ==5298 [2025-03-12 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:36:05 - End Time 2025-03-12 13:36:05 [2025-03-12 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664517', 'tblTempUsageDetail_20' ) start [2025-03-12 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664517', 'tblTempUsageDetail_20' ) end [2025-03-12 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664517', 'tblTempVendorCDR_20' ) start [2025-03-12 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664517', 'tblTempVendorCDR_20' ) end [2025-03-12 13:36:21] Production.INFO: ProcessCDR(1,14664517,1,1,2) [2025-03-12 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664517', 'tblTempUsageDetail_20' ) start [2025-03-12 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664517', 'tblTempUsageDetail_20' ) end [2025-03-12 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:36:27] Production.INFO: ==23487== Releasing lock... [2025-03-12 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:36:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:37:05 [end_date_ymd] => 2025-03-12 13:37:05 [RateCDR] => 1 ) [2025-03-12 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:37:05' and `end` < '2025-03-12 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:37:19] Production.INFO: count ==5295 [2025-03-12 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:37:05 - End Time 2025-03-12 13:37:05 [2025-03-12 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664522', 'tblTempUsageDetail_20' ) start [2025-03-12 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664522', 'tblTempUsageDetail_20' ) end [2025-03-12 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664522', 'tblTempVendorCDR_20' ) start [2025-03-12 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664522', 'tblTempVendorCDR_20' ) end [2025-03-12 13:37:21] Production.INFO: ProcessCDR(1,14664522,1,1,2) [2025-03-12 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664522', 'tblTempUsageDetail_20' ) start [2025-03-12 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664522', 'tblTempUsageDetail_20' ) end [2025-03-12 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:37:26] Production.INFO: ==23562== Releasing lock... [2025-03-12 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:38:06 [end_date_ymd] => 2025-03-12 13:38:06 [RateCDR] => 1 ) [2025-03-12 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:38:06' and `end` < '2025-03-12 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:38:19] Production.INFO: count ==5271 [2025-03-12 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:38:06 - End Time 2025-03-12 13:38:06 [2025-03-12 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664527', 'tblTempUsageDetail_20' ) start [2025-03-12 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664527', 'tblTempUsageDetail_20' ) end [2025-03-12 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664527', 'tblTempVendorCDR_20' ) start [2025-03-12 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664527', 'tblTempVendorCDR_20' ) end [2025-03-12 13:38:22] Production.INFO: ProcessCDR(1,14664527,1,1,2) [2025-03-12 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664527', 'tblTempUsageDetail_20' ) start [2025-03-12 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664527', 'tblTempUsageDetail_20' ) end [2025-03-12 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:38:27] Production.INFO: ==23634== Releasing lock... [2025-03-12 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:38:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:39:06 [end_date_ymd] => 2025-03-12 13:39:06 [RateCDR] => 1 ) [2025-03-12 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:39:06' and `end` < '2025-03-12 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:39:19] Production.INFO: count ==5276 [2025-03-12 13:39:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:39:06 - End Time 2025-03-12 13:39:06 [2025-03-12 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664532', 'tblTempUsageDetail_20' ) start [2025-03-12 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664532', 'tblTempUsageDetail_20' ) end [2025-03-12 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664532', 'tblTempVendorCDR_20' ) start [2025-03-12 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664532', 'tblTempVendorCDR_20' ) end [2025-03-12 13:39:22] Production.INFO: ProcessCDR(1,14664532,1,1,2) [2025-03-12 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664532', 'tblTempUsageDetail_20' ) start [2025-03-12 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664532', 'tblTempUsageDetail_20' ) end [2025-03-12 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:39:28] Production.INFO: ==23703== Releasing lock... [2025-03-12 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:39:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:40:06 [end_date_ymd] => 2025-03-12 13:40:06 [RateCDR] => 1 ) [2025-03-12 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:40:06' and `end` < '2025-03-12 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:40:19] Production.INFO: count ==5290 [2025-03-12 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:40:06 - End Time 2025-03-12 13:40:06 [2025-03-12 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664538', 'tblTempUsageDetail_20' ) start [2025-03-12 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664538', 'tblTempUsageDetail_20' ) end [2025-03-12 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664538', 'tblTempVendorCDR_20' ) start [2025-03-12 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664538', 'tblTempVendorCDR_20' ) end [2025-03-12 13:40:22] Production.INFO: ProcessCDR(1,14664538,1,1,2) [2025-03-12 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664538', 'tblTempUsageDetail_20' ) start [2025-03-12 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664538', 'tblTempUsageDetail_20' ) end [2025-03-12 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:40:28] Production.INFO: ==23782== Releasing lock... [2025-03-12 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:40:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:41:05 [end_date_ymd] => 2025-03-12 13:41:05 [RateCDR] => 1 ) [2025-03-12 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:41:05' and `end` < '2025-03-12 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:41:18] Production.INFO: count ==5243 [2025-03-12 13:41:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:41:05 - End Time 2025-03-12 13:41:05 [2025-03-12 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664543', 'tblTempUsageDetail_20' ) start [2025-03-12 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664543', 'tblTempUsageDetail_20' ) end [2025-03-12 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664543', 'tblTempVendorCDR_20' ) start [2025-03-12 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664543', 'tblTempVendorCDR_20' ) end [2025-03-12 13:41:20] Production.INFO: ProcessCDR(1,14664543,1,1,2) [2025-03-12 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664543', 'tblTempUsageDetail_20' ) start [2025-03-12 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664543', 'tblTempUsageDetail_20' ) end [2025-03-12 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:41:26] Production.INFO: ==23854== Releasing lock... [2025-03-12 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:41:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:42:06 [end_date_ymd] => 2025-03-12 13:42:06 [RateCDR] => 1 ) [2025-03-12 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:42:06' and `end` < '2025-03-12 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:42:19] Production.INFO: count ==5217 [2025-03-12 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:42:06 - End Time 2025-03-12 13:42:06 [2025-03-12 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664548', 'tblTempUsageDetail_20' ) start [2025-03-12 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664548', 'tblTempUsageDetail_20' ) end [2025-03-12 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664548', 'tblTempVendorCDR_20' ) start [2025-03-12 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664548', 'tblTempVendorCDR_20' ) end [2025-03-12 13:42:21] Production.INFO: ProcessCDR(1,14664548,1,1,2) [2025-03-12 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664548', 'tblTempUsageDetail_20' ) start [2025-03-12 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664548', 'tblTempUsageDetail_20' ) end [2025-03-12 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:42:27] Production.INFO: ==23931== Releasing lock... [2025-03-12 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:42:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:43:06 [end_date_ymd] => 2025-03-12 13:43:06 [RateCDR] => 1 ) [2025-03-12 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:43:06' and `end` < '2025-03-12 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:43:19] Production.INFO: count ==5195 [2025-03-12 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:43:06 - End Time 2025-03-12 13:43:06 [2025-03-12 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664553', 'tblTempUsageDetail_20' ) start [2025-03-12 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664553', 'tblTempUsageDetail_20' ) end [2025-03-12 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664553', 'tblTempVendorCDR_20' ) start [2025-03-12 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664553', 'tblTempVendorCDR_20' ) end [2025-03-12 13:43:21] Production.INFO: ProcessCDR(1,14664553,1,1,2) [2025-03-12 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664553', 'tblTempUsageDetail_20' ) start [2025-03-12 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664553', 'tblTempUsageDetail_20' ) end [2025-03-12 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:43:27] Production.INFO: ==24002== Releasing lock... [2025-03-12 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:43:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:44:06 [end_date_ymd] => 2025-03-12 13:44:06 [RateCDR] => 1 ) [2025-03-12 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:44:06' and `end` < '2025-03-12 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:44:19] Production.INFO: count ==5180 [2025-03-12 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:44:06 - End Time 2025-03-12 13:44:06 [2025-03-12 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664558', 'tblTempUsageDetail_20' ) start [2025-03-12 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664558', 'tblTempUsageDetail_20' ) end [2025-03-12 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664558', 'tblTempVendorCDR_20' ) start [2025-03-12 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664558', 'tblTempVendorCDR_20' ) end [2025-03-12 13:44:21] Production.INFO: ProcessCDR(1,14664558,1,1,2) [2025-03-12 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664558', 'tblTempUsageDetail_20' ) start [2025-03-12 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664558', 'tblTempUsageDetail_20' ) end [2025-03-12 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:44:27] Production.INFO: ==24073== Releasing lock... [2025-03-12 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:44:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-12 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:45:06 [end_date_ymd] => 2025-03-12 13:45:06 [RateCDR] => 1 ) [2025-03-12 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:45:06' and `end` < '2025-03-12 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:45:19] Production.INFO: count ==5166 [2025-03-12 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:45:06 - End Time 2025-03-12 13:45:06 [2025-03-12 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664563', 'tblTempUsageDetail_20' ) start [2025-03-12 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664563', 'tblTempUsageDetail_20' ) end [2025-03-12 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664563', 'tblTempVendorCDR_20' ) start [2025-03-12 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664563', 'tblTempVendorCDR_20' ) end [2025-03-12 13:45:22] Production.INFO: ProcessCDR(1,14664563,1,1,2) [2025-03-12 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664563', 'tblTempUsageDetail_20' ) start [2025-03-12 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664563', 'tblTempUsageDetail_20' ) end [2025-03-12 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:45:27] Production.INFO: ==24147== Releasing lock... [2025-03-12 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:45:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-12 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:46:06 [end_date_ymd] => 2025-03-12 13:46:06 [RateCDR] => 1 ) [2025-03-12 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:46:06' and `end` < '2025-03-12 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:46:19] Production.INFO: count ==5162 [2025-03-12 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:46:06 - End Time 2025-03-12 13:46:06 [2025-03-12 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664568', 'tblTempUsageDetail_20' ) start [2025-03-12 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664568', 'tblTempUsageDetail_20' ) end [2025-03-12 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664568', 'tblTempVendorCDR_20' ) start [2025-03-12 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664568', 'tblTempVendorCDR_20' ) end [2025-03-12 13:46:21] Production.INFO: ProcessCDR(1,14664568,1,1,2) [2025-03-12 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664568', 'tblTempUsageDetail_20' ) start [2025-03-12 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664568', 'tblTempUsageDetail_20' ) end [2025-03-12 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:46:27] Production.INFO: ==24219== Releasing lock... [2025-03-12 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:46:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-12 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:47:05 [end_date_ymd] => 2025-03-12 13:47:05 [RateCDR] => 1 ) [2025-03-12 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:47:05' and `end` < '2025-03-12 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:47:18] Production.INFO: count ==5151 [2025-03-12 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:47:05 - End Time 2025-03-12 13:47:05 [2025-03-12 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664573', 'tblTempUsageDetail_20' ) start [2025-03-12 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664573', 'tblTempUsageDetail_20' ) end [2025-03-12 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664573', 'tblTempVendorCDR_20' ) start [2025-03-12 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664573', 'tblTempVendorCDR_20' ) end [2025-03-12 13:47:21] Production.INFO: ProcessCDR(1,14664573,1,1,2) [2025-03-12 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664573', 'tblTempUsageDetail_20' ) start [2025-03-12 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664573', 'tblTempUsageDetail_20' ) end [2025-03-12 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:47:26] Production.INFO: ==24289== Releasing lock... [2025-03-12 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:47:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:48:06 [end_date_ymd] => 2025-03-12 13:48:06 [RateCDR] => 1 ) [2025-03-12 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:48:06' and `end` < '2025-03-12 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:48:19] Production.INFO: count ==5154 [2025-03-12 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:48:06 - End Time 2025-03-12 13:48:06 [2025-03-12 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664578', 'tblTempUsageDetail_20' ) start [2025-03-12 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664578', 'tblTempUsageDetail_20' ) end [2025-03-12 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664578', 'tblTempVendorCDR_20' ) start [2025-03-12 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664578', 'tblTempVendorCDR_20' ) end [2025-03-12 13:48:21] Production.INFO: ProcessCDR(1,14664578,1,1,2) [2025-03-12 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664578', 'tblTempUsageDetail_20' ) start [2025-03-12 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664578', 'tblTempUsageDetail_20' ) end [2025-03-12 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:48:27] Production.INFO: ==24362== Releasing lock... [2025-03-12 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:48:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:49:06 [end_date_ymd] => 2025-03-12 13:49:06 [RateCDR] => 1 ) [2025-03-12 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:49:06' and `end` < '2025-03-12 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:49:19] Production.INFO: count ==5133 [2025-03-12 13:49:22] Production.ERROR: pbx CDR StartTime 2025-03-12 10:49:06 - End Time 2025-03-12 13:49:06 [2025-03-12 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664583', 'tblTempUsageDetail_20' ) start [2025-03-12 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664583', 'tblTempUsageDetail_20' ) end [2025-03-12 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664583', 'tblTempVendorCDR_20' ) start [2025-03-12 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664583', 'tblTempVendorCDR_20' ) end [2025-03-12 13:49:22] Production.INFO: ProcessCDR(1,14664583,1,1,2) [2025-03-12 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664583', 'tblTempUsageDetail_20' ) start [2025-03-12 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664583', 'tblTempUsageDetail_20' ) end [2025-03-12 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:49:27] Production.INFO: ==24437== Releasing lock... [2025-03-12 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:49:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:50:06 [end_date_ymd] => 2025-03-12 13:50:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 10:50:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 13:50:19] Production.INFO: count ==5147 [2025-03-12 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:50:06 - End Time 2025-03-12 13:50:06 [2025-03-12 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664589', 'tblTempUsageDetail_20' ) start [2025-03-12 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664589', 'tblTempUsageDetail_20' ) end [2025-03-12 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664589', 'tblTempVendorCDR_20' ) start [2025-03-12 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664589', 'tblTempVendorCDR_20' ) end [2025-03-12 13:50:21] Production.INFO: ProcessCDR(1,14664589,1,1,2) [2025-03-12 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664589', 'tblTempUsageDetail_20' ) start [2025-03-12 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664589', 'tblTempUsageDetail_20' ) end [2025-03-12 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:50:27] Production.INFO: ==24550== Releasing lock... [2025-03-12 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:50:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:51:06 [end_date_ymd] => 2025-03-12 13:51:06 [RateCDR] => 1 ) [2025-03-12 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:51:06' and `end` < '2025-03-12 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:51:19] Production.INFO: count ==5146 [2025-03-12 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:51:06 - End Time 2025-03-12 13:51:06 [2025-03-12 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664594', 'tblTempUsageDetail_20' ) start [2025-03-12 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664594', 'tblTempUsageDetail_20' ) end [2025-03-12 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664594', 'tblTempVendorCDR_20' ) start [2025-03-12 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664594', 'tblTempVendorCDR_20' ) end [2025-03-12 13:51:21] Production.INFO: ProcessCDR(1,14664594,1,1,2) [2025-03-12 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664594', 'tblTempUsageDetail_20' ) start [2025-03-12 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664594', 'tblTempUsageDetail_20' ) end [2025-03-12 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:51:27] Production.INFO: ==24625== Releasing lock... [2025-03-12 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:51:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:52:06 [end_date_ymd] => 2025-03-12 13:52:06 [RateCDR] => 1 ) [2025-03-12 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:52:06' and `end` < '2025-03-12 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:52:19] Production.INFO: count ==5107 [2025-03-12 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:52:06 - End Time 2025-03-12 13:52:06 [2025-03-12 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664599', 'tblTempUsageDetail_20' ) start [2025-03-12 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664599', 'tblTempUsageDetail_20' ) end [2025-03-12 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664599', 'tblTempVendorCDR_20' ) start [2025-03-12 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664599', 'tblTempVendorCDR_20' ) end [2025-03-12 13:52:21] Production.INFO: ProcessCDR(1,14664599,1,1,2) [2025-03-12 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664599', 'tblTempUsageDetail_20' ) start [2025-03-12 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664599', 'tblTempUsageDetail_20' ) end [2025-03-12 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:52:27] Production.INFO: ==24698== Releasing lock... [2025-03-12 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:52:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:53:05 [end_date_ymd] => 2025-03-12 13:53:05 [RateCDR] => 1 ) [2025-03-12 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:53:05' and `end` < '2025-03-12 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:53:18] Production.INFO: count ==5085 [2025-03-12 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:53:05 - End Time 2025-03-12 13:53:05 [2025-03-12 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664604', 'tblTempUsageDetail_20' ) start [2025-03-12 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664604', 'tblTempUsageDetail_20' ) end [2025-03-12 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664604', 'tblTempVendorCDR_20' ) start [2025-03-12 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664604', 'tblTempVendorCDR_20' ) end [2025-03-12 13:53:21] Production.INFO: ProcessCDR(1,14664604,1,1,2) [2025-03-12 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664604', 'tblTempUsageDetail_20' ) start [2025-03-12 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664604', 'tblTempUsageDetail_20' ) end [2025-03-12 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:53:26] Production.INFO: ==24772== Releasing lock... [2025-03-12 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:53:26] Production.INFO: 66 MB #Memory Used# [2025-03-12 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:54:05 [end_date_ymd] => 2025-03-12 13:54:05 [RateCDR] => 1 ) [2025-03-12 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:54:05' and `end` < '2025-03-12 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:54:18] Production.INFO: count ==5095 [2025-03-12 13:54:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:54:05 - End Time 2025-03-12 13:54:05 [2025-03-12 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664609', 'tblTempUsageDetail_20' ) start [2025-03-12 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664609', 'tblTempUsageDetail_20' ) end [2025-03-12 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664609', 'tblTempVendorCDR_20' ) start [2025-03-12 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664609', 'tblTempVendorCDR_20' ) end [2025-03-12 13:54:21] Production.INFO: ProcessCDR(1,14664609,1,1,2) [2025-03-12 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664609', 'tblTempUsageDetail_20' ) start [2025-03-12 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664609', 'tblTempUsageDetail_20' ) end [2025-03-12 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:54:26] Production.INFO: ==24846== Releasing lock... [2025-03-12 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:54:26] Production.INFO: 66 MB #Memory Used# [2025-03-12 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:55:06 [end_date_ymd] => 2025-03-12 13:55:06 [RateCDR] => 1 ) [2025-03-12 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:55:06' and `end` < '2025-03-12 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:55:19] Production.INFO: count ==5125 [2025-03-12 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:55:06 - End Time 2025-03-12 13:55:06 [2025-03-12 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664614', 'tblTempUsageDetail_20' ) start [2025-03-12 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664614', 'tblTempUsageDetail_20' ) end [2025-03-12 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664614', 'tblTempVendorCDR_20' ) start [2025-03-12 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664614', 'tblTempVendorCDR_20' ) end [2025-03-12 13:55:21] Production.INFO: ProcessCDR(1,14664614,1,1,2) [2025-03-12 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664614', 'tblTempUsageDetail_20' ) start [2025-03-12 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664614', 'tblTempUsageDetail_20' ) end [2025-03-12 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:55:27] Production.INFO: ==24921== Releasing lock... [2025-03-12 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:55:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:56:05 [end_date_ymd] => 2025-03-12 13:56:05 [RateCDR] => 1 ) [2025-03-12 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:56:05' and `end` < '2025-03-12 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:56:18] Production.INFO: count ==5125 [2025-03-12 13:56:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:56:05 - End Time 2025-03-12 13:56:05 [2025-03-12 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664619', 'tblTempUsageDetail_20' ) start [2025-03-12 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664619', 'tblTempUsageDetail_20' ) end [2025-03-12 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664619', 'tblTempVendorCDR_20' ) start [2025-03-12 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664619', 'tblTempVendorCDR_20' ) end [2025-03-12 13:56:20] Production.INFO: ProcessCDR(1,14664619,1,1,2) [2025-03-12 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664619', 'tblTempUsageDetail_20' ) start [2025-03-12 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664619', 'tblTempUsageDetail_20' ) end [2025-03-12 13:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:56:26] Production.INFO: ==25000== Releasing lock... [2025-03-12 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:56:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:57:06 [end_date_ymd] => 2025-03-12 13:57:06 [RateCDR] => 1 ) [2025-03-12 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:57:06' and `end` < '2025-03-12 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:57:19] Production.INFO: count ==5112 [2025-03-12 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:57:06 - End Time 2025-03-12 13:57:06 [2025-03-12 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664624', 'tblTempUsageDetail_20' ) start [2025-03-12 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664624', 'tblTempUsageDetail_20' ) end [2025-03-12 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664624', 'tblTempVendorCDR_20' ) start [2025-03-12 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664624', 'tblTempVendorCDR_20' ) end [2025-03-12 13:57:21] Production.INFO: ProcessCDR(1,14664624,1,1,2) [2025-03-12 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664624', 'tblTempUsageDetail_20' ) start [2025-03-12 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664624', 'tblTempUsageDetail_20' ) end [2025-03-12 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:57:26] Production.INFO: ==25074== Releasing lock... [2025-03-12 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:57:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:58:05 [end_date_ymd] => 2025-03-12 13:58:05 [RateCDR] => 1 ) [2025-03-12 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:58:05' and `end` < '2025-03-12 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:58:18] Production.INFO: count ==5112 [2025-03-12 13:58:20] Production.ERROR: pbx CDR StartTime 2025-03-12 10:58:05 - End Time 2025-03-12 13:58:05 [2025-03-12 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664629', 'tblTempUsageDetail_20' ) start [2025-03-12 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664629', 'tblTempUsageDetail_20' ) end [2025-03-12 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664629', 'tblTempVendorCDR_20' ) start [2025-03-12 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664629', 'tblTempVendorCDR_20' ) end [2025-03-12 13:58:20] Production.INFO: ProcessCDR(1,14664629,1,1,2) [2025-03-12 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664629', 'tblTempUsageDetail_20' ) start [2025-03-12 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664629', 'tblTempUsageDetail_20' ) end [2025-03-12 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:58:26] Production.INFO: ==25145== Releasing lock... [2025-03-12 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 10:59:06 [end_date_ymd] => 2025-03-12 13:59:06 [RateCDR] => 1 ) [2025-03-12 13:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 10:59:06' and `end` < '2025-03-12 13:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 13:59:19] Production.INFO: count ==5143 [2025-03-12 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 10:59:06 - End Time 2025-03-12 13:59:06 [2025-03-12 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664634', 'tblTempUsageDetail_20' ) start [2025-03-12 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664634', 'tblTempUsageDetail_20' ) end [2025-03-12 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664634', 'tblTempVendorCDR_20' ) start [2025-03-12 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664634', 'tblTempVendorCDR_20' ) end [2025-03-12 13:59:21] Production.INFO: ProcessCDR(1,14664634,1,1,2) [2025-03-12 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664634', 'tblTempUsageDetail_20' ) start [2025-03-12 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664634', 'tblTempUsageDetail_20' ) end [2025-03-12 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 13:59:26] Production.INFO: ==25216== Releasing lock... [2025-03-12 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 13:59:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:00:06 [end_date_ymd] => 2025-03-12 14:00:06 [RateCDR] => 1 ) [2025-03-12 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:00:06' and `end` < '2025-03-12 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:00:20] Production.INFO: count ==5198 [2025-03-12 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:00:06 - End Time 2025-03-12 14:00:06 [2025-03-12 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664640', 'tblTempUsageDetail_20' ) start [2025-03-12 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664640', 'tblTempUsageDetail_20' ) end [2025-03-12 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664640', 'tblTempVendorCDR_20' ) start [2025-03-12 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664640', 'tblTempVendorCDR_20' ) end [2025-03-12 14:00:22] Production.INFO: ProcessCDR(1,14664640,1,1,2) [2025-03-12 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664640', 'tblTempUsageDetail_20' ) start [2025-03-12 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664640', 'tblTempUsageDetail_20' ) end [2025-03-12 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:00:28] Production.INFO: ==25290== Releasing lock... [2025-03-12 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:00:28] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:01:06 [end_date_ymd] => 2025-03-12 14:01:06 [RateCDR] => 1 ) [2025-03-12 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:01:06' and `end` < '2025-03-12 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:01:20] Production.INFO: count ==5202 [2025-03-12 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:01:06 - End Time 2025-03-12 14:01:06 [2025-03-12 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664645', 'tblTempUsageDetail_20' ) start [2025-03-12 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664645', 'tblTempUsageDetail_20' ) end [2025-03-12 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664645', 'tblTempVendorCDR_20' ) start [2025-03-12 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664645', 'tblTempVendorCDR_20' ) end [2025-03-12 14:01:22] Production.INFO: ProcessCDR(1,14664645,1,1,2) [2025-03-12 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664645', 'tblTempUsageDetail_20' ) start [2025-03-12 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664645', 'tblTempUsageDetail_20' ) end [2025-03-12 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:01:27] Production.INFO: ==25374== Releasing lock... [2025-03-12 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:01:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:02:06 [end_date_ymd] => 2025-03-12 14:02:06 [RateCDR] => 1 ) [2025-03-12 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:02:06' and `end` < '2025-03-12 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:02:19] Production.INFO: count ==5215 [2025-03-12 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:02:06 - End Time 2025-03-12 14:02:06 [2025-03-12 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664650', 'tblTempUsageDetail_20' ) start [2025-03-12 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664650', 'tblTempUsageDetail_20' ) end [2025-03-12 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664650', 'tblTempVendorCDR_20' ) start [2025-03-12 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664650', 'tblTempVendorCDR_20' ) end [2025-03-12 14:02:21] Production.INFO: ProcessCDR(1,14664650,1,1,2) [2025-03-12 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664650', 'tblTempUsageDetail_20' ) start [2025-03-12 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664650', 'tblTempUsageDetail_20' ) end [2025-03-12 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:02:27] Production.INFO: ==25453== Releasing lock... [2025-03-12 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:02:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:03:05 [end_date_ymd] => 2025-03-12 14:03:05 [RateCDR] => 1 ) [2025-03-12 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:03:05' and `end` < '2025-03-12 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:03:18] Production.INFO: count ==5227 [2025-03-12 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:03:05 - End Time 2025-03-12 14:03:05 [2025-03-12 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664655', 'tblTempUsageDetail_20' ) start [2025-03-12 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664655', 'tblTempUsageDetail_20' ) end [2025-03-12 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664655', 'tblTempVendorCDR_20' ) start [2025-03-12 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664655', 'tblTempVendorCDR_20' ) end [2025-03-12 14:03:20] Production.INFO: ProcessCDR(1,14664655,1,1,2) [2025-03-12 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664655', 'tblTempUsageDetail_20' ) start [2025-03-12 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664655', 'tblTempUsageDetail_20' ) end [2025-03-12 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:03:26] Production.INFO: ==25526== Releasing lock... [2025-03-12 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:03:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:04:05 [end_date_ymd] => 2025-03-12 14:04:05 [RateCDR] => 1 ) [2025-03-12 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:04:05' and `end` < '2025-03-12 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:04:18] Production.INFO: count ==5225 [2025-03-12 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:04:05 - End Time 2025-03-12 14:04:05 [2025-03-12 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664660', 'tblTempUsageDetail_20' ) start [2025-03-12 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664660', 'tblTempUsageDetail_20' ) end [2025-03-12 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664660', 'tblTempVendorCDR_20' ) start [2025-03-12 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664660', 'tblTempVendorCDR_20' ) end [2025-03-12 14:04:21] Production.INFO: ProcessCDR(1,14664660,1,1,2) [2025-03-12 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664660', 'tblTempUsageDetail_20' ) start [2025-03-12 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664660', 'tblTempUsageDetail_20' ) end [2025-03-12 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:04:26] Production.INFO: ==25600== Releasing lock... [2025-03-12 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:04:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:05:06 [end_date_ymd] => 2025-03-12 14:05:06 [RateCDR] => 1 ) [2025-03-12 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:05:06' and `end` < '2025-03-12 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:05:20] Production.INFO: count ==5216 [2025-03-12 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:05:06 - End Time 2025-03-12 14:05:06 [2025-03-12 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664665', 'tblTempUsageDetail_20' ) start [2025-03-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664665', 'tblTempUsageDetail_20' ) end [2025-03-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664665', 'tblTempVendorCDR_20' ) start [2025-03-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664665', 'tblTempVendorCDR_20' ) end [2025-03-12 14:05:22] Production.INFO: ProcessCDR(1,14664665,1,1,2) [2025-03-12 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664665', 'tblTempUsageDetail_20' ) start [2025-03-12 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664665', 'tblTempUsageDetail_20' ) end [2025-03-12 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:05:27] Production.INFO: ==25710== Releasing lock... [2025-03-12 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:05:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:06:05 [end_date_ymd] => 2025-03-12 14:06:05 [RateCDR] => 1 ) [2025-03-12 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:06:05' and `end` < '2025-03-12 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:06:18] Production.INFO: count ==5203 [2025-03-12 14:06:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:06:05 - End Time 2025-03-12 14:06:05 [2025-03-12 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664670', 'tblTempUsageDetail_20' ) start [2025-03-12 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664670', 'tblTempUsageDetail_20' ) end [2025-03-12 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664670', 'tblTempVendorCDR_20' ) start [2025-03-12 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664670', 'tblTempVendorCDR_20' ) end [2025-03-12 14:06:21] Production.INFO: ProcessCDR(1,14664670,1,1,2) [2025-03-12 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664670', 'tblTempUsageDetail_20' ) start [2025-03-12 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664670', 'tblTempUsageDetail_20' ) end [2025-03-12 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:06:26] Production.INFO: ==25779== Releasing lock... [2025-03-12 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:06:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:07:06 [end_date_ymd] => 2025-03-12 14:07:06 [RateCDR] => 1 ) [2025-03-12 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:07:06' and `end` < '2025-03-12 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:07:19] Production.INFO: count ==5236 [2025-03-12 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:07:06 - End Time 2025-03-12 14:07:06 [2025-03-12 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664675', 'tblTempUsageDetail_20' ) start [2025-03-12 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664675', 'tblTempUsageDetail_20' ) end [2025-03-12 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664675', 'tblTempVendorCDR_20' ) start [2025-03-12 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664675', 'tblTempVendorCDR_20' ) end [2025-03-12 14:07:21] Production.INFO: ProcessCDR(1,14664675,1,1,2) [2025-03-12 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664675', 'tblTempUsageDetail_20' ) start [2025-03-12 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664675', 'tblTempUsageDetail_20' ) end [2025-03-12 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:07:26] Production.INFO: ==25854== Releasing lock... [2025-03-12 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:07:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:08:05 [end_date_ymd] => 2025-03-12 14:08:05 [RateCDR] => 1 ) [2025-03-12 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:08:05' and `end` < '2025-03-12 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:08:18] Production.INFO: count ==5223 [2025-03-12 14:08:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:08:05 - End Time 2025-03-12 14:08:05 [2025-03-12 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664680', 'tblTempUsageDetail_20' ) start [2025-03-12 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664680', 'tblTempUsageDetail_20' ) end [2025-03-12 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664680', 'tblTempVendorCDR_20' ) start [2025-03-12 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664680', 'tblTempVendorCDR_20' ) end [2025-03-12 14:08:20] Production.INFO: ProcessCDR(1,14664680,1,1,2) [2025-03-12 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664680', 'tblTempUsageDetail_20' ) start [2025-03-12 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664680', 'tblTempUsageDetail_20' ) end [2025-03-12 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:08:26] Production.INFO: ==25926== Releasing lock... [2025-03-12 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:08:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:09:05 [end_date_ymd] => 2025-03-12 14:09:05 [RateCDR] => 1 ) [2025-03-12 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:09:05' and `end` < '2025-03-12 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:09:18] Production.INFO: count ==5207 [2025-03-12 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:09:05 - End Time 2025-03-12 14:09:05 [2025-03-12 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664685', 'tblTempUsageDetail_20' ) start [2025-03-12 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664685', 'tblTempUsageDetail_20' ) end [2025-03-12 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664685', 'tblTempVendorCDR_20' ) start [2025-03-12 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664685', 'tblTempVendorCDR_20' ) end [2025-03-12 14:09:21] Production.INFO: ProcessCDR(1,14664685,1,1,2) [2025-03-12 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664685', 'tblTempUsageDetail_20' ) start [2025-03-12 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664685', 'tblTempUsageDetail_20' ) end [2025-03-12 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:09:26] Production.INFO: ==26007== Releasing lock... [2025-03-12 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:09:26] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:10:06 [end_date_ymd] => 2025-03-12 14:10:06 [RateCDR] => 1 ) [2025-03-12 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:10:06' and `end` < '2025-03-12 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:10:19] Production.INFO: count ==5227 [2025-03-12 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:10:06 - End Time 2025-03-12 14:10:06 [2025-03-12 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664690', 'tblTempUsageDetail_20' ) start [2025-03-12 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664690', 'tblTempUsageDetail_20' ) end [2025-03-12 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664690', 'tblTempVendorCDR_20' ) start [2025-03-12 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664690', 'tblTempVendorCDR_20' ) end [2025-03-12 14:10:22] Production.INFO: ProcessCDR(1,14664690,1,1,2) [2025-03-12 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664690', 'tblTempUsageDetail_20' ) start [2025-03-12 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664690', 'tblTempUsageDetail_20' ) end [2025-03-12 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:10:27] Production.INFO: ==26093== Releasing lock... [2025-03-12 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:10:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:11:06 [end_date_ymd] => 2025-03-12 14:11:06 [RateCDR] => 1 ) [2025-03-12 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:11:06' and `end` < '2025-03-12 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:11:19] Production.INFO: count ==5274 [2025-03-12 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:11:06 - End Time 2025-03-12 14:11:06 [2025-03-12 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664696', 'tblTempUsageDetail_20' ) start [2025-03-12 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664696', 'tblTempUsageDetail_20' ) end [2025-03-12 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664696', 'tblTempVendorCDR_20' ) start [2025-03-12 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664696', 'tblTempVendorCDR_20' ) end [2025-03-12 14:11:21] Production.INFO: ProcessCDR(1,14664696,1,1,2) [2025-03-12 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664696', 'tblTempUsageDetail_20' ) start [2025-03-12 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664696', 'tblTempUsageDetail_20' ) end [2025-03-12 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:11:27] Production.INFO: ==26170== Releasing lock... [2025-03-12 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:11:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:12:05 [end_date_ymd] => 2025-03-12 14:12:05 [RateCDR] => 1 ) [2025-03-12 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:12:05' and `end` < '2025-03-12 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:12:18] Production.INFO: count ==5311 [2025-03-12 14:12:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:12:05 - End Time 2025-03-12 14:12:05 [2025-03-12 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664701', 'tblTempUsageDetail_20' ) start [2025-03-12 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664701', 'tblTempUsageDetail_20' ) end [2025-03-12 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664701', 'tblTempVendorCDR_20' ) start [2025-03-12 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664701', 'tblTempVendorCDR_20' ) end [2025-03-12 14:12:21] Production.INFO: ProcessCDR(1,14664701,1,1,2) [2025-03-12 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664701', 'tblTempUsageDetail_20' ) start [2025-03-12 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664701', 'tblTempUsageDetail_20' ) end [2025-03-12 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:12:26] Production.INFO: ==26243== Releasing lock... [2025-03-12 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:12:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:13:05 [end_date_ymd] => 2025-03-12 14:13:05 [RateCDR] => 1 ) [2025-03-12 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:13:05' and `end` < '2025-03-12 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:13:19] Production.INFO: count ==5303 [2025-03-12 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:13:05 - End Time 2025-03-12 14:13:05 [2025-03-12 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664706', 'tblTempUsageDetail_20' ) start [2025-03-12 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664706', 'tblTempUsageDetail_20' ) end [2025-03-12 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664706', 'tblTempVendorCDR_20' ) start [2025-03-12 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664706', 'tblTempVendorCDR_20' ) end [2025-03-12 14:13:21] Production.INFO: ProcessCDR(1,14664706,1,1,2) [2025-03-12 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664706', 'tblTempUsageDetail_20' ) start [2025-03-12 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664706', 'tblTempUsageDetail_20' ) end [2025-03-12 14:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:13:24] Production.INFO: ==26315== Releasing lock... [2025-03-12 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:13:24] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:14:05 [end_date_ymd] => 2025-03-12 14:14:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 11:14:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 14:14:18] Production.INFO: count ==5303 [2025-03-12 14:14:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:14:05 - End Time 2025-03-12 14:14:05 [2025-03-12 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664711', 'tblTempUsageDetail_20' ) start [2025-03-12 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664711', 'tblTempUsageDetail_20' ) end [2025-03-12 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664711', 'tblTempVendorCDR_20' ) start [2025-03-12 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664711', 'tblTempVendorCDR_20' ) end [2025-03-12 14:14:20] Production.INFO: ProcessCDR(1,14664711,1,1,2) [2025-03-12 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664711', 'tblTempUsageDetail_20' ) start [2025-03-12 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664711', 'tblTempUsageDetail_20' ) end [2025-03-12 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:14:26] Production.INFO: ==26385== Releasing lock... [2025-03-12 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:14:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:15:06 [end_date_ymd] => 2025-03-12 14:15:06 [RateCDR] => 1 ) [2025-03-12 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:15:06' and `end` < '2025-03-12 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:15:19] Production.INFO: count ==5296 [2025-03-12 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:15:06 - End Time 2025-03-12 14:15:06 [2025-03-12 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664716', 'tblTempUsageDetail_20' ) start [2025-03-12 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664716', 'tblTempUsageDetail_20' ) end [2025-03-12 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664716', 'tblTempVendorCDR_20' ) start [2025-03-12 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664716', 'tblTempVendorCDR_20' ) end [2025-03-12 14:15:22] Production.INFO: ProcessCDR(1,14664716,1,1,2) [2025-03-12 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664716', 'tblTempUsageDetail_20' ) start [2025-03-12 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664716', 'tblTempUsageDetail_20' ) end [2025-03-12 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:15:27] Production.INFO: ==26462== Releasing lock... [2025-03-12 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:15:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:16:05 [end_date_ymd] => 2025-03-12 14:16:05 [RateCDR] => 1 ) [2025-03-12 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:16:05' and `end` < '2025-03-12 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:16:18] Production.INFO: count ==5306 [2025-03-12 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:16:05 - End Time 2025-03-12 14:16:05 [2025-03-12 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664721', 'tblTempUsageDetail_20' ) start [2025-03-12 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664721', 'tblTempUsageDetail_20' ) end [2025-03-12 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664721', 'tblTempVendorCDR_20' ) start [2025-03-12 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664721', 'tblTempVendorCDR_20' ) end [2025-03-12 14:16:20] Production.INFO: ProcessCDR(1,14664721,1,1,2) [2025-03-12 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664721', 'tblTempUsageDetail_20' ) start [2025-03-12 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664721', 'tblTempUsageDetail_20' ) end [2025-03-12 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:16:26] Production.INFO: ==26536== Releasing lock... [2025-03-12 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:16:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:17:05 [end_date_ymd] => 2025-03-12 14:17:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 11:17:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 14:17:19] Production.INFO: count ==5331 [2025-03-12 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:17:05 - End Time 2025-03-12 14:17:05 [2025-03-12 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664726', 'tblTempUsageDetail_20' ) start [2025-03-12 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664726', 'tblTempUsageDetail_20' ) end [2025-03-12 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664726', 'tblTempVendorCDR_20' ) start [2025-03-12 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664726', 'tblTempVendorCDR_20' ) end [2025-03-12 14:17:21] Production.INFO: ProcessCDR(1,14664726,1,1,2) [2025-03-12 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664726', 'tblTempUsageDetail_20' ) start [2025-03-12 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664726', 'tblTempUsageDetail_20' ) end [2025-03-12 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:17:25] Production.INFO: ==26613== Releasing lock... [2025-03-12 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:17:25] Production.INFO: 68 MB #Memory Used# [2025-03-12 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:18:05 [end_date_ymd] => 2025-03-12 14:18:05 [RateCDR] => 1 ) [2025-03-12 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:18:05' and `end` < '2025-03-12 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:18:18] Production.INFO: count ==5357 [2025-03-12 14:18:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:18:05 - End Time 2025-03-12 14:18:05 [2025-03-12 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664731', 'tblTempUsageDetail_20' ) start [2025-03-12 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664731', 'tblTempUsageDetail_20' ) end [2025-03-12 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664731', 'tblTempVendorCDR_20' ) start [2025-03-12 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664731', 'tblTempVendorCDR_20' ) end [2025-03-12 14:18:20] Production.INFO: ProcessCDR(1,14664731,1,1,2) [2025-03-12 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664731', 'tblTempUsageDetail_20' ) start [2025-03-12 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664731', 'tblTempUsageDetail_20' ) end [2025-03-12 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:18:26] Production.INFO: ==26688== Releasing lock... [2025-03-12 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:18:26] Production.INFO: 68 MB #Memory Used# [2025-03-12 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:19:05 [end_date_ymd] => 2025-03-12 14:19:05 [RateCDR] => 1 ) [2025-03-12 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:19:05' and `end` < '2025-03-12 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:19:19] Production.INFO: count ==5367 [2025-03-12 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:19:05 - End Time 2025-03-12 14:19:05 [2025-03-12 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664736', 'tblTempUsageDetail_20' ) start [2025-03-12 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664736', 'tblTempUsageDetail_20' ) end [2025-03-12 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664736', 'tblTempVendorCDR_20' ) start [2025-03-12 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664736', 'tblTempVendorCDR_20' ) end [2025-03-12 14:19:21] Production.INFO: ProcessCDR(1,14664736,1,1,2) [2025-03-12 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664736', 'tblTempUsageDetail_20' ) start [2025-03-12 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664736', 'tblTempUsageDetail_20' ) end [2025-03-12 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:19:26] Production.INFO: ==26764== Releasing lock... [2025-03-12 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:19:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:20:06 [end_date_ymd] => 2025-03-12 14:20:06 [RateCDR] => 1 ) [2025-03-12 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:20:06' and `end` < '2025-03-12 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:20:20] Production.INFO: count ==5371 [2025-03-12 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:20:06 - End Time 2025-03-12 14:20:06 [2025-03-12 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664741', 'tblTempUsageDetail_20' ) start [2025-03-12 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664741', 'tblTempUsageDetail_20' ) end [2025-03-12 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664741', 'tblTempVendorCDR_20' ) start [2025-03-12 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664741', 'tblTempVendorCDR_20' ) end [2025-03-12 14:20:22] Production.INFO: ProcessCDR(1,14664741,1,1,2) [2025-03-12 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664741', 'tblTempUsageDetail_20' ) start [2025-03-12 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664741', 'tblTempUsageDetail_20' ) end [2025-03-12 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:20:28] Production.INFO: ==26837== Releasing lock... [2025-03-12 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:20:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:21:05 [end_date_ymd] => 2025-03-12 14:21:05 [RateCDR] => 1 ) [2025-03-12 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:21:05' and `end` < '2025-03-12 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:21:18] Production.INFO: count ==5410 [2025-03-12 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:21:05 - End Time 2025-03-12 14:21:05 [2025-03-12 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664747', 'tblTempUsageDetail_20' ) start [2025-03-12 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664747', 'tblTempUsageDetail_20' ) end [2025-03-12 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664747', 'tblTempVendorCDR_20' ) start [2025-03-12 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664747', 'tblTempVendorCDR_20' ) end [2025-03-12 14:21:21] Production.INFO: ProcessCDR(1,14664747,1,1,2) [2025-03-12 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664747', 'tblTempUsageDetail_20' ) start [2025-03-12 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664747', 'tblTempUsageDetail_20' ) end [2025-03-12 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:21:26] Production.INFO: ==26949== Releasing lock... [2025-03-12 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:21:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:22:06 [end_date_ymd] => 2025-03-12 14:22:06 [RateCDR] => 1 ) [2025-03-12 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:22:06' and `end` < '2025-03-12 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:22:19] Production.INFO: count ==5466 [2025-03-12 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:22:06 - End Time 2025-03-12 14:22:06 [2025-03-12 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664752', 'tblTempUsageDetail_20' ) start [2025-03-12 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664752', 'tblTempUsageDetail_20' ) end [2025-03-12 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664752', 'tblTempVendorCDR_20' ) start [2025-03-12 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664752', 'tblTempVendorCDR_20' ) end [2025-03-12 14:22:22] Production.INFO: ProcessCDR(1,14664752,1,1,2) [2025-03-12 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664752', 'tblTempUsageDetail_20' ) start [2025-03-12 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664752', 'tblTempUsageDetail_20' ) end [2025-03-12 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:22:27] Production.INFO: ==27021== Releasing lock... [2025-03-12 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:22:27] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:23:05 [end_date_ymd] => 2025-03-12 14:23:05 [RateCDR] => 1 ) [2025-03-12 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:23:05' and `end` < '2025-03-12 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:23:18] Production.INFO: count ==5499 [2025-03-12 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:23:05 - End Time 2025-03-12 14:23:05 [2025-03-12 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664757', 'tblTempUsageDetail_20' ) start [2025-03-12 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664757', 'tblTempUsageDetail_20' ) end [2025-03-12 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664757', 'tblTempVendorCDR_20' ) start [2025-03-12 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664757', 'tblTempVendorCDR_20' ) end [2025-03-12 14:23:21] Production.INFO: ProcessCDR(1,14664757,1,1,2) [2025-03-12 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664757', 'tblTempUsageDetail_20' ) start [2025-03-12 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664757', 'tblTempUsageDetail_20' ) end [2025-03-12 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:23:26] Production.INFO: ==27097== Releasing lock... [2025-03-12 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:23:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:24:05 [end_date_ymd] => 2025-03-12 14:24:05 [RateCDR] => 1 ) [2025-03-12 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:24:05' and `end` < '2025-03-12 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:24:18] Production.INFO: count ==5487 [2025-03-12 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:24:05 - End Time 2025-03-12 14:24:05 [2025-03-12 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664762', 'tblTempUsageDetail_20' ) start [2025-03-12 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664762', 'tblTempUsageDetail_20' ) end [2025-03-12 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664762', 'tblTempVendorCDR_20' ) start [2025-03-12 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664762', 'tblTempVendorCDR_20' ) end [2025-03-12 14:24:21] Production.INFO: ProcessCDR(1,14664762,1,1,2) [2025-03-12 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664762', 'tblTempUsageDetail_20' ) start [2025-03-12 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664762', 'tblTempUsageDetail_20' ) end [2025-03-12 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:24:26] Production.INFO: ==27173== Releasing lock... [2025-03-12 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:24:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:25:05 [end_date_ymd] => 2025-03-12 14:25:05 [RateCDR] => 1 ) [2025-03-12 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:25:05' and `end` < '2025-03-12 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:25:18] Production.INFO: count ==5488 [2025-03-12 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:25:05 - End Time 2025-03-12 14:25:05 [2025-03-12 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664767', 'tblTempUsageDetail_20' ) start [2025-03-12 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664767', 'tblTempUsageDetail_20' ) end [2025-03-12 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664767', 'tblTempVendorCDR_20' ) start [2025-03-12 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664767', 'tblTempVendorCDR_20' ) end [2025-03-12 14:25:21] Production.INFO: ProcessCDR(1,14664767,1,1,2) [2025-03-12 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664767', 'tblTempUsageDetail_20' ) start [2025-03-12 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664767', 'tblTempUsageDetail_20' ) end [2025-03-12 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:25:26] Production.INFO: ==27244== Releasing lock... [2025-03-12 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:25:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:26:05 [end_date_ymd] => 2025-03-12 14:26:05 [RateCDR] => 1 ) [2025-03-12 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:26:05' and `end` < '2025-03-12 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:26:19] Production.INFO: count ==5503 [2025-03-12 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:26:05 - End Time 2025-03-12 14:26:05 [2025-03-12 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664772', 'tblTempUsageDetail_20' ) start [2025-03-12 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664772', 'tblTempUsageDetail_20' ) end [2025-03-12 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664772', 'tblTempVendorCDR_20' ) start [2025-03-12 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664772', 'tblTempVendorCDR_20' ) end [2025-03-12 14:26:21] Production.INFO: ProcessCDR(1,14664772,1,1,2) [2025-03-12 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664772', 'tblTempUsageDetail_20' ) start [2025-03-12 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664772', 'tblTempUsageDetail_20' ) end [2025-03-12 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:26:27] Production.INFO: ==27319== Releasing lock... [2025-03-12 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:26:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:27:05 [end_date_ymd] => 2025-03-12 14:27:05 [RateCDR] => 1 ) [2025-03-12 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:27:05' and `end` < '2025-03-12 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:27:18] Production.INFO: count ==5495 [2025-03-12 14:27:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:27:05 - End Time 2025-03-12 14:27:05 [2025-03-12 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664777', 'tblTempUsageDetail_20' ) start [2025-03-12 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664777', 'tblTempUsageDetail_20' ) end [2025-03-12 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664777', 'tblTempVendorCDR_20' ) start [2025-03-12 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664777', 'tblTempVendorCDR_20' ) end [2025-03-12 14:27:21] Production.INFO: ProcessCDR(1,14664777,1,1,2) [2025-03-12 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664777', 'tblTempUsageDetail_20' ) start [2025-03-12 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664777', 'tblTempUsageDetail_20' ) end [2025-03-12 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:27:26] Production.INFO: ==27390== Releasing lock... [2025-03-12 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:27:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:28:06 [end_date_ymd] => 2025-03-12 14:28:06 [RateCDR] => 1 ) [2025-03-12 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:28:06' and `end` < '2025-03-12 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:28:19] Production.INFO: count ==5491 [2025-03-12 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:28:06 - End Time 2025-03-12 14:28:06 [2025-03-12 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664782', 'tblTempUsageDetail_20' ) start [2025-03-12 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664782', 'tblTempUsageDetail_20' ) end [2025-03-12 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664782', 'tblTempVendorCDR_20' ) start [2025-03-12 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664782', 'tblTempVendorCDR_20' ) end [2025-03-12 14:28:21] Production.INFO: ProcessCDR(1,14664782,1,1,2) [2025-03-12 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664782', 'tblTempUsageDetail_20' ) start [2025-03-12 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664782', 'tblTempUsageDetail_20' ) end [2025-03-12 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:28:26] Production.INFO: ==27462== Releasing lock... [2025-03-12 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:28:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:29:05 [end_date_ymd] => 2025-03-12 14:29:05 [RateCDR] => 1 ) [2025-03-12 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:29:05' and `end` < '2025-03-12 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:29:19] Production.INFO: count ==5495 [2025-03-12 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:29:05 - End Time 2025-03-12 14:29:05 [2025-03-12 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664787', 'tblTempUsageDetail_20' ) start [2025-03-12 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664787', 'tblTempUsageDetail_20' ) end [2025-03-12 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664787', 'tblTempVendorCDR_20' ) start [2025-03-12 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664787', 'tblTempVendorCDR_20' ) end [2025-03-12 14:29:21] Production.INFO: ProcessCDR(1,14664787,1,1,2) [2025-03-12 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664787', 'tblTempUsageDetail_20' ) start [2025-03-12 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664787', 'tblTempUsageDetail_20' ) end [2025-03-12 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:29:27] Production.INFO: ==27537== Releasing lock... [2025-03-12 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:29:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:30:07 [end_date_ymd] => 2025-03-12 14:30:07 [RateCDR] => 1 ) [2025-03-12 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:30:07' and `end` < '2025-03-12 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:30:20] Production.INFO: count ==5481 [2025-03-12 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:30:07 - End Time 2025-03-12 14:30:07 [2025-03-12 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664793', 'tblTempUsageDetail_20' ) start [2025-03-12 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664793', 'tblTempUsageDetail_20' ) end [2025-03-12 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664793', 'tblTempVendorCDR_20' ) start [2025-03-12 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664793', 'tblTempVendorCDR_20' ) end [2025-03-12 14:30:22] Production.INFO: ProcessCDR(1,14664793,1,1,2) [2025-03-12 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664793', 'tblTempUsageDetail_20' ) start [2025-03-12 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664793', 'tblTempUsageDetail_20' ) end [2025-03-12 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:30:28] Production.INFO: ==27617== Releasing lock... [2025-03-12 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:30:28] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:31:05 [end_date_ymd] => 2025-03-12 14:31:05 [RateCDR] => 1 ) [2025-03-12 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:31:05' and `end` < '2025-03-12 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:31:18] Production.INFO: count ==5479 [2025-03-12 14:31:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:31:05 - End Time 2025-03-12 14:31:05 [2025-03-12 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664798', 'tblTempUsageDetail_20' ) start [2025-03-12 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664798', 'tblTempUsageDetail_20' ) end [2025-03-12 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664798', 'tblTempVendorCDR_20' ) start [2025-03-12 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664798', 'tblTempVendorCDR_20' ) end [2025-03-12 14:31:21] Production.INFO: ProcessCDR(1,14664798,1,1,2) [2025-03-12 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664798', 'tblTempUsageDetail_20' ) start [2025-03-12 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664798', 'tblTempUsageDetail_20' ) end [2025-03-12 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:31:26] Production.INFO: ==27692== Releasing lock... [2025-03-12 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:31:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:32:06 [end_date_ymd] => 2025-03-12 14:32:06 [RateCDR] => 1 ) [2025-03-12 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:32:06' and `end` < '2025-03-12 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:32:19] Production.INFO: count ==5498 [2025-03-12 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:32:06 - End Time 2025-03-12 14:32:06 [2025-03-12 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664803', 'tblTempUsageDetail_20' ) start [2025-03-12 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664803', 'tblTempUsageDetail_20' ) end [2025-03-12 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664803', 'tblTempVendorCDR_20' ) start [2025-03-12 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664803', 'tblTempVendorCDR_20' ) end [2025-03-12 14:32:22] Production.INFO: ProcessCDR(1,14664803,1,1,2) [2025-03-12 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664803', 'tblTempUsageDetail_20' ) start [2025-03-12 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664803', 'tblTempUsageDetail_20' ) end [2025-03-12 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:32:27] Production.INFO: ==27764== Releasing lock... [2025-03-12 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:32:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:33:05 [end_date_ymd] => 2025-03-12 14:33:05 [RateCDR] => 1 ) [2025-03-12 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:33:05' and `end` < '2025-03-12 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:33:18] Production.INFO: count ==5497 [2025-03-12 14:33:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:33:05 - End Time 2025-03-12 14:33:05 [2025-03-12 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664808', 'tblTempUsageDetail_20' ) start [2025-03-12 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664808', 'tblTempUsageDetail_20' ) end [2025-03-12 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664808', 'tblTempVendorCDR_20' ) start [2025-03-12 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664808', 'tblTempVendorCDR_20' ) end [2025-03-12 14:33:21] Production.INFO: ProcessCDR(1,14664808,1,1,2) [2025-03-12 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664808', 'tblTempUsageDetail_20' ) start [2025-03-12 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664808', 'tblTempUsageDetail_20' ) end [2025-03-12 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:33:26] Production.INFO: ==27838== Releasing lock... [2025-03-12 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:33:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:34:05 [end_date_ymd] => 2025-03-12 14:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 11:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 14:34:19] Production.INFO: count ==5485 [2025-03-12 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:34:05 - End Time 2025-03-12 14:34:05 [2025-03-12 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664813', 'tblTempUsageDetail_20' ) start [2025-03-12 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664813', 'tblTempUsageDetail_20' ) end [2025-03-12 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664813', 'tblTempVendorCDR_20' ) start [2025-03-12 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664813', 'tblTempVendorCDR_20' ) end [2025-03-12 14:34:21] Production.INFO: ProcessCDR(1,14664813,1,1,2) [2025-03-12 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664813', 'tblTempUsageDetail_20' ) start [2025-03-12 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664813', 'tblTempUsageDetail_20' ) end [2025-03-12 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:34:26] Production.INFO: ==27915== Releasing lock... [2025-03-12 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:34:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:35:05 [end_date_ymd] => 2025-03-12 14:35:05 [RateCDR] => 1 ) [2025-03-12 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:35:05' and `end` < '2025-03-12 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:35:18] Production.INFO: count ==5494 [2025-03-12 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:35:05 - End Time 2025-03-12 14:35:05 [2025-03-12 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664818', 'tblTempUsageDetail_20' ) start [2025-03-12 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664818', 'tblTempUsageDetail_20' ) end [2025-03-12 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664818', 'tblTempVendorCDR_20' ) start [2025-03-12 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664818', 'tblTempVendorCDR_20' ) end [2025-03-12 14:35:20] Production.INFO: ProcessCDR(1,14664818,1,1,2) [2025-03-12 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664818', 'tblTempUsageDetail_20' ) start [2025-03-12 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664818', 'tblTempUsageDetail_20' ) end [2025-03-12 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:35:26] Production.INFO: ==27987== Releasing lock... [2025-03-12 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:35:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:36:06 [end_date_ymd] => 2025-03-12 14:36:06 [RateCDR] => 1 ) [2025-03-12 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:36:06' and `end` < '2025-03-12 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:36:19] Production.INFO: count ==5499 [2025-03-12 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:36:06 - End Time 2025-03-12 14:36:06 [2025-03-12 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664823', 'tblTempUsageDetail_20' ) start [2025-03-12 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664823', 'tblTempUsageDetail_20' ) end [2025-03-12 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664823', 'tblTempVendorCDR_20' ) start [2025-03-12 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664823', 'tblTempVendorCDR_20' ) end [2025-03-12 14:36:22] Production.INFO: ProcessCDR(1,14664823,1,1,2) [2025-03-12 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664823', 'tblTempUsageDetail_20' ) start [2025-03-12 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664823', 'tblTempUsageDetail_20' ) end [2025-03-12 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:36:27] Production.INFO: ==28099== Releasing lock... [2025-03-12 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:36:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:37:05 [end_date_ymd] => 2025-03-12 14:37:05 [RateCDR] => 1 ) [2025-03-12 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:37:05' and `end` < '2025-03-12 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:37:18] Production.INFO: count ==5521 [2025-03-12 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:37:05 - End Time 2025-03-12 14:37:05 [2025-03-12 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664828', 'tblTempUsageDetail_20' ) start [2025-03-12 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664828', 'tblTempUsageDetail_20' ) end [2025-03-12 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664828', 'tblTempVendorCDR_20' ) start [2025-03-12 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664828', 'tblTempVendorCDR_20' ) end [2025-03-12 14:37:21] Production.INFO: ProcessCDR(1,14664828,1,1,2) [2025-03-12 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664828', 'tblTempUsageDetail_20' ) start [2025-03-12 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664828', 'tblTempUsageDetail_20' ) end [2025-03-12 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:37:26] Production.INFO: ==28184== Releasing lock... [2025-03-12 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:37:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-12 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:38:05 [end_date_ymd] => 2025-03-12 14:38:05 [RateCDR] => 1 ) [2025-03-12 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:38:05' and `end` < '2025-03-12 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:38:19] Production.INFO: count ==5534 [2025-03-12 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:38:05 - End Time 2025-03-12 14:38:05 [2025-03-12 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664833', 'tblTempUsageDetail_20' ) start [2025-03-12 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664833', 'tblTempUsageDetail_20' ) end [2025-03-12 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664833', 'tblTempVendorCDR_20' ) start [2025-03-12 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664833', 'tblTempVendorCDR_20' ) end [2025-03-12 14:38:22] Production.INFO: ProcessCDR(1,14664833,1,1,2) [2025-03-12 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664833', 'tblTempUsageDetail_20' ) start [2025-03-12 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664833', 'tblTempUsageDetail_20' ) end [2025-03-12 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:38:27] Production.INFO: ==28263== Releasing lock... [2025-03-12 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:38:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:39:05 [end_date_ymd] => 2025-03-12 14:39:05 [RateCDR] => 1 ) [2025-03-12 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:39:05' and `end` < '2025-03-12 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:39:18] Production.INFO: count ==5561 [2025-03-12 14:39:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:39:05 - End Time 2025-03-12 14:39:05 [2025-03-12 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664838', 'tblTempUsageDetail_20' ) start [2025-03-12 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664838', 'tblTempUsageDetail_20' ) end [2025-03-12 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664838', 'tblTempVendorCDR_20' ) start [2025-03-12 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664838', 'tblTempVendorCDR_20' ) end [2025-03-12 14:39:21] Production.INFO: ProcessCDR(1,14664838,1,1,2) [2025-03-12 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664838', 'tblTempUsageDetail_20' ) start [2025-03-12 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664838', 'tblTempUsageDetail_20' ) end [2025-03-12 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:39:26] Production.INFO: ==28334== Releasing lock... [2025-03-12 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:39:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:40:06 [end_date_ymd] => 2025-03-12 14:40:06 [RateCDR] => 1 ) [2025-03-12 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:40:06' and `end` < '2025-03-12 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:40:19] Production.INFO: count ==5549 [2025-03-12 14:40:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:40:06 - End Time 2025-03-12 14:40:06 [2025-03-12 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664844', 'tblTempUsageDetail_20' ) start [2025-03-12 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664844', 'tblTempUsageDetail_20' ) end [2025-03-12 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664844', 'tblTempVendorCDR_20' ) start [2025-03-12 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664844', 'tblTempVendorCDR_20' ) end [2025-03-12 14:40:21] Production.INFO: ProcessCDR(1,14664844,1,1,2) [2025-03-12 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664844', 'tblTempUsageDetail_20' ) start [2025-03-12 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664844', 'tblTempUsageDetail_20' ) end [2025-03-12 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:40:26] Production.INFO: ==28411== Releasing lock... [2025-03-12 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:40:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:41:05 [end_date_ymd] => 2025-03-12 14:41:05 [RateCDR] => 1 ) [2025-03-12 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:41:05' and `end` < '2025-03-12 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:41:18] Production.INFO: count ==5567 [2025-03-12 14:41:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:41:05 - End Time 2025-03-12 14:41:05 [2025-03-12 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664849', 'tblTempUsageDetail_20' ) start [2025-03-12 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664849', 'tblTempUsageDetail_20' ) end [2025-03-12 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664849', 'tblTempVendorCDR_20' ) start [2025-03-12 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664849', 'tblTempVendorCDR_20' ) end [2025-03-12 14:41:21] Production.INFO: ProcessCDR(1,14664849,1,1,2) [2025-03-12 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664849', 'tblTempUsageDetail_20' ) start [2025-03-12 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664849', 'tblTempUsageDetail_20' ) end [2025-03-12 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:41:26] Production.INFO: ==28484== Releasing lock... [2025-03-12 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:41:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:42:06 [end_date_ymd] => 2025-03-12 14:42:06 [RateCDR] => 1 ) [2025-03-12 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:42:06' and `end` < '2025-03-12 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:42:19] Production.INFO: count ==5550 [2025-03-12 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:42:06 - End Time 2025-03-12 14:42:06 [2025-03-12 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664854', 'tblTempUsageDetail_20' ) start [2025-03-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664854', 'tblTempUsageDetail_20' ) end [2025-03-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664854', 'tblTempVendorCDR_20' ) start [2025-03-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664854', 'tblTempVendorCDR_20' ) end [2025-03-12 14:42:22] Production.INFO: ProcessCDR(1,14664854,1,1,2) [2025-03-12 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664854', 'tblTempUsageDetail_20' ) start [2025-03-12 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664854', 'tblTempUsageDetail_20' ) end [2025-03-12 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:42:27] Production.INFO: ==28557== Releasing lock... [2025-03-12 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-12 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:43:05 [end_date_ymd] => 2025-03-12 14:43:05 [RateCDR] => 1 ) [2025-03-12 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:43:05' and `end` < '2025-03-12 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:43:18] Production.INFO: count ==5567 [2025-03-12 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:43:05 - End Time 2025-03-12 14:43:05 [2025-03-12 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664859', 'tblTempUsageDetail_20' ) start [2025-03-12 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664859', 'tblTempUsageDetail_20' ) end [2025-03-12 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664859', 'tblTempVendorCDR_20' ) start [2025-03-12 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664859', 'tblTempVendorCDR_20' ) end [2025-03-12 14:43:21] Production.INFO: ProcessCDR(1,14664859,1,1,2) [2025-03-12 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664859', 'tblTempUsageDetail_20' ) start [2025-03-12 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664859', 'tblTempUsageDetail_20' ) end [2025-03-12 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:43:26] Production.INFO: ==28632== Releasing lock... [2025-03-12 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:43:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:44:06 [end_date_ymd] => 2025-03-12 14:44:06 [RateCDR] => 1 ) [2025-03-12 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:44:06' and `end` < '2025-03-12 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:44:19] Production.INFO: count ==5579 [2025-03-12 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:44:06 - End Time 2025-03-12 14:44:06 [2025-03-12 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664864', 'tblTempUsageDetail_20' ) start [2025-03-12 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664864', 'tblTempUsageDetail_20' ) end [2025-03-12 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664864', 'tblTempVendorCDR_20' ) start [2025-03-12 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664864', 'tblTempVendorCDR_20' ) end [2025-03-12 14:44:22] Production.INFO: ProcessCDR(1,14664864,1,1,2) [2025-03-12 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664864', 'tblTempUsageDetail_20' ) start [2025-03-12 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664864', 'tblTempUsageDetail_20' ) end [2025-03-12 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:44:27] Production.INFO: ==28716== Releasing lock... [2025-03-12 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:44:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:45:06 [end_date_ymd] => 2025-03-12 14:45:06 [RateCDR] => 1 ) [2025-03-12 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:45:06' and `end` < '2025-03-12 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:45:19] Production.INFO: count ==5563 [2025-03-12 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:45:06 - End Time 2025-03-12 14:45:06 [2025-03-12 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664869', 'tblTempUsageDetail_20' ) start [2025-03-12 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664869', 'tblTempUsageDetail_20' ) end [2025-03-12 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664869', 'tblTempVendorCDR_20' ) start [2025-03-12 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664869', 'tblTempVendorCDR_20' ) end [2025-03-12 14:45:22] Production.INFO: ProcessCDR(1,14664869,1,1,2) [2025-03-12 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664869', 'tblTempUsageDetail_20' ) start [2025-03-12 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664869', 'tblTempUsageDetail_20' ) end [2025-03-12 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:45:27] Production.INFO: ==28789== Releasing lock... [2025-03-12 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:45:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:46:05 [end_date_ymd] => 2025-03-12 14:46:05 [RateCDR] => 1 ) [2025-03-12 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:46:05' and `end` < '2025-03-12 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:46:19] Production.INFO: count ==5589 [2025-03-12 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:46:05 - End Time 2025-03-12 14:46:05 [2025-03-12 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664874', 'tblTempUsageDetail_20' ) start [2025-03-12 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664874', 'tblTempUsageDetail_20' ) end [2025-03-12 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664874', 'tblTempVendorCDR_20' ) start [2025-03-12 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664874', 'tblTempVendorCDR_20' ) end [2025-03-12 14:46:21] Production.INFO: ProcessCDR(1,14664874,1,1,2) [2025-03-12 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664874', 'tblTempUsageDetail_20' ) start [2025-03-12 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664874', 'tblTempUsageDetail_20' ) end [2025-03-12 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:46:27] Production.INFO: ==28859== Releasing lock... [2025-03-12 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:46:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:47:05 [end_date_ymd] => 2025-03-12 14:47:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 11:47:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 14:47:19] Production.INFO: count ==5585 [2025-03-12 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:47:05 - End Time 2025-03-12 14:47:05 [2025-03-12 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664879', 'tblTempUsageDetail_20' ) start [2025-03-12 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664879', 'tblTempUsageDetail_20' ) end [2025-03-12 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664879', 'tblTempVendorCDR_20' ) start [2025-03-12 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664879', 'tblTempVendorCDR_20' ) end [2025-03-12 14:47:21] Production.INFO: ProcessCDR(1,14664879,1,1,2) [2025-03-12 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664879', 'tblTempUsageDetail_20' ) start [2025-03-12 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664879', 'tblTempUsageDetail_20' ) end [2025-03-12 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:47:27] Production.INFO: ==28934== Releasing lock... [2025-03-12 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:47:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:48:06 [end_date_ymd] => 2025-03-12 14:48:06 [RateCDR] => 1 ) [2025-03-12 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:48:06' and `end` < '2025-03-12 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:48:19] Production.INFO: count ==5594 [2025-03-12 14:48:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:48:06 - End Time 2025-03-12 14:48:06 [2025-03-12 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664884', 'tblTempUsageDetail_20' ) start [2025-03-12 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664884', 'tblTempUsageDetail_20' ) end [2025-03-12 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664884', 'tblTempVendorCDR_20' ) start [2025-03-12 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664884', 'tblTempVendorCDR_20' ) end [2025-03-12 14:48:22] Production.INFO: ProcessCDR(1,14664884,1,1,2) [2025-03-12 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664884', 'tblTempUsageDetail_20' ) start [2025-03-12 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664884', 'tblTempUsageDetail_20' ) end [2025-03-12 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:48:27] Production.INFO: ==29005== Releasing lock... [2025-03-12 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:48:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:49:05 [end_date_ymd] => 2025-03-12 14:49:05 [RateCDR] => 1 ) [2025-03-12 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:49:05' and `end` < '2025-03-12 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:49:19] Production.INFO: count ==5588 [2025-03-12 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:49:05 - End Time 2025-03-12 14:49:05 [2025-03-12 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664889', 'tblTempUsageDetail_20' ) start [2025-03-12 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664889', 'tblTempUsageDetail_20' ) end [2025-03-12 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664889', 'tblTempVendorCDR_20' ) start [2025-03-12 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664889', 'tblTempVendorCDR_20' ) end [2025-03-12 14:49:21] Production.INFO: ProcessCDR(1,14664889,1,1,2) [2025-03-12 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664889', 'tblTempUsageDetail_20' ) start [2025-03-12 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664889', 'tblTempUsageDetail_20' ) end [2025-03-12 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:49:27] Production.INFO: ==29083== Releasing lock... [2025-03-12 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:49:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:50:06 [end_date_ymd] => 2025-03-12 14:50:06 [RateCDR] => 1 ) [2025-03-12 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:50:06' and `end` < '2025-03-12 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:50:19] Production.INFO: count ==5597 [2025-03-12 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:50:06 - End Time 2025-03-12 14:50:06 [2025-03-12 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664895', 'tblTempUsageDetail_20' ) start [2025-03-12 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664895', 'tblTempUsageDetail_20' ) end [2025-03-12 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664895', 'tblTempVendorCDR_20' ) start [2025-03-12 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664895', 'tblTempVendorCDR_20' ) end [2025-03-12 14:50:22] Production.INFO: ProcessCDR(1,14664895,1,1,2) [2025-03-12 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664895', 'tblTempUsageDetail_20' ) start [2025-03-12 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664895', 'tblTempUsageDetail_20' ) end [2025-03-12 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:50:27] Production.INFO: ==29160== Releasing lock... [2025-03-12 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:50:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:51:05 [end_date_ymd] => 2025-03-12 14:51:05 [RateCDR] => 1 ) [2025-03-12 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:51:05' and `end` < '2025-03-12 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:51:19] Production.INFO: count ==5639 [2025-03-12 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:51:05 - End Time 2025-03-12 14:51:05 [2025-03-12 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664900', 'tblTempUsageDetail_20' ) start [2025-03-12 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664900', 'tblTempUsageDetail_20' ) end [2025-03-12 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664900', 'tblTempVendorCDR_20' ) start [2025-03-12 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664900', 'tblTempVendorCDR_20' ) end [2025-03-12 14:51:21] Production.INFO: ProcessCDR(1,14664900,1,1,2) [2025-03-12 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664900', 'tblTempUsageDetail_20' ) start [2025-03-12 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664900', 'tblTempUsageDetail_20' ) end [2025-03-12 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:51:27] Production.INFO: ==29287== Releasing lock... [2025-03-12 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:51:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:52:05 [end_date_ymd] => 2025-03-12 14:52:05 [RateCDR] => 1 ) [2025-03-12 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:52:05' and `end` < '2025-03-12 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:52:19] Production.INFO: count ==5623 [2025-03-12 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:52:05 - End Time 2025-03-12 14:52:05 [2025-03-12 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664901', 'tblTempUsageDetail_20' ) start [2025-03-12 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664901', 'tblTempUsageDetail_20' ) end [2025-03-12 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664901', 'tblTempVendorCDR_20' ) start [2025-03-12 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664901', 'tblTempVendorCDR_20' ) end [2025-03-12 14:52:21] Production.INFO: ProcessCDR(1,14664901,1,1,2) [2025-03-12 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664901', 'tblTempUsageDetail_20' ) start [2025-03-12 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664901', 'tblTempUsageDetail_20' ) end [2025-03-12 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:52:27] Production.INFO: ==29361== Releasing lock... [2025-03-12 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:52:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:53:05 [end_date_ymd] => 2025-03-12 14:53:05 [RateCDR] => 1 ) [2025-03-12 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:53:05' and `end` < '2025-03-12 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:53:18] Production.INFO: count ==5632 [2025-03-12 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:53:05 - End Time 2025-03-12 14:53:05 [2025-03-12 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664910', 'tblTempUsageDetail_20' ) start [2025-03-12 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664910', 'tblTempUsageDetail_20' ) end [2025-03-12 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664910', 'tblTempVendorCDR_20' ) start [2025-03-12 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664910', 'tblTempVendorCDR_20' ) end [2025-03-12 14:53:21] Production.INFO: ProcessCDR(1,14664910,1,1,2) [2025-03-12 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664910', 'tblTempUsageDetail_20' ) start [2025-03-12 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664910', 'tblTempUsageDetail_20' ) end [2025-03-12 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:53:26] Production.INFO: ==29434== Releasing lock... [2025-03-12 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:53:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:54:06 [end_date_ymd] => 2025-03-12 14:54:06 [RateCDR] => 1 ) [2025-03-12 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:54:06' and `end` < '2025-03-12 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:54:19] Production.INFO: count ==5621 [2025-03-12 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-12 11:54:06 - End Time 2025-03-12 14:54:06 [2025-03-12 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664915', 'tblTempUsageDetail_20' ) start [2025-03-12 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664915', 'tblTempUsageDetail_20' ) end [2025-03-12 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664915', 'tblTempVendorCDR_20' ) start [2025-03-12 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664915', 'tblTempVendorCDR_20' ) end [2025-03-12 14:54:22] Production.INFO: ProcessCDR(1,14664915,1,1,2) [2025-03-12 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664915', 'tblTempUsageDetail_20' ) start [2025-03-12 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664915', 'tblTempUsageDetail_20' ) end [2025-03-12 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:54:27] Production.INFO: ==29512== Releasing lock... [2025-03-12 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:54:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:55:06 [end_date_ymd] => 2025-03-12 14:55:06 [RateCDR] => 1 ) [2025-03-12 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:55:06' and `end` < '2025-03-12 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:55:19] Production.INFO: count ==5622 [2025-03-12 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:55:06 - End Time 2025-03-12 14:55:06 [2025-03-12 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664920', 'tblTempUsageDetail_20' ) start [2025-03-12 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664920', 'tblTempUsageDetail_20' ) end [2025-03-12 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664920', 'tblTempVendorCDR_20' ) start [2025-03-12 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664920', 'tblTempVendorCDR_20' ) end [2025-03-12 14:55:22] Production.INFO: ProcessCDR(1,14664920,1,1,2) [2025-03-12 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664920', 'tblTempUsageDetail_20' ) start [2025-03-12 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664920', 'tblTempUsageDetail_20' ) end [2025-03-12 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:55:27] Production.INFO: ==29582== Releasing lock... [2025-03-12 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:55:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:56:05 [end_date_ymd] => 2025-03-12 14:56:05 [RateCDR] => 1 ) [2025-03-12 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:56:05' and `end` < '2025-03-12 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:56:19] Production.INFO: count ==5638 [2025-03-12 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:56:05 - End Time 2025-03-12 14:56:05 [2025-03-12 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664925', 'tblTempUsageDetail_20' ) start [2025-03-12 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664925', 'tblTempUsageDetail_20' ) end [2025-03-12 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664925', 'tblTempVendorCDR_20' ) start [2025-03-12 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664925', 'tblTempVendorCDR_20' ) end [2025-03-12 14:56:22] Production.INFO: ProcessCDR(1,14664925,1,1,2) [2025-03-12 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664925', 'tblTempUsageDetail_20' ) start [2025-03-12 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664925', 'tblTempUsageDetail_20' ) end [2025-03-12 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:56:27] Production.INFO: ==29657== Releasing lock... [2025-03-12 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:56:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:57:04 [end_date_ymd] => 2025-03-12 14:57:04 [RateCDR] => 1 ) [2025-03-12 14:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:57:04' and `end` < '2025-03-12 14:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:57:18] Production.INFO: count ==5641 [2025-03-12 14:57:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:57:04 - End Time 2025-03-12 14:57:04 [2025-03-12 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664930', 'tblTempUsageDetail_20' ) start [2025-03-12 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664930', 'tblTempUsageDetail_20' ) end [2025-03-12 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664930', 'tblTempVendorCDR_20' ) start [2025-03-12 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664930', 'tblTempVendorCDR_20' ) end [2025-03-12 14:57:20] Production.INFO: ProcessCDR(1,14664930,1,1,2) [2025-03-12 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664930', 'tblTempUsageDetail_20' ) start [2025-03-12 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664930', 'tblTempUsageDetail_20' ) end [2025-03-12 14:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:57:25] Production.INFO: ==29733== Releasing lock... [2025-03-12 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:57:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:58:06 [end_date_ymd] => 2025-03-12 14:58:06 [RateCDR] => 1 ) [2025-03-12 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:58:06' and `end` < '2025-03-12 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:58:19] Production.INFO: count ==5664 [2025-03-12 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 11:58:06 - End Time 2025-03-12 14:58:06 [2025-03-12 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664935', 'tblTempUsageDetail_20' ) start [2025-03-12 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664935', 'tblTempUsageDetail_20' ) end [2025-03-12 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664935', 'tblTempVendorCDR_20' ) start [2025-03-12 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664935', 'tblTempVendorCDR_20' ) end [2025-03-12 14:58:22] Production.INFO: ProcessCDR(1,14664935,1,1,2) [2025-03-12 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664935', 'tblTempUsageDetail_20' ) start [2025-03-12 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664935', 'tblTempUsageDetail_20' ) end [2025-03-12 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:58:27] Production.INFO: ==29806== Releasing lock... [2025-03-12 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:58:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 11:59:05 [end_date_ymd] => 2025-03-12 14:59:05 [RateCDR] => 1 ) [2025-03-12 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 11:59:05' and `end` < '2025-03-12 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 14:59:18] Production.INFO: count ==5699 [2025-03-12 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-12 11:59:05 - End Time 2025-03-12 14:59:05 [2025-03-12 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664940', 'tblTempUsageDetail_20' ) start [2025-03-12 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664940', 'tblTempUsageDetail_20' ) end [2025-03-12 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664940', 'tblTempVendorCDR_20' ) start [2025-03-12 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664940', 'tblTempVendorCDR_20' ) end [2025-03-12 14:59:20] Production.INFO: ProcessCDR(1,14664940,1,1,2) [2025-03-12 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664940', 'tblTempUsageDetail_20' ) start [2025-03-12 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664940', 'tblTempUsageDetail_20' ) end [2025-03-12 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 14:59:26] Production.INFO: ==29880== Releasing lock... [2025-03-12 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 14:59:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:00:06 [end_date_ymd] => 2025-03-12 15:00:06 [RateCDR] => 1 ) [2025-03-12 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:00:06' and `end` < '2025-03-12 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:00:20] Production.INFO: count ==5705 [2025-03-12 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:00:06 - End Time 2025-03-12 15:00:06 [2025-03-12 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664946', 'tblTempUsageDetail_20' ) start [2025-03-12 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664946', 'tblTempUsageDetail_20' ) end [2025-03-12 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664946', 'tblTempVendorCDR_20' ) start [2025-03-12 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664946', 'tblTempVendorCDR_20' ) end [2025-03-12 15:00:22] Production.INFO: ProcessCDR(1,14664946,1,1,2) [2025-03-12 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664946', 'tblTempUsageDetail_20' ) start [2025-03-12 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664946', 'tblTempUsageDetail_20' ) end [2025-03-12 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:00:28] Production.INFO: ==29970== Releasing lock... [2025-03-12 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:00:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:01:05 [end_date_ymd] => 2025-03-12 15:01:05 [RateCDR] => 1 ) [2025-03-12 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:01:05' and `end` < '2025-03-12 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:01:19] Production.INFO: count ==5723 [2025-03-12 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:01:05 - End Time 2025-03-12 15:01:05 [2025-03-12 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664951', 'tblTempUsageDetail_20' ) start [2025-03-12 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664951', 'tblTempUsageDetail_20' ) end [2025-03-12 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664951', 'tblTempVendorCDR_20' ) start [2025-03-12 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664951', 'tblTempVendorCDR_20' ) end [2025-03-12 15:01:21] Production.INFO: ProcessCDR(1,14664951,1,1,2) [2025-03-12 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664951', 'tblTempUsageDetail_20' ) start [2025-03-12 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664951', 'tblTempUsageDetail_20' ) end [2025-03-12 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:01:27] Production.INFO: ==30135== Releasing lock... [2025-03-12 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:01:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:02:06 [end_date_ymd] => 2025-03-12 15:02:06 [RateCDR] => 1 ) [2025-03-12 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:02:06' and `end` < '2025-03-12 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:02:19] Production.INFO: count ==5685 [2025-03-12 15:02:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:02:06 - End Time 2025-03-12 15:02:06 [2025-03-12 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664956', 'tblTempUsageDetail_20' ) start [2025-03-12 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664956', 'tblTempUsageDetail_20' ) end [2025-03-12 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664956', 'tblTempVendorCDR_20' ) start [2025-03-12 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664956', 'tblTempVendorCDR_20' ) end [2025-03-12 15:02:22] Production.INFO: ProcessCDR(1,14664956,1,1,2) [2025-03-12 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664956', 'tblTempUsageDetail_20' ) start [2025-03-12 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664956', 'tblTempUsageDetail_20' ) end [2025-03-12 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:02:27] Production.INFO: ==30208== Releasing lock... [2025-03-12 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:02:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:03:06 [end_date_ymd] => 2025-03-12 15:03:06 [RateCDR] => 1 ) [2025-03-12 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:03:06' and `end` < '2025-03-12 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:03:19] Production.INFO: count ==5681 [2025-03-12 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:03:06 - End Time 2025-03-12 15:03:06 [2025-03-12 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664961', 'tblTempUsageDetail_20' ) start [2025-03-12 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664961', 'tblTempUsageDetail_20' ) end [2025-03-12 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664961', 'tblTempVendorCDR_20' ) start [2025-03-12 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664961', 'tblTempVendorCDR_20' ) end [2025-03-12 15:03:22] Production.INFO: ProcessCDR(1,14664961,1,1,2) [2025-03-12 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664961', 'tblTempUsageDetail_20' ) start [2025-03-12 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664961', 'tblTempUsageDetail_20' ) end [2025-03-12 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:03:27] Production.INFO: ==30279== Releasing lock... [2025-03-12 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:03:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:04:06 [end_date_ymd] => 2025-03-12 15:04:06 [RateCDR] => 1 ) [2025-03-12 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:04:06' and `end` < '2025-03-12 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:04:20] Production.INFO: count ==5678 [2025-03-12 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:04:06 - End Time 2025-03-12 15:04:06 [2025-03-12 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664966', 'tblTempUsageDetail_20' ) start [2025-03-12 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664966', 'tblTempUsageDetail_20' ) end [2025-03-12 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664966', 'tblTempVendorCDR_20' ) start [2025-03-12 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664966', 'tblTempVendorCDR_20' ) end [2025-03-12 15:04:22] Production.INFO: ProcessCDR(1,14664966,1,1,2) [2025-03-12 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664966', 'tblTempUsageDetail_20' ) start [2025-03-12 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664966', 'tblTempUsageDetail_20' ) end [2025-03-12 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:04:28] Production.INFO: ==30358== Releasing lock... [2025-03-12 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:04:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:05:05 [end_date_ymd] => 2025-03-12 15:05:05 [RateCDR] => 1 ) [2025-03-12 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:05:05' and `end` < '2025-03-12 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:05:19] Production.INFO: count ==5681 [2025-03-12 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:05:05 - End Time 2025-03-12 15:05:05 [2025-03-12 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664971', 'tblTempUsageDetail_20' ) start [2025-03-12 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664971', 'tblTempUsageDetail_20' ) end [2025-03-12 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664971', 'tblTempVendorCDR_20' ) start [2025-03-12 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664971', 'tblTempVendorCDR_20' ) end [2025-03-12 15:05:21] Production.INFO: ProcessCDR(1,14664971,1,1,2) [2025-03-12 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664971', 'tblTempUsageDetail_20' ) start [2025-03-12 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664971', 'tblTempUsageDetail_20' ) end [2025-03-12 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:05:27] Production.INFO: ==30509== Releasing lock... [2025-03-12 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:05:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:06:06 [end_date_ymd] => 2025-03-12 15:06:06 [RateCDR] => 1 ) [2025-03-12 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:06:06' and `end` < '2025-03-12 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:06:19] Production.INFO: count ==5687 [2025-03-12 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:06:06 - End Time 2025-03-12 15:06:06 [2025-03-12 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664976', 'tblTempUsageDetail_20' ) start [2025-03-12 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664976', 'tblTempUsageDetail_20' ) end [2025-03-12 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664976', 'tblTempVendorCDR_20' ) start [2025-03-12 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664976', 'tblTempVendorCDR_20' ) end [2025-03-12 15:06:21] Production.INFO: ProcessCDR(1,14664976,1,1,2) [2025-03-12 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664976', 'tblTempUsageDetail_20' ) start [2025-03-12 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664976', 'tblTempUsageDetail_20' ) end [2025-03-12 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:06:27] Production.INFO: ==30588== Releasing lock... [2025-03-12 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:06:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:07:05 [end_date_ymd] => 2025-03-12 15:07:05 [RateCDR] => 1 ) [2025-03-12 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:07:05' and `end` < '2025-03-12 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:07:18] Production.INFO: count ==5670 [2025-03-12 15:07:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:07:05 - End Time 2025-03-12 15:07:05 [2025-03-12 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664981', 'tblTempUsageDetail_20' ) start [2025-03-12 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664981', 'tblTempUsageDetail_20' ) end [2025-03-12 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664981', 'tblTempVendorCDR_20' ) start [2025-03-12 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664981', 'tblTempVendorCDR_20' ) end [2025-03-12 15:07:20] Production.INFO: ProcessCDR(1,14664981,1,1,2) [2025-03-12 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664981', 'tblTempUsageDetail_20' ) start [2025-03-12 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664981', 'tblTempUsageDetail_20' ) end [2025-03-12 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:07:26] Production.INFO: ==30707== Releasing lock... [2025-03-12 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:07:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:08:06 [end_date_ymd] => 2025-03-12 15:08:06 [RateCDR] => 1 ) [2025-03-12 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:08:06' and `end` < '2025-03-12 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:08:19] Production.INFO: count ==5672 [2025-03-12 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:08:06 - End Time 2025-03-12 15:08:06 [2025-03-12 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664986', 'tblTempUsageDetail_20' ) start [2025-03-12 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664986', 'tblTempUsageDetail_20' ) end [2025-03-12 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664986', 'tblTempVendorCDR_20' ) start [2025-03-12 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664986', 'tblTempVendorCDR_20' ) end [2025-03-12 15:08:22] Production.INFO: ProcessCDR(1,14664986,1,1,2) [2025-03-12 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664986', 'tblTempUsageDetail_20' ) start [2025-03-12 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664986', 'tblTempUsageDetail_20' ) end [2025-03-12 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:08:27] Production.INFO: ==30864== Releasing lock... [2025-03-12 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:08:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:09:05 [end_date_ymd] => 2025-03-12 15:09:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:09:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:09:19] Production.INFO: count ==5644 [2025-03-12 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:09:05 - End Time 2025-03-12 15:09:05 [2025-03-12 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664991', 'tblTempUsageDetail_20' ) start [2025-03-12 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664991', 'tblTempUsageDetail_20' ) end [2025-03-12 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664991', 'tblTempVendorCDR_20' ) start [2025-03-12 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664991', 'tblTempVendorCDR_20' ) end [2025-03-12 15:09:21] Production.INFO: ProcessCDR(1,14664991,1,1,2) [2025-03-12 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664991', 'tblTempUsageDetail_20' ) start [2025-03-12 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664991', 'tblTempUsageDetail_20' ) end [2025-03-12 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:09:26] Production.INFO: ==30943== Releasing lock... [2025-03-12 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:09:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:10:06 [end_date_ymd] => 2025-03-12 15:10:06 [RateCDR] => 1 ) [2025-03-12 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:10:06' and `end` < '2025-03-12 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:10:20] Production.INFO: count ==5623 [2025-03-12 15:10:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:10:06 - End Time 2025-03-12 15:10:06 [2025-03-12 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664996', 'tblTempUsageDetail_20' ) start [2025-03-12 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14664996', 'tblTempUsageDetail_20' ) end [2025-03-12 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664996', 'tblTempVendorCDR_20' ) start [2025-03-12 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14664996', 'tblTempVendorCDR_20' ) end [2025-03-12 15:10:22] Production.INFO: ProcessCDR(1,14664996,1,1,2) [2025-03-12 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14664996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14664996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14664996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14664996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664996', 'tblTempUsageDetail_20' ) start [2025-03-12 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14664996', 'tblTempUsageDetail_20' ) end [2025-03-12 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:10:28] Production.INFO: ==31045== Releasing lock... [2025-03-12 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:10:28] Production.INFO: 70 MB #Memory Used# [2025-03-12 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:11:05 [end_date_ymd] => 2025-03-12 15:11:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:11:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:11:19] Production.INFO: count ==5623 [2025-03-12 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:11:05 - End Time 2025-03-12 15:11:05 [2025-03-12 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665002', 'tblTempUsageDetail_20' ) start [2025-03-12 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665002', 'tblTempUsageDetail_20' ) end [2025-03-12 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665002', 'tblTempVendorCDR_20' ) start [2025-03-12 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665002', 'tblTempVendorCDR_20' ) end [2025-03-12 15:11:21] Production.INFO: ProcessCDR(1,14665002,1,1,2) [2025-03-12 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665002', 'tblTempUsageDetail_20' ) start [2025-03-12 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665002', 'tblTempUsageDetail_20' ) end [2025-03-12 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:11:26] Production.INFO: ==31129== Releasing lock... [2025-03-12 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:11:26] Production.INFO: 70 MB #Memory Used# [2025-03-12 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:12:06 [end_date_ymd] => 2025-03-12 15:12:06 [RateCDR] => 1 ) [2025-03-12 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:12:06' and `end` < '2025-03-12 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:12:19] Production.INFO: count ==5606 [2025-03-12 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:12:06 - End Time 2025-03-12 15:12:06 [2025-03-12 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665007', 'tblTempUsageDetail_20' ) start [2025-03-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665007', 'tblTempUsageDetail_20' ) end [2025-03-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665007', 'tblTempVendorCDR_20' ) start [2025-03-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665007', 'tblTempVendorCDR_20' ) end [2025-03-12 15:12:22] Production.INFO: ProcessCDR(1,14665007,1,1,2) [2025-03-12 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665007', 'tblTempUsageDetail_20' ) start [2025-03-12 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665007', 'tblTempUsageDetail_20' ) end [2025-03-12 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:12:27] Production.INFO: ==31287== Releasing lock... [2025-03-12 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:12:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:13:05 [end_date_ymd] => 2025-03-12 15:13:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:13:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:13:19] Production.INFO: count ==5636 [2025-03-12 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:13:05 - End Time 2025-03-12 15:13:05 [2025-03-12 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665012', 'tblTempUsageDetail_20' ) start [2025-03-12 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665012', 'tblTempUsageDetail_20' ) end [2025-03-12 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665012', 'tblTempVendorCDR_20' ) start [2025-03-12 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665012', 'tblTempVendorCDR_20' ) end [2025-03-12 15:13:21] Production.INFO: ProcessCDR(1,14665012,1,1,2) [2025-03-12 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665012', 'tblTempUsageDetail_20' ) start [2025-03-12 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665012', 'tblTempUsageDetail_20' ) end [2025-03-12 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:13:27] Production.INFO: ==31372== Releasing lock... [2025-03-12 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:13:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:14:05 [end_date_ymd] => 2025-03-12 15:14:05 [RateCDR] => 1 ) [2025-03-12 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:14:05' and `end` < '2025-03-12 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:14:19] Production.INFO: count ==5660 [2025-03-12 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:14:05 - End Time 2025-03-12 15:14:05 [2025-03-12 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665017', 'tblTempUsageDetail_20' ) start [2025-03-12 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665017', 'tblTempUsageDetail_20' ) end [2025-03-12 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665017', 'tblTempVendorCDR_20' ) start [2025-03-12 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665017', 'tblTempVendorCDR_20' ) end [2025-03-12 15:14:21] Production.INFO: ProcessCDR(1,14665017,1,1,2) [2025-03-12 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665017', 'tblTempUsageDetail_20' ) start [2025-03-12 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665017', 'tblTempUsageDetail_20' ) end [2025-03-12 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:14:27] Production.INFO: ==31450== Releasing lock... [2025-03-12 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:15:05 [end_date_ymd] => 2025-03-12 15:15:05 [RateCDR] => 1 ) [2025-03-12 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:15:05' and `end` < '2025-03-12 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:15:19] Production.INFO: count ==5666 [2025-03-12 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:15:05 - End Time 2025-03-12 15:15:05 [2025-03-12 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665022', 'tblTempUsageDetail_20' ) start [2025-03-12 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665022', 'tblTempUsageDetail_20' ) end [2025-03-12 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665022', 'tblTempVendorCDR_20' ) start [2025-03-12 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665022', 'tblTempVendorCDR_20' ) end [2025-03-12 15:15:21] Production.INFO: ProcessCDR(1,14665022,1,1,2) [2025-03-12 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665022', 'tblTempUsageDetail_20' ) start [2025-03-12 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665022', 'tblTempUsageDetail_20' ) end [2025-03-12 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:15:26] Production.INFO: ==31605== Releasing lock... [2025-03-12 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:15:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:16:06 [end_date_ymd] => 2025-03-12 15:16:06 [RateCDR] => 1 ) [2025-03-12 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:16:06' and `end` < '2025-03-12 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:16:19] Production.INFO: count ==5672 [2025-03-12 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:16:06 - End Time 2025-03-12 15:16:06 [2025-03-12 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665027', 'tblTempUsageDetail_20' ) start [2025-03-12 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665027', 'tblTempUsageDetail_20' ) end [2025-03-12 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665027', 'tblTempVendorCDR_20' ) start [2025-03-12 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665027', 'tblTempVendorCDR_20' ) end [2025-03-12 15:16:22] Production.INFO: ProcessCDR(1,14665027,1,1,2) [2025-03-12 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665027', 'tblTempUsageDetail_20' ) start [2025-03-12 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665027', 'tblTempUsageDetail_20' ) end [2025-03-12 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:16:27] Production.INFO: ==31686== Releasing lock... [2025-03-12 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:16:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:17:05 [end_date_ymd] => 2025-03-12 15:17:05 [RateCDR] => 1 ) [2025-03-12 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:17:05' and `end` < '2025-03-12 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:17:19] Production.INFO: count ==5683 [2025-03-12 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:17:05 - End Time 2025-03-12 15:17:05 [2025-03-12 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665032', 'tblTempUsageDetail_20' ) start [2025-03-12 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665032', 'tblTempUsageDetail_20' ) end [2025-03-12 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665032', 'tblTempVendorCDR_20' ) start [2025-03-12 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665032', 'tblTempVendorCDR_20' ) end [2025-03-12 15:17:21] Production.INFO: ProcessCDR(1,14665032,1,1,2) [2025-03-12 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665032', 'tblTempUsageDetail_20' ) start [2025-03-12 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665032', 'tblTempUsageDetail_20' ) end [2025-03-12 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:17:27] Production.INFO: ==31764== Releasing lock... [2025-03-12 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:17:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-12 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:18:06 [end_date_ymd] => 2025-03-12 15:18:06 [RateCDR] => 1 ) [2025-03-12 15:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:18:06' and `end` < '2025-03-12 15:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:18:19] Production.INFO: count ==5714 [2025-03-12 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:18:06 - End Time 2025-03-12 15:18:06 [2025-03-12 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665037', 'tblTempUsageDetail_20' ) start [2025-03-12 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665037', 'tblTempUsageDetail_20' ) end [2025-03-12 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665037', 'tblTempVendorCDR_20' ) start [2025-03-12 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665037', 'tblTempVendorCDR_20' ) end [2025-03-12 15:18:22] Production.INFO: ProcessCDR(1,14665037,1,1,2) [2025-03-12 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665037', 'tblTempUsageDetail_20' ) start [2025-03-12 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665037', 'tblTempUsageDetail_20' ) end [2025-03-12 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:18:27] Production.INFO: ==31854== Releasing lock... [2025-03-12 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:19:05 [end_date_ymd] => 2025-03-12 15:19:05 [RateCDR] => 1 ) [2025-03-12 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:19:05' and `end` < '2025-03-12 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:19:18] Production.INFO: count ==5722 [2025-03-12 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:19:05 - End Time 2025-03-12 15:19:05 [2025-03-12 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665042', 'tblTempUsageDetail_20' ) start [2025-03-12 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665042', 'tblTempUsageDetail_20' ) end [2025-03-12 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665042', 'tblTempVendorCDR_20' ) start [2025-03-12 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665042', 'tblTempVendorCDR_20' ) end [2025-03-12 15:19:21] Production.INFO: ProcessCDR(1,14665042,1,1,2) [2025-03-12 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665042', 'tblTempUsageDetail_20' ) start [2025-03-12 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665042', 'tblTempUsageDetail_20' ) end [2025-03-12 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:19:26] Production.INFO: ==31946== Releasing lock... [2025-03-12 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:19:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:20:06 [end_date_ymd] => 2025-03-12 15:20:06 [RateCDR] => 1 ) [2025-03-12 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:20:06' and `end` < '2025-03-12 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:20:20] Production.INFO: count ==5700 [2025-03-12 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:20:06 - End Time 2025-03-12 15:20:06 [2025-03-12 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665048', 'tblTempUsageDetail_20' ) start [2025-03-12 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665048', 'tblTempUsageDetail_20' ) end [2025-03-12 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665048', 'tblTempVendorCDR_20' ) start [2025-03-12 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665048', 'tblTempVendorCDR_20' ) end [2025-03-12 15:20:23] Production.INFO: ProcessCDR(1,14665048,1,1,2) [2025-03-12 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665048', 'tblTempUsageDetail_20' ) start [2025-03-12 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665048', 'tblTempUsageDetail_20' ) end [2025-03-12 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:20:28] Production.INFO: ==32048== Releasing lock... [2025-03-12 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:20:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:21:05 [end_date_ymd] => 2025-03-12 15:21:05 [RateCDR] => 1 ) [2025-03-12 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:21:05' and `end` < '2025-03-12 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:21:19] Production.INFO: count ==5719 [2025-03-12 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:21:05 - End Time 2025-03-12 15:21:05 [2025-03-12 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665053', 'tblTempUsageDetail_20' ) start [2025-03-12 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665053', 'tblTempUsageDetail_20' ) end [2025-03-12 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665053', 'tblTempVendorCDR_20' ) start [2025-03-12 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665053', 'tblTempVendorCDR_20' ) end [2025-03-12 15:21:21] Production.INFO: ProcessCDR(1,14665053,1,1,2) [2025-03-12 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665053', 'tblTempUsageDetail_20' ) start [2025-03-12 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665053', 'tblTempUsageDetail_20' ) end [2025-03-12 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:21:27] Production.INFO: ==32150== Releasing lock... [2025-03-12 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:21:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:22:05 [end_date_ymd] => 2025-03-12 15:22:05 [RateCDR] => 1 ) [2025-03-12 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:22:05' and `end` < '2025-03-12 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:22:19] Production.INFO: count ==5719 [2025-03-12 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:22:05 - End Time 2025-03-12 15:22:05 [2025-03-12 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665058', 'tblTempUsageDetail_20' ) start [2025-03-12 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665058', 'tblTempUsageDetail_20' ) end [2025-03-12 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665058', 'tblTempVendorCDR_20' ) start [2025-03-12 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665058', 'tblTempVendorCDR_20' ) end [2025-03-12 15:22:21] Production.INFO: ProcessCDR(1,14665058,1,1,2) [2025-03-12 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665058', 'tblTempUsageDetail_20' ) start [2025-03-12 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665058', 'tblTempUsageDetail_20' ) end [2025-03-12 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:22:27] Production.INFO: ==32292== Releasing lock... [2025-03-12 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:22:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:23:05 [end_date_ymd] => 2025-03-12 15:23:05 [RateCDR] => 1 ) [2025-03-12 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:23:05' and `end` < '2025-03-12 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:23:18] Production.INFO: count ==5713 [2025-03-12 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:23:05 - End Time 2025-03-12 15:23:05 [2025-03-12 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665063', 'tblTempUsageDetail_20' ) start [2025-03-12 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665063', 'tblTempUsageDetail_20' ) end [2025-03-12 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665063', 'tblTempVendorCDR_20' ) start [2025-03-12 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665063', 'tblTempVendorCDR_20' ) end [2025-03-12 15:23:21] Production.INFO: ProcessCDR(1,14665063,1,1,2) [2025-03-12 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665063', 'tblTempUsageDetail_20' ) start [2025-03-12 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665063', 'tblTempUsageDetail_20' ) end [2025-03-12 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:23:26] Production.INFO: ==32391== Releasing lock... [2025-03-12 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:23:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:24:06 [end_date_ymd] => 2025-03-12 15:24:06 [RateCDR] => 1 ) [2025-03-12 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:24:06' and `end` < '2025-03-12 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:24:19] Production.INFO: count ==5730 [2025-03-12 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:24:06 - End Time 2025-03-12 15:24:06 [2025-03-12 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665068', 'tblTempUsageDetail_20' ) start [2025-03-12 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665068', 'tblTempUsageDetail_20' ) end [2025-03-12 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665068', 'tblTempVendorCDR_20' ) start [2025-03-12 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665068', 'tblTempVendorCDR_20' ) end [2025-03-12 15:24:21] Production.INFO: ProcessCDR(1,14665068,1,1,2) [2025-03-12 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665068', 'tblTempUsageDetail_20' ) start [2025-03-12 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665068', 'tblTempUsageDetail_20' ) end [2025-03-12 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:24:26] Production.INFO: ==32493== Releasing lock... [2025-03-12 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:24:26] Production.INFO: 71 MB #Memory Used# [2025-03-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:25:05 [end_date_ymd] => 2025-03-12 15:25:05 [RateCDR] => 1 ) [2025-03-12 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:25:05' and `end` < '2025-03-12 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:25:18] Production.INFO: count ==5736 [2025-03-12 15:25:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:25:05 - End Time 2025-03-12 15:25:05 [2025-03-12 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665073', 'tblTempUsageDetail_20' ) start [2025-03-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665073', 'tblTempUsageDetail_20' ) end [2025-03-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665073', 'tblTempVendorCDR_20' ) start [2025-03-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665073', 'tblTempVendorCDR_20' ) end [2025-03-12 15:25:21] Production.INFO: ProcessCDR(1,14665073,1,1,2) [2025-03-12 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665073', 'tblTempUsageDetail_20' ) start [2025-03-12 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665073', 'tblTempUsageDetail_20' ) end [2025-03-12 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:25:26] Production.INFO: ==32590== Releasing lock... [2025-03-12 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:25:26] Production.INFO: 71 MB #Memory Used# [2025-03-12 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:26:06 [end_date_ymd] => 2025-03-12 15:26:06 [RateCDR] => 1 ) [2025-03-12 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:26:06' and `end` < '2025-03-12 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:26:19] Production.INFO: count ==5757 [2025-03-12 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:26:06 - End Time 2025-03-12 15:26:06 [2025-03-12 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665078', 'tblTempUsageDetail_20' ) start [2025-03-12 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665078', 'tblTempUsageDetail_20' ) end [2025-03-12 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665078', 'tblTempVendorCDR_20' ) start [2025-03-12 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665078', 'tblTempVendorCDR_20' ) end [2025-03-12 15:26:22] Production.INFO: ProcessCDR(1,14665078,1,1,2) [2025-03-12 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665078', 'tblTempUsageDetail_20' ) start [2025-03-12 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665078', 'tblTempUsageDetail_20' ) end [2025-03-12 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:26:27] Production.INFO: ==32692== Releasing lock... [2025-03-12 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:26:27] Production.INFO: 71 MB #Memory Used# [2025-03-12 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:27:05 [end_date_ymd] => 2025-03-12 15:27:05 [RateCDR] => 1 ) [2025-03-12 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:27:05' and `end` < '2025-03-12 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:27:19] Production.INFO: count ==5766 [2025-03-12 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:27:05 - End Time 2025-03-12 15:27:05 [2025-03-12 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665083', 'tblTempUsageDetail_20' ) start [2025-03-12 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665083', 'tblTempUsageDetail_20' ) end [2025-03-12 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665083', 'tblTempVendorCDR_20' ) start [2025-03-12 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665083', 'tblTempVendorCDR_20' ) end [2025-03-12 15:27:21] Production.INFO: ProcessCDR(1,14665083,1,1,2) [2025-03-12 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665083', 'tblTempUsageDetail_20' ) start [2025-03-12 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665083', 'tblTempUsageDetail_20' ) end [2025-03-12 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:27:26] Production.INFO: ==331== Releasing lock... [2025-03-12 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:27:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:28:05 [end_date_ymd] => 2025-03-12 15:28:05 [RateCDR] => 1 ) [2025-03-12 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:28:05' and `end` < '2025-03-12 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:28:19] Production.INFO: count ==5728 [2025-03-12 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:28:05 - End Time 2025-03-12 15:28:05 [2025-03-12 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665088', 'tblTempUsageDetail_20' ) start [2025-03-12 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665088', 'tblTempUsageDetail_20' ) end [2025-03-12 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665088', 'tblTempVendorCDR_20' ) start [2025-03-12 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665088', 'tblTempVendorCDR_20' ) end [2025-03-12 15:28:21] Production.INFO: ProcessCDR(1,14665088,1,1,2) [2025-03-12 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665088', 'tblTempUsageDetail_20' ) start [2025-03-12 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665088', 'tblTempUsageDetail_20' ) end [2025-03-12 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:28:26] Production.INFO: ==442== Releasing lock... [2025-03-12 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:28:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:29:05 [end_date_ymd] => 2025-03-12 15:29:05 [RateCDR] => 1 ) [2025-03-12 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:29:05' and `end` < '2025-03-12 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:29:18] Production.INFO: count ==5731 [2025-03-12 15:29:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:29:05 - End Time 2025-03-12 15:29:05 [2025-03-12 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665093', 'tblTempUsageDetail_20' ) start [2025-03-12 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665093', 'tblTempUsageDetail_20' ) end [2025-03-12 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665093', 'tblTempVendorCDR_20' ) start [2025-03-12 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665093', 'tblTempVendorCDR_20' ) end [2025-03-12 15:29:20] Production.INFO: ProcessCDR(1,14665093,1,1,2) [2025-03-12 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665093', 'tblTempUsageDetail_20' ) start [2025-03-12 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665093', 'tblTempUsageDetail_20' ) end [2025-03-12 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:29:25] Production.INFO: ==547== Releasing lock... [2025-03-12 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:29:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:30:06 [end_date_ymd] => 2025-03-12 15:30:06 [RateCDR] => 1 ) [2025-03-12 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:30:06' and `end` < '2025-03-12 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:30:20] Production.INFO: count ==5713 [2025-03-12 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:30:06 - End Time 2025-03-12 15:30:06 [2025-03-12 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665099', 'tblTempUsageDetail_20' ) start [2025-03-12 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665099', 'tblTempUsageDetail_20' ) end [2025-03-12 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665099', 'tblTempVendorCDR_20' ) start [2025-03-12 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665099', 'tblTempVendorCDR_20' ) end [2025-03-12 15:30:22] Production.INFO: ProcessCDR(1,14665099,1,1,2) [2025-03-12 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665099', 'tblTempUsageDetail_20' ) start [2025-03-12 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665099', 'tblTempUsageDetail_20' ) end [2025-03-12 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:30:27] Production.INFO: ==663== Releasing lock... [2025-03-12 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:30:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:31:05 [end_date_ymd] => 2025-03-12 15:31:05 [RateCDR] => 1 ) [2025-03-12 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:31:05' and `end` < '2025-03-12 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:31:19] Production.INFO: count ==5732 [2025-03-12 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:31:05 - End Time 2025-03-12 15:31:05 [2025-03-12 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665104', 'tblTempUsageDetail_20' ) start [2025-03-12 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665104', 'tblTempUsageDetail_20' ) end [2025-03-12 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665104', 'tblTempVendorCDR_20' ) start [2025-03-12 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665104', 'tblTempVendorCDR_20' ) end [2025-03-12 15:31:21] Production.INFO: ProcessCDR(1,14665104,1,1,2) [2025-03-12 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665104', 'tblTempUsageDetail_20' ) start [2025-03-12 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665104', 'tblTempUsageDetail_20' ) end [2025-03-12 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:31:26] Production.INFO: ==788== Releasing lock... [2025-03-12 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:31:26] Production.INFO: 71 MB #Memory Used# [2025-03-12 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:32:05 [end_date_ymd] => 2025-03-12 15:32:05 [RateCDR] => 1 ) [2025-03-12 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:32:05' and `end` < '2025-03-12 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:32:18] Production.INFO: count ==5764 [2025-03-12 15:32:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:32:05 - End Time 2025-03-12 15:32:05 [2025-03-12 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665109', 'tblTempUsageDetail_20' ) start [2025-03-12 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665109', 'tblTempUsageDetail_20' ) end [2025-03-12 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665109', 'tblTempVendorCDR_20' ) start [2025-03-12 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665109', 'tblTempVendorCDR_20' ) end [2025-03-12 15:32:21] Production.INFO: ProcessCDR(1,14665109,1,1,2) [2025-03-12 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665109', 'tblTempUsageDetail_20' ) start [2025-03-12 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665109', 'tblTempUsageDetail_20' ) end [2025-03-12 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:32:26] Production.INFO: ==897== Releasing lock... [2025-03-12 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:32:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:33:05 [end_date_ymd] => 2025-03-12 15:33:05 [RateCDR] => 1 ) [2025-03-12 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:33:05' and `end` < '2025-03-12 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:33:19] Production.INFO: count ==5772 [2025-03-12 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:33:05 - End Time 2025-03-12 15:33:05 [2025-03-12 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665114', 'tblTempUsageDetail_20' ) start [2025-03-12 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665114', 'tblTempUsageDetail_20' ) end [2025-03-12 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665114', 'tblTempVendorCDR_20' ) start [2025-03-12 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665114', 'tblTempVendorCDR_20' ) end [2025-03-12 15:33:21] Production.INFO: ProcessCDR(1,14665114,1,1,2) [2025-03-12 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665114', 'tblTempUsageDetail_20' ) start [2025-03-12 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665114', 'tblTempUsageDetail_20' ) end [2025-03-12 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:33:26] Production.INFO: ==999== Releasing lock... [2025-03-12 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:33:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:34:06 [end_date_ymd] => 2025-03-12 15:34:06 [RateCDR] => 1 ) [2025-03-12 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:34:06' and `end` < '2025-03-12 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:34:19] Production.INFO: count ==5781 [2025-03-12 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:34:06 - End Time 2025-03-12 15:34:06 [2025-03-12 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665119', 'tblTempUsageDetail_20' ) start [2025-03-12 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665119', 'tblTempUsageDetail_20' ) end [2025-03-12 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665119', 'tblTempVendorCDR_20' ) start [2025-03-12 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665119', 'tblTempVendorCDR_20' ) end [2025-03-12 15:34:22] Production.INFO: ProcessCDR(1,14665119,1,1,2) [2025-03-12 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665119', 'tblTempUsageDetail_20' ) start [2025-03-12 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665119', 'tblTempUsageDetail_20' ) end [2025-03-12 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:34:27] Production.INFO: ==1100== Releasing lock... [2025-03-12 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:34:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:35:05 [end_date_ymd] => 2025-03-12 15:35:05 [RateCDR] => 1 ) [2025-03-12 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:35:05' and `end` < '2025-03-12 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:35:18] Production.INFO: count ==5790 [2025-03-12 15:35:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:35:05 - End Time 2025-03-12 15:35:05 [2025-03-12 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665124', 'tblTempUsageDetail_20' ) start [2025-03-12 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665124', 'tblTempUsageDetail_20' ) end [2025-03-12 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665124', 'tblTempVendorCDR_20' ) start [2025-03-12 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665124', 'tblTempVendorCDR_20' ) end [2025-03-12 15:35:20] Production.INFO: ProcessCDR(1,14665124,1,1,2) [2025-03-12 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665124', 'tblTempUsageDetail_20' ) start [2025-03-12 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665124', 'tblTempUsageDetail_20' ) end [2025-03-12 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:35:26] Production.INFO: ==1222== Releasing lock... [2025-03-12 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:35:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:36:05 [end_date_ymd] => 2025-03-12 15:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:36:18] Production.INFO: count ==5790 [2025-03-12 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:36:05 - End Time 2025-03-12 15:36:05 [2025-03-12 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665129', 'tblTempUsageDetail_20' ) start [2025-03-12 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665129', 'tblTempUsageDetail_20' ) end [2025-03-12 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665129', 'tblTempVendorCDR_20' ) start [2025-03-12 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665129', 'tblTempVendorCDR_20' ) end [2025-03-12 15:36:21] Production.INFO: ProcessCDR(1,14665129,1,1,2) [2025-03-12 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665129', 'tblTempUsageDetail_20' ) start [2025-03-12 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665129', 'tblTempUsageDetail_20' ) end [2025-03-12 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:36:26] Production.INFO: ==1330== Releasing lock... [2025-03-12 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:36:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:37:05 [end_date_ymd] => 2025-03-12 15:37:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:37:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:37:18] Production.INFO: count ==5809 [2025-03-12 15:37:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:37:05 - End Time 2025-03-12 15:37:05 [2025-03-12 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665134', 'tblTempUsageDetail_20' ) start [2025-03-12 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665134', 'tblTempUsageDetail_20' ) end [2025-03-12 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665134', 'tblTempVendorCDR_20' ) start [2025-03-12 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665134', 'tblTempVendorCDR_20' ) end [2025-03-12 15:37:20] Production.INFO: ProcessCDR(1,14665134,1,1,2) [2025-03-12 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665134', 'tblTempUsageDetail_20' ) start [2025-03-12 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665134', 'tblTempUsageDetail_20' ) end [2025-03-12 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:37:26] Production.INFO: ==1432== Releasing lock... [2025-03-12 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:37:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:38:05 [end_date_ymd] => 2025-03-12 15:38:05 [RateCDR] => 1 ) [2025-03-12 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:38:05' and `end` < '2025-03-12 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:38:18] Production.INFO: count ==5826 [2025-03-12 15:38:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:38:05 - End Time 2025-03-12 15:38:05 [2025-03-12 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665139', 'tblTempUsageDetail_20' ) start [2025-03-12 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665139', 'tblTempUsageDetail_20' ) end [2025-03-12 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665139', 'tblTempVendorCDR_20' ) start [2025-03-12 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665139', 'tblTempVendorCDR_20' ) end [2025-03-12 15:38:21] Production.INFO: ProcessCDR(1,14665139,1,1,2) [2025-03-12 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665139', 'tblTempUsageDetail_20' ) start [2025-03-12 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665139', 'tblTempUsageDetail_20' ) end [2025-03-12 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:38:26] Production.INFO: ==1605== Releasing lock... [2025-03-12 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:38:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:39:05 [end_date_ymd] => 2025-03-12 15:39:05 [RateCDR] => 1 ) [2025-03-12 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:39:05' and `end` < '2025-03-12 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:39:18] Production.INFO: count ==5818 [2025-03-12 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:39:05 - End Time 2025-03-12 15:39:05 [2025-03-12 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665144', 'tblTempUsageDetail_20' ) start [2025-03-12 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665144', 'tblTempUsageDetail_20' ) end [2025-03-12 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665144', 'tblTempVendorCDR_20' ) start [2025-03-12 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665144', 'tblTempVendorCDR_20' ) end [2025-03-12 15:39:21] Production.INFO: ProcessCDR(1,14665144,1,1,2) [2025-03-12 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665144', 'tblTempUsageDetail_20' ) start [2025-03-12 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665144', 'tblTempUsageDetail_20' ) end [2025-03-12 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:39:26] Production.INFO: ==1705== Releasing lock... [2025-03-12 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:39:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:40:06 [end_date_ymd] => 2025-03-12 15:40:06 [RateCDR] => 1 ) [2025-03-12 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:40:06' and `end` < '2025-03-12 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:40:20] Production.INFO: count ==5821 [2025-03-12 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:40:06 - End Time 2025-03-12 15:40:06 [2025-03-12 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665150', 'tblTempUsageDetail_20' ) start [2025-03-12 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665150', 'tblTempUsageDetail_20' ) end [2025-03-12 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665150', 'tblTempVendorCDR_20' ) start [2025-03-12 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665150', 'tblTempVendorCDR_20' ) end [2025-03-12 15:40:22] Production.INFO: ProcessCDR(1,14665150,1,1,2) [2025-03-12 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665150', 'tblTempUsageDetail_20' ) start [2025-03-12 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665150', 'tblTempUsageDetail_20' ) end [2025-03-12 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:40:27] Production.INFO: ==1811== Releasing lock... [2025-03-12 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:40:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:41:05 [end_date_ymd] => 2025-03-12 15:41:05 [RateCDR] => 1 ) [2025-03-12 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:41:05' and `end` < '2025-03-12 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:41:18] Production.INFO: count ==5842 [2025-03-12 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:41:05 - End Time 2025-03-12 15:41:05 [2025-03-12 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665155', 'tblTempUsageDetail_20' ) start [2025-03-12 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665155', 'tblTempUsageDetail_20' ) end [2025-03-12 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665155', 'tblTempVendorCDR_20' ) start [2025-03-12 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665155', 'tblTempVendorCDR_20' ) end [2025-03-12 15:41:21] Production.INFO: ProcessCDR(1,14665155,1,1,2) [2025-03-12 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665155', 'tblTempUsageDetail_20' ) start [2025-03-12 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665155', 'tblTempUsageDetail_20' ) end [2025-03-12 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:41:26] Production.INFO: ==1920== Releasing lock... [2025-03-12 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:41:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:42:05 [end_date_ymd] => 2025-03-12 15:42:05 [RateCDR] => 1 ) [2025-03-12 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:42:05' and `end` < '2025-03-12 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:42:19] Production.INFO: count ==5840 [2025-03-12 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:42:05 - End Time 2025-03-12 15:42:05 [2025-03-12 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665160', 'tblTempUsageDetail_20' ) start [2025-03-12 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665160', 'tblTempUsageDetail_20' ) end [2025-03-12 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665160', 'tblTempVendorCDR_20' ) start [2025-03-12 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665160', 'tblTempVendorCDR_20' ) end [2025-03-12 15:42:21] Production.INFO: ProcessCDR(1,14665160,1,1,2) [2025-03-12 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665160', 'tblTempUsageDetail_20' ) start [2025-03-12 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665160', 'tblTempUsageDetail_20' ) end [2025-03-12 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:42:26] Production.INFO: ==2027== Releasing lock... [2025-03-12 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:42:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:43:05 [end_date_ymd] => 2025-03-12 15:43:05 [RateCDR] => 1 ) [2025-03-12 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:43:05' and `end` < '2025-03-12 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:43:19] Production.INFO: count ==5863 [2025-03-12 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:43:05 - End Time 2025-03-12 15:43:05 [2025-03-12 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665165', 'tblTempUsageDetail_20' ) start [2025-03-12 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665165', 'tblTempUsageDetail_20' ) end [2025-03-12 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665165', 'tblTempVendorCDR_20' ) start [2025-03-12 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665165', 'tblTempVendorCDR_20' ) end [2025-03-12 15:43:21] Production.INFO: ProcessCDR(1,14665165,1,1,2) [2025-03-12 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665165', 'tblTempUsageDetail_20' ) start [2025-03-12 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665165', 'tblTempUsageDetail_20' ) end [2025-03-12 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:43:27] Production.INFO: ==2125== Releasing lock... [2025-03-12 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:43:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:44:06 [end_date_ymd] => 2025-03-12 15:44:06 [RateCDR] => 1 ) [2025-03-12 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:44:06' and `end` < '2025-03-12 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:44:19] Production.INFO: count ==5877 [2025-03-12 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:44:06 - End Time 2025-03-12 15:44:06 [2025-03-12 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665170', 'tblTempUsageDetail_20' ) start [2025-03-12 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665170', 'tblTempUsageDetail_20' ) end [2025-03-12 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665170', 'tblTempVendorCDR_20' ) start [2025-03-12 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665170', 'tblTempVendorCDR_20' ) end [2025-03-12 15:44:22] Production.INFO: ProcessCDR(1,14665170,1,1,2) [2025-03-12 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665170', 'tblTempUsageDetail_20' ) start [2025-03-12 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665170', 'tblTempUsageDetail_20' ) end [2025-03-12 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:44:27] Production.INFO: ==2227== Releasing lock... [2025-03-12 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:44:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:45:05 [end_date_ymd] => 2025-03-12 15:45:05 [RateCDR] => 1 ) [2025-03-12 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:45:05' and `end` < '2025-03-12 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:45:18] Production.INFO: count ==5893 [2025-03-12 15:45:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:45:05 - End Time 2025-03-12 15:45:05 [2025-03-12 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665175', 'tblTempUsageDetail_20' ) start [2025-03-12 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665175', 'tblTempUsageDetail_20' ) end [2025-03-12 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665175', 'tblTempVendorCDR_20' ) start [2025-03-12 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665175', 'tblTempVendorCDR_20' ) end [2025-03-12 15:45:21] Production.INFO: ProcessCDR(1,14665175,1,1,2) [2025-03-12 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665175', 'tblTempUsageDetail_20' ) start [2025-03-12 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665175', 'tblTempUsageDetail_20' ) end [2025-03-12 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:45:26] Production.INFO: ==2326== Releasing lock... [2025-03-12 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:45:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:46:05 [end_date_ymd] => 2025-03-12 15:46:05 [RateCDR] => 1 ) [2025-03-12 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:46:05' and `end` < '2025-03-12 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:46:18] Production.INFO: count ==5894 [2025-03-12 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:46:05 - End Time 2025-03-12 15:46:05 [2025-03-12 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665180', 'tblTempUsageDetail_20' ) start [2025-03-12 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665180', 'tblTempUsageDetail_20' ) end [2025-03-12 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665180', 'tblTempVendorCDR_20' ) start [2025-03-12 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665180', 'tblTempVendorCDR_20' ) end [2025-03-12 15:46:21] Production.INFO: ProcessCDR(1,14665180,1,1,2) [2025-03-12 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665180', 'tblTempUsageDetail_20' ) start [2025-03-12 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665180', 'tblTempUsageDetail_20' ) end [2025-03-12 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:46:26] Production.INFO: ==2428== Releasing lock... [2025-03-12 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:46:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:47:05 [end_date_ymd] => 2025-03-12 15:47:05 [RateCDR] => 1 ) [2025-03-12 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:47:05' and `end` < '2025-03-12 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:47:19] Production.INFO: count ==5883 [2025-03-12 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:47:05 - End Time 2025-03-12 15:47:05 [2025-03-12 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665185', 'tblTempUsageDetail_20' ) start [2025-03-12 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665185', 'tblTempUsageDetail_20' ) end [2025-03-12 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665185', 'tblTempVendorCDR_20' ) start [2025-03-12 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665185', 'tblTempVendorCDR_20' ) end [2025-03-12 15:47:21] Production.INFO: ProcessCDR(1,14665185,1,1,2) [2025-03-12 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665185', 'tblTempUsageDetail_20' ) start [2025-03-12 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665185', 'tblTempUsageDetail_20' ) end [2025-03-12 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:47:27] Production.INFO: ==2530== Releasing lock... [2025-03-12 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:47:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:48:05 [end_date_ymd] => 2025-03-12 15:48:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:48:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:48:18] Production.INFO: count ==5876 [2025-03-12 15:48:20] Production.ERROR: pbx CDR StartTime 2025-03-12 12:48:05 - End Time 2025-03-12 15:48:05 [2025-03-12 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665190', 'tblTempUsageDetail_20' ) start [2025-03-12 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665190', 'tblTempUsageDetail_20' ) end [2025-03-12 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665190', 'tblTempVendorCDR_20' ) start [2025-03-12 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665190', 'tblTempVendorCDR_20' ) end [2025-03-12 15:48:20] Production.INFO: ProcessCDR(1,14665190,1,1,2) [2025-03-12 15:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665190', 'tblTempUsageDetail_20' ) start [2025-03-12 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665190', 'tblTempUsageDetail_20' ) end [2025-03-12 15:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:48:25] Production.INFO: ==2631== Releasing lock... [2025-03-12 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:48:25] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:49:05 [end_date_ymd] => 2025-03-12 15:49:05 [RateCDR] => 1 ) [2025-03-12 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:49:05' and `end` < '2025-03-12 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:49:18] Production.INFO: count ==5872 [2025-03-12 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:49:05 - End Time 2025-03-12 15:49:05 [2025-03-12 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665195', 'tblTempUsageDetail_20' ) start [2025-03-12 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665195', 'tblTempUsageDetail_20' ) end [2025-03-12 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665195', 'tblTempVendorCDR_20' ) start [2025-03-12 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665195', 'tblTempVendorCDR_20' ) end [2025-03-12 15:49:21] Production.INFO: ProcessCDR(1,14665195,1,1,2) [2025-03-12 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665195', 'tblTempUsageDetail_20' ) start [2025-03-12 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665195', 'tblTempUsageDetail_20' ) end [2025-03-12 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:49:26] Production.INFO: ==2741== Releasing lock... [2025-03-12 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:49:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:50:06 [end_date_ymd] => 2025-03-12 15:50:06 [RateCDR] => 1 ) [2025-03-12 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:50:06' and `end` < '2025-03-12 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:50:19] Production.INFO: count ==5878 [2025-03-12 15:50:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:50:06 - End Time 2025-03-12 15:50:06 [2025-03-12 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665201', 'tblTempUsageDetail_20' ) start [2025-03-12 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665201', 'tblTempUsageDetail_20' ) end [2025-03-12 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665201', 'tblTempVendorCDR_20' ) start [2025-03-12 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665201', 'tblTempVendorCDR_20' ) end [2025-03-12 15:50:22] Production.INFO: ProcessCDR(1,14665201,1,1,2) [2025-03-12 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665201', 'tblTempUsageDetail_20' ) start [2025-03-12 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665201', 'tblTempUsageDetail_20' ) end [2025-03-12 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:50:27] Production.INFO: ==2852== Releasing lock... [2025-03-12 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:50:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:51:05 [end_date_ymd] => 2025-03-12 15:51:05 [RateCDR] => 1 ) [2025-03-12 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:51:05' and `end` < '2025-03-12 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:51:18] Production.INFO: count ==5892 [2025-03-12 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:51:05 - End Time 2025-03-12 15:51:05 [2025-03-12 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665206', 'tblTempUsageDetail_20' ) start [2025-03-12 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665206', 'tblTempUsageDetail_20' ) end [2025-03-12 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665206', 'tblTempVendorCDR_20' ) start [2025-03-12 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665206', 'tblTempVendorCDR_20' ) end [2025-03-12 15:51:21] Production.INFO: ProcessCDR(1,14665206,1,1,2) [2025-03-12 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665206', 'tblTempUsageDetail_20' ) start [2025-03-12 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665206', 'tblTempUsageDetail_20' ) end [2025-03-12 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:51:26] Production.INFO: ==2958== Releasing lock... [2025-03-12 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:51:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:52:05 [end_date_ymd] => 2025-03-12 15:52:05 [RateCDR] => 1 ) [2025-03-12 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:52:05' and `end` < '2025-03-12 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:52:19] Production.INFO: count ==5923 [2025-03-12 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:52:05 - End Time 2025-03-12 15:52:05 [2025-03-12 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665211', 'tblTempUsageDetail_20' ) start [2025-03-12 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665211', 'tblTempUsageDetail_20' ) end [2025-03-12 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665211', 'tblTempVendorCDR_20' ) start [2025-03-12 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665211', 'tblTempVendorCDR_20' ) end [2025-03-12 15:52:21] Production.INFO: ProcessCDR(1,14665211,1,1,2) [2025-03-12 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665211', 'tblTempUsageDetail_20' ) start [2025-03-12 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665211', 'tblTempUsageDetail_20' ) end [2025-03-12 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:52:26] Production.INFO: ==3066== Releasing lock... [2025-03-12 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:52:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:53:05 [end_date_ymd] => 2025-03-12 15:53:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:53:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:53:19] Production.INFO: count ==5913 [2025-03-12 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-12 12:53:05 - End Time 2025-03-12 15:53:05 [2025-03-12 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665216', 'tblTempUsageDetail_20' ) start [2025-03-12 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665216', 'tblTempUsageDetail_20' ) end [2025-03-12 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665216', 'tblTempVendorCDR_20' ) start [2025-03-12 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665216', 'tblTempVendorCDR_20' ) end [2025-03-12 15:53:22] Production.INFO: ProcessCDR(1,14665216,1,1,2) [2025-03-12 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665216', 'tblTempUsageDetail_20' ) start [2025-03-12 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665216', 'tblTempUsageDetail_20' ) end [2025-03-12 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:53:27] Production.INFO: ==3215== Releasing lock... [2025-03-12 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:54:05 [end_date_ymd] => 2025-03-12 15:54:05 [RateCDR] => 1 ) [2025-03-12 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:54:05' and `end` < '2025-03-12 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:54:18] Production.INFO: count ==5917 [2025-03-12 15:54:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:54:05 - End Time 2025-03-12 15:54:05 [2025-03-12 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665221', 'tblTempUsageDetail_20' ) start [2025-03-12 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665221', 'tblTempUsageDetail_20' ) end [2025-03-12 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665221', 'tblTempVendorCDR_20' ) start [2025-03-12 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665221', 'tblTempVendorCDR_20' ) end [2025-03-12 15:54:21] Production.INFO: ProcessCDR(1,14665221,1,1,2) [2025-03-12 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665221', 'tblTempUsageDetail_20' ) start [2025-03-12 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665221', 'tblTempUsageDetail_20' ) end [2025-03-12 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:54:26] Production.INFO: ==3317== Releasing lock... [2025-03-12 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:54:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:55:05 [end_date_ymd] => 2025-03-12 15:55:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:55:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:55:19] Production.INFO: count ==5981 [2025-03-12 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:55:05 - End Time 2025-03-12 15:55:05 [2025-03-12 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665226', 'tblTempUsageDetail_20' ) start [2025-03-12 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665226', 'tblTempUsageDetail_20' ) end [2025-03-12 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665226', 'tblTempVendorCDR_20' ) start [2025-03-12 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665226', 'tblTempVendorCDR_20' ) end [2025-03-12 15:55:21] Production.INFO: ProcessCDR(1,14665226,1,1,2) [2025-03-12 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665226', 'tblTempUsageDetail_20' ) start [2025-03-12 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665226', 'tblTempUsageDetail_20' ) end [2025-03-12 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:55:26] Production.INFO: ==3418== Releasing lock... [2025-03-12 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:55:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:56:05 [end_date_ymd] => 2025-03-12 15:56:05 [RateCDR] => 1 ) [2025-03-12 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:56:05' and `end` < '2025-03-12 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:56:18] Production.INFO: count ==5985 [2025-03-12 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:56:05 - End Time 2025-03-12 15:56:05 [2025-03-12 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665231', 'tblTempUsageDetail_20' ) start [2025-03-12 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665231', 'tblTempUsageDetail_20' ) end [2025-03-12 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665231', 'tblTempVendorCDR_20' ) start [2025-03-12 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665231', 'tblTempVendorCDR_20' ) end [2025-03-12 15:56:21] Production.INFO: ProcessCDR(1,14665231,1,1,2) [2025-03-12 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665231', 'tblTempUsageDetail_20' ) start [2025-03-12 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665231', 'tblTempUsageDetail_20' ) end [2025-03-12 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:56:26] Production.INFO: ==3525== Releasing lock... [2025-03-12 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:56:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:57:05 [end_date_ymd] => 2025-03-12 15:57:05 [RateCDR] => 1 ) [2025-03-12 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:57:05' and `end` < '2025-03-12 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:57:19] Production.INFO: count ==5976 [2025-03-12 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:57:05 - End Time 2025-03-12 15:57:05 [2025-03-12 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665236', 'tblTempUsageDetail_20' ) start [2025-03-12 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665236', 'tblTempUsageDetail_20' ) end [2025-03-12 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665236', 'tblTempVendorCDR_20' ) start [2025-03-12 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665236', 'tblTempVendorCDR_20' ) end [2025-03-12 15:57:21] Production.INFO: ProcessCDR(1,14665236,1,1,2) [2025-03-12 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665236', 'tblTempUsageDetail_20' ) start [2025-03-12 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665236', 'tblTempUsageDetail_20' ) end [2025-03-12 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:57:26] Production.INFO: ==3639== Releasing lock... [2025-03-12 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:57:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:58:05 [end_date_ymd] => 2025-03-12 15:58:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 12:58:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 15:58:18] Production.INFO: count ==5982 [2025-03-12 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:58:05 - End Time 2025-03-12 15:58:05 [2025-03-12 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665241', 'tblTempUsageDetail_20' ) start [2025-03-12 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665241', 'tblTempUsageDetail_20' ) end [2025-03-12 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665241', 'tblTempVendorCDR_20' ) start [2025-03-12 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665241', 'tblTempVendorCDR_20' ) end [2025-03-12 15:58:21] Production.INFO: ProcessCDR(1,14665241,1,1,2) [2025-03-12 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665241', 'tblTempUsageDetail_20' ) start [2025-03-12 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665241', 'tblTempUsageDetail_20' ) end [2025-03-12 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:58:26] Production.INFO: ==3738== Releasing lock... [2025-03-12 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:58:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 12:59:05 [end_date_ymd] => 2025-03-12 15:59:05 [RateCDR] => 1 ) [2025-03-12 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 12:59:05' and `end` < '2025-03-12 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 15:59:18] Production.INFO: count ==5997 [2025-03-12 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 12:59:05 - End Time 2025-03-12 15:59:05 [2025-03-12 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665246', 'tblTempUsageDetail_20' ) start [2025-03-12 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665246', 'tblTempUsageDetail_20' ) end [2025-03-12 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665246', 'tblTempVendorCDR_20' ) start [2025-03-12 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665246', 'tblTempVendorCDR_20' ) end [2025-03-12 15:59:21] Production.INFO: ProcessCDR(1,14665246,1,1,2) [2025-03-12 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665246', 'tblTempUsageDetail_20' ) start [2025-03-12 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665246', 'tblTempUsageDetail_20' ) end [2025-03-12 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 15:59:27] Production.INFO: ==3846== Releasing lock... [2025-03-12 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 15:59:27] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:00:06 [end_date_ymd] => 2025-03-12 16:00:06 [RateCDR] => 1 ) [2025-03-12 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:00:06' and `end` < '2025-03-12 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:00:19] Production.INFO: count ==5993 [2025-03-12 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:00:06 - End Time 2025-03-12 16:00:06 [2025-03-12 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665252', 'tblTempUsageDetail_20' ) start [2025-03-12 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665252', 'tblTempUsageDetail_20' ) end [2025-03-12 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665252', 'tblTempVendorCDR_20' ) start [2025-03-12 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665252', 'tblTempVendorCDR_20' ) end [2025-03-12 16:00:22] Production.INFO: ProcessCDR(1,14665252,1,1,2) [2025-03-12 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665252', 'tblTempUsageDetail_20' ) start [2025-03-12 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665252', 'tblTempUsageDetail_20' ) end [2025-03-12 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:00:27] Production.INFO: ==3957== Releasing lock... [2025-03-12 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:00:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:01:06 [end_date_ymd] => 2025-03-12 16:01:06 [RateCDR] => 1 ) [2025-03-12 16:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:01:06' and `end` < '2025-03-12 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:01:19] Production.INFO: count ==6004 [2025-03-12 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:01:06 - End Time 2025-03-12 16:01:06 [2025-03-12 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665257', 'tblTempUsageDetail_20' ) start [2025-03-12 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665257', 'tblTempUsageDetail_20' ) end [2025-03-12 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665257', 'tblTempVendorCDR_20' ) start [2025-03-12 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665257', 'tblTempVendorCDR_20' ) end [2025-03-12 16:01:22] Production.INFO: ProcessCDR(1,14665257,1,1,2) [2025-03-12 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665257', 'tblTempUsageDetail_20' ) start [2025-03-12 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665257', 'tblTempUsageDetail_20' ) end [2025-03-12 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:01:27] Production.INFO: ==4080== Releasing lock... [2025-03-12 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:01:27] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:02:06 [end_date_ymd] => 2025-03-12 16:02:06 [RateCDR] => 1 ) [2025-03-12 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:02:06' and `end` < '2025-03-12 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:02:19] Production.INFO: count ==6009 [2025-03-12 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:02:06 - End Time 2025-03-12 16:02:06 [2025-03-12 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665262', 'tblTempUsageDetail_20' ) start [2025-03-12 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665262', 'tblTempUsageDetail_20' ) end [2025-03-12 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665262', 'tblTempVendorCDR_20' ) start [2025-03-12 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665262', 'tblTempVendorCDR_20' ) end [2025-03-12 16:02:22] Production.INFO: ProcessCDR(1,14665262,1,1,2) [2025-03-12 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665262', 'tblTempUsageDetail_20' ) start [2025-03-12 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665262', 'tblTempUsageDetail_20' ) end [2025-03-12 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:02:27] Production.INFO: ==4184== Releasing lock... [2025-03-12 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:02:27] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:03:05 [end_date_ymd] => 2025-03-12 16:03:05 [RateCDR] => 1 ) [2025-03-12 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:03:05' and `end` < '2025-03-12 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:03:18] Production.INFO: count ==5999 [2025-03-12 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:03:05 - End Time 2025-03-12 16:03:05 [2025-03-12 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665267', 'tblTempUsageDetail_20' ) start [2025-03-12 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665267', 'tblTempUsageDetail_20' ) end [2025-03-12 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665267', 'tblTempVendorCDR_20' ) start [2025-03-12 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665267', 'tblTempVendorCDR_20' ) end [2025-03-12 16:03:21] Production.INFO: ProcessCDR(1,14665267,1,1,2) [2025-03-12 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665267', 'tblTempUsageDetail_20' ) start [2025-03-12 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665267', 'tblTempUsageDetail_20' ) end [2025-03-12 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:03:26] Production.INFO: ==4293== Releasing lock... [2025-03-12 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:03:26] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:04:06 [end_date_ymd] => 2025-03-12 16:04:06 [RateCDR] => 1 ) [2025-03-12 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:04:06' and `end` < '2025-03-12 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:04:20] Production.INFO: count ==6020 [2025-03-12 16:04:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:04:06 - End Time 2025-03-12 16:04:06 [2025-03-12 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665272', 'tblTempUsageDetail_20' ) start [2025-03-12 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665272', 'tblTempUsageDetail_20' ) end [2025-03-12 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665272', 'tblTempVendorCDR_20' ) start [2025-03-12 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665272', 'tblTempVendorCDR_20' ) end [2025-03-12 16:04:23] Production.INFO: ProcessCDR(1,14665272,1,1,2) [2025-03-12 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665272', 'tblTempUsageDetail_20' ) start [2025-03-12 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665272', 'tblTempUsageDetail_20' ) end [2025-03-12 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:04:28] Production.INFO: ==4400== Releasing lock... [2025-03-12 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:04:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:05:05 [end_date_ymd] => 2025-03-12 16:05:05 [RateCDR] => 1 ) [2025-03-12 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:05:05' and `end` < '2025-03-12 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:05:19] Production.INFO: count ==6052 [2025-03-12 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:05:05 - End Time 2025-03-12 16:05:05 [2025-03-12 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665277', 'tblTempUsageDetail_20' ) start [2025-03-12 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665277', 'tblTempUsageDetail_20' ) end [2025-03-12 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665277', 'tblTempVendorCDR_20' ) start [2025-03-12 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665277', 'tblTempVendorCDR_20' ) end [2025-03-12 16:05:21] Production.INFO: ProcessCDR(1,14665277,1,1,2) [2025-03-12 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665277', 'tblTempUsageDetail_20' ) start [2025-03-12 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665277', 'tblTempUsageDetail_20' ) end [2025-03-12 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:05:27] Production.INFO: ==4501== Releasing lock... [2025-03-12 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:05:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:06:06 [end_date_ymd] => 2025-03-12 16:06:06 [RateCDR] => 1 ) [2025-03-12 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:06:06' and `end` < '2025-03-12 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:06:19] Production.INFO: count ==6054 [2025-03-12 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:06:06 - End Time 2025-03-12 16:06:06 [2025-03-12 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665282', 'tblTempUsageDetail_20' ) start [2025-03-12 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665282', 'tblTempUsageDetail_20' ) end [2025-03-12 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665282', 'tblTempVendorCDR_20' ) start [2025-03-12 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665282', 'tblTempVendorCDR_20' ) end [2025-03-12 16:06:22] Production.INFO: ProcessCDR(1,14665282,1,1,2) [2025-03-12 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665282', 'tblTempUsageDetail_20' ) start [2025-03-12 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665282', 'tblTempUsageDetail_20' ) end [2025-03-12 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:06:27] Production.INFO: ==4618== Releasing lock... [2025-03-12 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:06:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:07:04 [end_date_ymd] => 2025-03-12 16:07:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:07:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:07:18] Production.INFO: count ==6057 [2025-03-12 16:07:20] Production.ERROR: pbx CDR StartTime 2025-03-12 13:07:04 - End Time 2025-03-12 16:07:04 [2025-03-12 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665287', 'tblTempUsageDetail_20' ) start [2025-03-12 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665287', 'tblTempUsageDetail_20' ) end [2025-03-12 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665287', 'tblTempVendorCDR_20' ) start [2025-03-12 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665287', 'tblTempVendorCDR_20' ) end [2025-03-12 16:07:20] Production.INFO: ProcessCDR(1,14665287,1,1,2) [2025-03-12 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665287', 'tblTempUsageDetail_20' ) start [2025-03-12 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665287', 'tblTempUsageDetail_20' ) end [2025-03-12 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:07:25] Production.INFO: ==4727== Releasing lock... [2025-03-12 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:07:25] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:08:05 [end_date_ymd] => 2025-03-12 16:08:05 [RateCDR] => 1 ) [2025-03-12 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:08:05' and `end` < '2025-03-12 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:08:19] Production.INFO: count ==6064 [2025-03-12 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:08:05 - End Time 2025-03-12 16:08:05 [2025-03-12 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665292', 'tblTempUsageDetail_20' ) start [2025-03-12 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665292', 'tblTempUsageDetail_20' ) end [2025-03-12 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665292', 'tblTempVendorCDR_20' ) start [2025-03-12 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665292', 'tblTempVendorCDR_20' ) end [2025-03-12 16:08:22] Production.INFO: ProcessCDR(1,14665292,1,1,2) [2025-03-12 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665292', 'tblTempUsageDetail_20' ) start [2025-03-12 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665292', 'tblTempUsageDetail_20' ) end [2025-03-12 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:08:27] Production.INFO: ==4833== Releasing lock... [2025-03-12 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:08:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:09:05 [end_date_ymd] => 2025-03-12 16:09:05 [RateCDR] => 1 ) [2025-03-12 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:09:05' and `end` < '2025-03-12 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:09:18] Production.INFO: count ==6056 [2025-03-12 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:09:05 - End Time 2025-03-12 16:09:05 [2025-03-12 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665297', 'tblTempUsageDetail_20' ) start [2025-03-12 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665297', 'tblTempUsageDetail_20' ) end [2025-03-12 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665297', 'tblTempVendorCDR_20' ) start [2025-03-12 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665297', 'tblTempVendorCDR_20' ) end [2025-03-12 16:09:21] Production.INFO: ProcessCDR(1,14665297,1,1,2) [2025-03-12 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665297', 'tblTempUsageDetail_20' ) start [2025-03-12 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665297', 'tblTempUsageDetail_20' ) end [2025-03-12 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:09:27] Production.INFO: ==4976== Releasing lock... [2025-03-12 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:09:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:10:06 [end_date_ymd] => 2025-03-12 16:10:06 [RateCDR] => 1 ) [2025-03-12 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:10:06' and `end` < '2025-03-12 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:10:20] Production.INFO: count ==6046 [2025-03-12 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:10:06 - End Time 2025-03-12 16:10:06 [2025-03-12 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665303', 'tblTempUsageDetail_20' ) start [2025-03-12 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665303', 'tblTempUsageDetail_20' ) end [2025-03-12 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665303', 'tblTempVendorCDR_20' ) start [2025-03-12 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665303', 'tblTempVendorCDR_20' ) end [2025-03-12 16:10:23] Production.INFO: ProcessCDR(1,14665303,1,1,2) [2025-03-12 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665303', 'tblTempUsageDetail_20' ) start [2025-03-12 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665303', 'tblTempUsageDetail_20' ) end [2025-03-12 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:10:28] Production.INFO: ==5084== Releasing lock... [2025-03-12 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:10:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:11:05 [end_date_ymd] => 2025-03-12 16:11:05 [RateCDR] => 1 ) [2025-03-12 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:11:05' and `end` < '2025-03-12 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:11:18] Production.INFO: count ==6050 [2025-03-12 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:11:05 - End Time 2025-03-12 16:11:05 [2025-03-12 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665308', 'tblTempUsageDetail_20' ) start [2025-03-12 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665308', 'tblTempUsageDetail_20' ) end [2025-03-12 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665308', 'tblTempVendorCDR_20' ) start [2025-03-12 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665308', 'tblTempVendorCDR_20' ) end [2025-03-12 16:11:21] Production.INFO: ProcessCDR(1,14665308,1,1,2) [2025-03-12 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665308', 'tblTempUsageDetail_20' ) start [2025-03-12 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665308', 'tblTempUsageDetail_20' ) end [2025-03-12 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:11:26] Production.INFO: ==5195== Releasing lock... [2025-03-12 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:11:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:12:05 [end_date_ymd] => 2025-03-12 16:12:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:12:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:12:19] Production.INFO: count ==6052 [2025-03-12 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:12:05 - End Time 2025-03-12 16:12:05 [2025-03-12 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665313', 'tblTempUsageDetail_20' ) start [2025-03-12 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665313', 'tblTempUsageDetail_20' ) end [2025-03-12 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665313', 'tblTempVendorCDR_20' ) start [2025-03-12 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665313', 'tblTempVendorCDR_20' ) end [2025-03-12 16:12:21] Production.INFO: ProcessCDR(1,14665313,1,1,2) [2025-03-12 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665313', 'tblTempUsageDetail_20' ) start [2025-03-12 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665313', 'tblTempUsageDetail_20' ) end [2025-03-12 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:12:26] Production.INFO: ==5297== Releasing lock... [2025-03-12 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:12:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:13:05 [end_date_ymd] => 2025-03-12 16:13:05 [RateCDR] => 1 ) [2025-03-12 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:13:05' and `end` < '2025-03-12 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:13:18] Production.INFO: count ==6052 [2025-03-12 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:13:05 - End Time 2025-03-12 16:13:05 [2025-03-12 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665318', 'tblTempUsageDetail_20' ) start [2025-03-12 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665318', 'tblTempUsageDetail_20' ) end [2025-03-12 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665318', 'tblTempVendorCDR_20' ) start [2025-03-12 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665318', 'tblTempVendorCDR_20' ) end [2025-03-12 16:13:21] Production.INFO: ProcessCDR(1,14665318,1,1,2) [2025-03-12 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665318', 'tblTempUsageDetail_20' ) start [2025-03-12 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665318', 'tblTempUsageDetail_20' ) end [2025-03-12 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:13:26] Production.INFO: ==5412== Releasing lock... [2025-03-12 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:13:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:14:05 [end_date_ymd] => 2025-03-12 16:14:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:14:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:14:19] Production.INFO: count ==6057 [2025-03-12 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:14:05 - End Time 2025-03-12 16:14:05 [2025-03-12 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665323', 'tblTempUsageDetail_20' ) start [2025-03-12 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665323', 'tblTempUsageDetail_20' ) end [2025-03-12 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665323', 'tblTempVendorCDR_20' ) start [2025-03-12 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665323', 'tblTempVendorCDR_20' ) end [2025-03-12 16:14:22] Production.INFO: ProcessCDR(1,14665323,1,1,2) [2025-03-12 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665323', 'tblTempUsageDetail_20' ) start [2025-03-12 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665323', 'tblTempUsageDetail_20' ) end [2025-03-12 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:14:25] Production.INFO: ==5516== Releasing lock... [2025-03-12 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:14:25] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:15:05 [end_date_ymd] => 2025-03-12 16:15:05 [RateCDR] => 1 ) [2025-03-12 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:15:05' and `end` < '2025-03-12 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:15:19] Production.INFO: count ==6060 [2025-03-12 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:15:05 - End Time 2025-03-12 16:15:05 [2025-03-12 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665328', 'tblTempUsageDetail_20' ) start [2025-03-12 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665328', 'tblTempUsageDetail_20' ) end [2025-03-12 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665328', 'tblTempVendorCDR_20' ) start [2025-03-12 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665328', 'tblTempVendorCDR_20' ) end [2025-03-12 16:15:21] Production.INFO: ProcessCDR(1,14665328,1,1,2) [2025-03-12 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665328', 'tblTempUsageDetail_20' ) start [2025-03-12 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665328', 'tblTempUsageDetail_20' ) end [2025-03-12 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:15:26] Production.INFO: ==5625== Releasing lock... [2025-03-12 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:15:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:16:05 [end_date_ymd] => 2025-03-12 16:16:05 [RateCDR] => 1 ) [2025-03-12 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:16:05' and `end` < '2025-03-12 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:16:19] Production.INFO: count ==6099 [2025-03-12 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:16:05 - End Time 2025-03-12 16:16:05 [2025-03-12 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665333', 'tblTempUsageDetail_20' ) start [2025-03-12 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665333', 'tblTempUsageDetail_20' ) end [2025-03-12 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665333', 'tblTempVendorCDR_20' ) start [2025-03-12 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665333', 'tblTempVendorCDR_20' ) end [2025-03-12 16:16:21] Production.INFO: ProcessCDR(1,14665333,1,1,2) [2025-03-12 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665333', 'tblTempUsageDetail_20' ) start [2025-03-12 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665333', 'tblTempUsageDetail_20' ) end [2025-03-12 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:16:26] Production.INFO: ==5728== Releasing lock... [2025-03-12 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:16:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:17:06 [end_date_ymd] => 2025-03-12 16:17:06 [RateCDR] => 1 ) [2025-03-12 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:17:06' and `end` < '2025-03-12 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:17:19] Production.INFO: count ==6102 [2025-03-12 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:17:06 - End Time 2025-03-12 16:17:06 [2025-03-12 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665338', 'tblTempUsageDetail_20' ) start [2025-03-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665338', 'tblTempUsageDetail_20' ) end [2025-03-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665338', 'tblTempVendorCDR_20' ) start [2025-03-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665338', 'tblTempVendorCDR_20' ) end [2025-03-12 16:17:22] Production.INFO: ProcessCDR(1,14665338,1,1,2) [2025-03-12 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665338', 'tblTempUsageDetail_20' ) start [2025-03-12 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665338', 'tblTempUsageDetail_20' ) end [2025-03-12 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:17:27] Production.INFO: ==5833== Releasing lock... [2025-03-12 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:17:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:18:05 [end_date_ymd] => 2025-03-12 16:18:05 [RateCDR] => 1 ) [2025-03-12 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:18:05' and `end` < '2025-03-12 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:18:18] Production.INFO: count ==6107 [2025-03-12 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:18:05 - End Time 2025-03-12 16:18:05 [2025-03-12 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665343', 'tblTempUsageDetail_20' ) start [2025-03-12 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665343', 'tblTempUsageDetail_20' ) end [2025-03-12 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665343', 'tblTempVendorCDR_20' ) start [2025-03-12 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665343', 'tblTempVendorCDR_20' ) end [2025-03-12 16:18:21] Production.INFO: ProcessCDR(1,14665343,1,1,2) [2025-03-12 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665343', 'tblTempUsageDetail_20' ) start [2025-03-12 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665343', 'tblTempUsageDetail_20' ) end [2025-03-12 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:18:26] Production.INFO: ==5924== Releasing lock... [2025-03-12 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:18:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:19:05 [end_date_ymd] => 2025-03-12 16:19:05 [RateCDR] => 1 ) [2025-03-12 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:19:05' and `end` < '2025-03-12 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:19:18] Production.INFO: count ==6087 [2025-03-12 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:19:05 - End Time 2025-03-12 16:19:05 [2025-03-12 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665348', 'tblTempUsageDetail_20' ) start [2025-03-12 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665348', 'tblTempUsageDetail_20' ) end [2025-03-12 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665348', 'tblTempVendorCDR_20' ) start [2025-03-12 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665348', 'tblTempVendorCDR_20' ) end [2025-03-12 16:19:21] Production.INFO: ProcessCDR(1,14665348,1,1,2) [2025-03-12 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665348', 'tblTempUsageDetail_20' ) start [2025-03-12 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665348', 'tblTempUsageDetail_20' ) end [2025-03-12 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:19:26] Production.INFO: ==6021== Releasing lock... [2025-03-12 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:19:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:20:06 [end_date_ymd] => 2025-03-12 16:20:06 [RateCDR] => 1 ) [2025-03-12 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:20:06' and `end` < '2025-03-12 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:20:19] Production.INFO: count ==6082 [2025-03-12 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:20:06 - End Time 2025-03-12 16:20:06 [2025-03-12 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665353', 'tblTempUsageDetail_20' ) start [2025-03-12 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665353', 'tblTempUsageDetail_20' ) end [2025-03-12 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665353', 'tblTempVendorCDR_20' ) start [2025-03-12 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665353', 'tblTempVendorCDR_20' ) end [2025-03-12 16:20:22] Production.INFO: ProcessCDR(1,14665353,1,1,2) [2025-03-12 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665353', 'tblTempUsageDetail_20' ) start [2025-03-12 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665353', 'tblTempUsageDetail_20' ) end [2025-03-12 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:20:27] Production.INFO: ==6110== Releasing lock... [2025-03-12 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:20:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:21:05 [end_date_ymd] => 2025-03-12 16:21:05 [RateCDR] => 1 ) [2025-03-12 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:21:05' and `end` < '2025-03-12 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:21:19] Production.INFO: count ==6065 [2025-03-12 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:21:05 - End Time 2025-03-12 16:21:05 [2025-03-12 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665359', 'tblTempUsageDetail_20' ) start [2025-03-12 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665359', 'tblTempUsageDetail_20' ) end [2025-03-12 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665359', 'tblTempVendorCDR_20' ) start [2025-03-12 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665359', 'tblTempVendorCDR_20' ) end [2025-03-12 16:21:21] Production.INFO: ProcessCDR(1,14665359,1,1,2) [2025-03-12 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665359', 'tblTempUsageDetail_20' ) start [2025-03-12 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665359', 'tblTempUsageDetail_20' ) end [2025-03-12 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:21:26] Production.INFO: ==6188== Releasing lock... [2025-03-12 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:21:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:22:05 [end_date_ymd] => 2025-03-12 16:22:05 [RateCDR] => 1 ) [2025-03-12 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:22:05' and `end` < '2025-03-12 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:22:18] Production.INFO: count ==6073 [2025-03-12 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:22:05 - End Time 2025-03-12 16:22:05 [2025-03-12 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665364', 'tblTempUsageDetail_20' ) start [2025-03-12 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665364', 'tblTempUsageDetail_20' ) end [2025-03-12 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665364', 'tblTempVendorCDR_20' ) start [2025-03-12 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665364', 'tblTempVendorCDR_20' ) end [2025-03-12 16:22:21] Production.INFO: ProcessCDR(1,14665364,1,1,2) [2025-03-12 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665364', 'tblTempUsageDetail_20' ) start [2025-03-12 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665364', 'tblTempUsageDetail_20' ) end [2025-03-12 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:22:26] Production.INFO: ==6273== Releasing lock... [2025-03-12 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:22:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:23:05 [end_date_ymd] => 2025-03-12 16:23:05 [RateCDR] => 1 ) [2025-03-12 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:23:05' and `end` < '2025-03-12 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:23:19] Production.INFO: count ==6049 [2025-03-12 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:23:05 - End Time 2025-03-12 16:23:05 [2025-03-12 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665369', 'tblTempUsageDetail_20' ) start [2025-03-12 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665369', 'tblTempUsageDetail_20' ) end [2025-03-12 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665369', 'tblTempVendorCDR_20' ) start [2025-03-12 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665369', 'tblTempVendorCDR_20' ) end [2025-03-12 16:23:21] Production.INFO: ProcessCDR(1,14665369,1,1,2) [2025-03-12 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665369', 'tblTempUsageDetail_20' ) start [2025-03-12 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665369', 'tblTempUsageDetail_20' ) end [2025-03-12 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:23:27] Production.INFO: ==6358== Releasing lock... [2025-03-12 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:23:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:24:05 [end_date_ymd] => 2025-03-12 16:24:05 [RateCDR] => 1 ) [2025-03-12 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:24:05' and `end` < '2025-03-12 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:24:19] Production.INFO: count ==6019 [2025-03-12 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:24:05 - End Time 2025-03-12 16:24:05 [2025-03-12 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665374', 'tblTempUsageDetail_20' ) start [2025-03-12 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665374', 'tblTempUsageDetail_20' ) end [2025-03-12 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665374', 'tblTempVendorCDR_20' ) start [2025-03-12 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665374', 'tblTempVendorCDR_20' ) end [2025-03-12 16:24:21] Production.INFO: ProcessCDR(1,14665374,1,1,2) [2025-03-12 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665374', 'tblTempUsageDetail_20' ) start [2025-03-12 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665374', 'tblTempUsageDetail_20' ) end [2025-03-12 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:24:26] Production.INFO: ==6470== Releasing lock... [2025-03-12 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:24:26] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:25:05 [end_date_ymd] => 2025-03-12 16:25:05 [RateCDR] => 1 ) [2025-03-12 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:25:05' and `end` < '2025-03-12 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:25:19] Production.INFO: count ==6018 [2025-03-12 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:25:05 - End Time 2025-03-12 16:25:05 [2025-03-12 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665379', 'tblTempUsageDetail_20' ) start [2025-03-12 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665379', 'tblTempUsageDetail_20' ) end [2025-03-12 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665379', 'tblTempVendorCDR_20' ) start [2025-03-12 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665379', 'tblTempVendorCDR_20' ) end [2025-03-12 16:25:21] Production.INFO: ProcessCDR(1,14665379,1,1,2) [2025-03-12 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665379', 'tblTempUsageDetail_20' ) start [2025-03-12 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665379', 'tblTempUsageDetail_20' ) end [2025-03-12 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:25:25] Production.INFO: ==6550== Releasing lock... [2025-03-12 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:25:25] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:26:05 [end_date_ymd] => 2025-03-12 16:26:05 [RateCDR] => 1 ) [2025-03-12 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:26:05' and `end` < '2025-03-12 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:26:18] Production.INFO: count ==6025 [2025-03-12 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:26:05 - End Time 2025-03-12 16:26:05 [2025-03-12 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665384', 'tblTempUsageDetail_20' ) start [2025-03-12 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665384', 'tblTempUsageDetail_20' ) end [2025-03-12 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665384', 'tblTempVendorCDR_20' ) start [2025-03-12 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665384', 'tblTempVendorCDR_20' ) end [2025-03-12 16:26:21] Production.INFO: ProcessCDR(1,14665384,1,1,2) [2025-03-12 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665384', 'tblTempUsageDetail_20' ) start [2025-03-12 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665384', 'tblTempUsageDetail_20' ) end [2025-03-12 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:26:26] Production.INFO: ==6639== Releasing lock... [2025-03-12 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:26:26] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:27:05 [end_date_ymd] => 2025-03-12 16:27:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:27:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:27:19] Production.INFO: count ==6026 [2025-03-12 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:27:05 - End Time 2025-03-12 16:27:05 [2025-03-12 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665389', 'tblTempUsageDetail_20' ) start [2025-03-12 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665389', 'tblTempUsageDetail_20' ) end [2025-03-12 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665389', 'tblTempVendorCDR_20' ) start [2025-03-12 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665389', 'tblTempVendorCDR_20' ) end [2025-03-12 16:27:22] Production.INFO: ProcessCDR(1,14665389,1,1,2) [2025-03-12 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665389', 'tblTempUsageDetail_20' ) start [2025-03-12 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665389', 'tblTempUsageDetail_20' ) end [2025-03-12 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:27:28] Production.INFO: ==6718== Releasing lock... [2025-03-12 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:27:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:28:05 [end_date_ymd] => 2025-03-12 16:28:05 [RateCDR] => 1 ) [2025-03-12 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:28:05' and `end` < '2025-03-12 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:28:18] Production.INFO: count ==6046 [2025-03-12 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:28:05 - End Time 2025-03-12 16:28:05 [2025-03-12 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665394', 'tblTempUsageDetail_20' ) start [2025-03-12 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665394', 'tblTempUsageDetail_20' ) end [2025-03-12 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665394', 'tblTempVendorCDR_20' ) start [2025-03-12 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665394', 'tblTempVendorCDR_20' ) end [2025-03-12 16:28:21] Production.INFO: ProcessCDR(1,14665394,1,1,2) [2025-03-12 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665394', 'tblTempUsageDetail_20' ) start [2025-03-12 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665394', 'tblTempUsageDetail_20' ) end [2025-03-12 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:28:27] Production.INFO: ==6792== Releasing lock... [2025-03-12 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:28:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:29:05 [end_date_ymd] => 2025-03-12 16:29:05 [RateCDR] => 1 ) [2025-03-12 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:29:05' and `end` < '2025-03-12 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:29:18] Production.INFO: count ==6062 [2025-03-12 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:29:05 - End Time 2025-03-12 16:29:05 [2025-03-12 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665399', 'tblTempUsageDetail_20' ) start [2025-03-12 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665399', 'tblTempUsageDetail_20' ) end [2025-03-12 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665399', 'tblTempVendorCDR_20' ) start [2025-03-12 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665399', 'tblTempVendorCDR_20' ) end [2025-03-12 16:29:21] Production.INFO: ProcessCDR(1,14665399,1,1,2) [2025-03-12 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665399', 'tblTempUsageDetail_20' ) start [2025-03-12 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665399', 'tblTempUsageDetail_20' ) end [2025-03-12 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:29:26] Production.INFO: ==6871== Releasing lock... [2025-03-12 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:29:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:30:06 [end_date_ymd] => 2025-03-12 16:30:06 [RateCDR] => 1 ) [2025-03-12 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:30:06' and `end` < '2025-03-12 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:30:19] Production.INFO: count ==6124 [2025-03-12 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:30:06 - End Time 2025-03-12 16:30:06 [2025-03-12 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665404', 'tblTempUsageDetail_20' ) start [2025-03-12 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665404', 'tblTempUsageDetail_20' ) end [2025-03-12 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665404', 'tblTempVendorCDR_20' ) start [2025-03-12 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665404', 'tblTempVendorCDR_20' ) end [2025-03-12 16:30:22] Production.INFO: ProcessCDR(1,14665404,1,1,2) [2025-03-12 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665404', 'tblTempUsageDetail_20' ) start [2025-03-12 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665404', 'tblTempUsageDetail_20' ) end [2025-03-12 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:30:27] Production.INFO: ==6954== Releasing lock... [2025-03-12 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:30:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:31:05 [end_date_ymd] => 2025-03-12 16:31:05 [RateCDR] => 1 ) [2025-03-12 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:31:05' and `end` < '2025-03-12 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:31:19] Production.INFO: count ==6104 [2025-03-12 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:31:05 - End Time 2025-03-12 16:31:05 [2025-03-12 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665410', 'tblTempUsageDetail_20' ) start [2025-03-12 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665410', 'tblTempUsageDetail_20' ) end [2025-03-12 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665410', 'tblTempVendorCDR_20' ) start [2025-03-12 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665410', 'tblTempVendorCDR_20' ) end [2025-03-12 16:31:21] Production.INFO: ProcessCDR(1,14665410,1,1,2) [2025-03-12 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665410', 'tblTempUsageDetail_20' ) start [2025-03-12 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665410', 'tblTempUsageDetail_20' ) end [2025-03-12 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:31:26] Production.INFO: ==7037== Releasing lock... [2025-03-12 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:31:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:32:05 [end_date_ymd] => 2025-03-12 16:32:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:32:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:32:18] Production.INFO: count ==6132 [2025-03-12 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:32:05 - End Time 2025-03-12 16:32:05 [2025-03-12 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665415', 'tblTempUsageDetail_20' ) start [2025-03-12 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665415', 'tblTempUsageDetail_20' ) end [2025-03-12 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665415', 'tblTempVendorCDR_20' ) start [2025-03-12 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665415', 'tblTempVendorCDR_20' ) end [2025-03-12 16:32:21] Production.INFO: ProcessCDR(1,14665415,1,1,2) [2025-03-12 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665415', 'tblTempUsageDetail_20' ) start [2025-03-12 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665415', 'tblTempUsageDetail_20' ) end [2025-03-12 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:32:27] Production.INFO: ==7110== Releasing lock... [2025-03-12 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:32:27] Production.INFO: 74 MB #Memory Used# [2025-03-12 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:33:05 [end_date_ymd] => 2025-03-12 16:33:05 [RateCDR] => 1 ) [2025-03-12 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:33:05' and `end` < '2025-03-12 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:33:18] Production.INFO: count ==6128 [2025-03-12 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:33:05 - End Time 2025-03-12 16:33:05 [2025-03-12 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665420', 'tblTempUsageDetail_20' ) start [2025-03-12 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665420', 'tblTempUsageDetail_20' ) end [2025-03-12 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665420', 'tblTempVendorCDR_20' ) start [2025-03-12 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665420', 'tblTempVendorCDR_20' ) end [2025-03-12 16:33:21] Production.INFO: ProcessCDR(1,14665420,1,1,2) [2025-03-12 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665420', 'tblTempUsageDetail_20' ) start [2025-03-12 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665420', 'tblTempUsageDetail_20' ) end [2025-03-12 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:33:25] Production.INFO: ==7186== Releasing lock... [2025-03-12 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:33:25] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:34:06 [end_date_ymd] => 2025-03-12 16:34:06 [RateCDR] => 1 ) [2025-03-12 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:34:06' and `end` < '2025-03-12 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:34:19] Production.INFO: count ==6106 [2025-03-12 16:34:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:34:06 - End Time 2025-03-12 16:34:06 [2025-03-12 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665425', 'tblTempUsageDetail_20' ) start [2025-03-12 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665425', 'tblTempUsageDetail_20' ) end [2025-03-12 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665425', 'tblTempVendorCDR_20' ) start [2025-03-12 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665425', 'tblTempVendorCDR_20' ) end [2025-03-12 16:34:22] Production.INFO: ProcessCDR(1,14665425,1,1,2) [2025-03-12 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665425', 'tblTempUsageDetail_20' ) start [2025-03-12 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665425', 'tblTempUsageDetail_20' ) end [2025-03-12 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:34:27] Production.INFO: ==7268== Releasing lock... [2025-03-12 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:34:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-12 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:35:05 [end_date_ymd] => 2025-03-12 16:35:05 [RateCDR] => 1 ) [2025-03-12 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:35:05' and `end` < '2025-03-12 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:35:18] Production.INFO: count ==6067 [2025-03-12 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:35:05 - End Time 2025-03-12 16:35:05 [2025-03-12 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665430', 'tblTempUsageDetail_20' ) start [2025-03-12 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665430', 'tblTempUsageDetail_20' ) end [2025-03-12 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665430', 'tblTempVendorCDR_20' ) start [2025-03-12 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665430', 'tblTempVendorCDR_20' ) end [2025-03-12 16:35:21] Production.INFO: ProcessCDR(1,14665430,1,1,2) [2025-03-12 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665430', 'tblTempUsageDetail_20' ) start [2025-03-12 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665430', 'tblTempUsageDetail_20' ) end [2025-03-12 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:35:26] Production.INFO: ==7341== Releasing lock... [2025-03-12 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:35:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:36:06 [end_date_ymd] => 2025-03-12 16:36:06 [RateCDR] => 1 ) [2025-03-12 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:36:06' and `end` < '2025-03-12 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:36:19] Production.INFO: count ==6057 [2025-03-12 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:36:06 - End Time 2025-03-12 16:36:06 [2025-03-12 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665435', 'tblTempUsageDetail_20' ) start [2025-03-12 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665435', 'tblTempUsageDetail_20' ) end [2025-03-12 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665435', 'tblTempVendorCDR_20' ) start [2025-03-12 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665435', 'tblTempVendorCDR_20' ) end [2025-03-12 16:36:22] Production.INFO: ProcessCDR(1,14665435,1,1,2) [2025-03-12 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665435', 'tblTempUsageDetail_20' ) start [2025-03-12 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665435', 'tblTempUsageDetail_20' ) end [2025-03-12 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:36:27] Production.INFO: ==7420== Releasing lock... [2025-03-12 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:36:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:37:05 [end_date_ymd] => 2025-03-12 16:37:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:37:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:37:18] Production.INFO: count ==6072 [2025-03-12 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:37:05 - End Time 2025-03-12 16:37:05 [2025-03-12 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665440', 'tblTempUsageDetail_20' ) start [2025-03-12 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665440', 'tblTempUsageDetail_20' ) end [2025-03-12 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665440', 'tblTempVendorCDR_20' ) start [2025-03-12 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665440', 'tblTempVendorCDR_20' ) end [2025-03-12 16:37:21] Production.INFO: ProcessCDR(1,14665440,1,1,2) [2025-03-12 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665440', 'tblTempUsageDetail_20' ) start [2025-03-12 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665440', 'tblTempUsageDetail_20' ) end [2025-03-12 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:37:26] Production.INFO: ==7496== Releasing lock... [2025-03-12 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:37:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:38:05 [end_date_ymd] => 2025-03-12 16:38:05 [RateCDR] => 1 ) [2025-03-12 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:38:05' and `end` < '2025-03-12 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:38:19] Production.INFO: count ==6081 [2025-03-12 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:38:05 - End Time 2025-03-12 16:38:05 [2025-03-12 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665445', 'tblTempUsageDetail_20' ) start [2025-03-12 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665445', 'tblTempUsageDetail_20' ) end [2025-03-12 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665445', 'tblTempVendorCDR_20' ) start [2025-03-12 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665445', 'tblTempVendorCDR_20' ) end [2025-03-12 16:38:22] Production.INFO: ProcessCDR(1,14665445,1,1,2) [2025-03-12 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665445', 'tblTempUsageDetail_20' ) start [2025-03-12 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665445', 'tblTempUsageDetail_20' ) end [2025-03-12 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:38:26] Production.INFO: ==7578== Releasing lock... [2025-03-12 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:38:26] Production.INFO: 73.5 MB #Memory Used# [2025-03-12 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:39:05 [end_date_ymd] => 2025-03-12 16:39:05 [RateCDR] => 1 ) [2025-03-12 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:39:05' and `end` < '2025-03-12 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:39:18] Production.INFO: count ==6058 [2025-03-12 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:39:05 - End Time 2025-03-12 16:39:05 [2025-03-12 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665450', 'tblTempUsageDetail_20' ) start [2025-03-12 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665450', 'tblTempUsageDetail_20' ) end [2025-03-12 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665450', 'tblTempVendorCDR_20' ) start [2025-03-12 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665450', 'tblTempVendorCDR_20' ) end [2025-03-12 16:39:21] Production.INFO: ProcessCDR(1,14665450,1,1,2) [2025-03-12 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665450', 'tblTempUsageDetail_20' ) start [2025-03-12 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665450', 'tblTempUsageDetail_20' ) end [2025-03-12 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:39:26] Production.INFO: ==7659== Releasing lock... [2025-03-12 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:39:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:40:06 [end_date_ymd] => 2025-03-12 16:40:06 [RateCDR] => 1 ) [2025-03-12 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:40:06' and `end` < '2025-03-12 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:40:20] Production.INFO: count ==6054 [2025-03-12 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:40:06 - End Time 2025-03-12 16:40:06 [2025-03-12 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665455', 'tblTempUsageDetail_20' ) start [2025-03-12 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665455', 'tblTempUsageDetail_20' ) end [2025-03-12 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665455', 'tblTempVendorCDR_20' ) start [2025-03-12 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665455', 'tblTempVendorCDR_20' ) end [2025-03-12 16:40:22] Production.INFO: ProcessCDR(1,14665455,1,1,2) [2025-03-12 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665455', 'tblTempUsageDetail_20' ) start [2025-03-12 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665455', 'tblTempUsageDetail_20' ) end [2025-03-12 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:40:28] Production.INFO: ==7788== Releasing lock... [2025-03-12 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:40:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:41:05 [end_date_ymd] => 2025-03-12 16:41:05 [RateCDR] => 1 ) [2025-03-12 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:41:05' and `end` < '2025-03-12 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:41:18] Production.INFO: count ==6035 [2025-03-12 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:41:05 - End Time 2025-03-12 16:41:05 [2025-03-12 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665461', 'tblTempUsageDetail_20' ) start [2025-03-12 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665461', 'tblTempUsageDetail_20' ) end [2025-03-12 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665461', 'tblTempVendorCDR_20' ) start [2025-03-12 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665461', 'tblTempVendorCDR_20' ) end [2025-03-12 16:41:21] Production.INFO: ProcessCDR(1,14665461,1,1,2) [2025-03-12 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665461', 'tblTempUsageDetail_20' ) start [2025-03-12 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665461', 'tblTempUsageDetail_20' ) end [2025-03-12 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:41:26] Production.INFO: ==7870== Releasing lock... [2025-03-12 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:41:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:42:05 [end_date_ymd] => 2025-03-12 16:42:05 [RateCDR] => 1 ) [2025-03-12 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:42:05' and `end` < '2025-03-12 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:42:19] Production.INFO: count ==6029 [2025-03-12 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:42:05 - End Time 2025-03-12 16:42:05 [2025-03-12 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665466', 'tblTempUsageDetail_20' ) start [2025-03-12 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665466', 'tblTempUsageDetail_20' ) end [2025-03-12 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665466', 'tblTempVendorCDR_20' ) start [2025-03-12 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665466', 'tblTempVendorCDR_20' ) end [2025-03-12 16:42:21] Production.INFO: ProcessCDR(1,14665466,1,1,2) [2025-03-12 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665466', 'tblTempUsageDetail_20' ) start [2025-03-12 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665466', 'tblTempUsageDetail_20' ) end [2025-03-12 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:42:27] Production.INFO: ==7943== Releasing lock... [2025-03-12 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:42:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:43:05 [end_date_ymd] => 2025-03-12 16:43:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:43:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:43:19] Production.INFO: count ==6031 [2025-03-12 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:43:05 - End Time 2025-03-12 16:43:05 [2025-03-12 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665471', 'tblTempUsageDetail_20' ) start [2025-03-12 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665471', 'tblTempUsageDetail_20' ) end [2025-03-12 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665471', 'tblTempVendorCDR_20' ) start [2025-03-12 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665471', 'tblTempVendorCDR_20' ) end [2025-03-12 16:43:22] Production.INFO: ProcessCDR(1,14665471,1,1,2) [2025-03-12 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665471', 'tblTempUsageDetail_20' ) start [2025-03-12 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665471', 'tblTempUsageDetail_20' ) end [2025-03-12 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:43:26] Production.INFO: ==8021== Releasing lock... [2025-03-12 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:43:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:44:06 [end_date_ymd] => 2025-03-12 16:44:06 [RateCDR] => 1 ) [2025-03-12 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:44:06' and `end` < '2025-03-12 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:44:19] Production.INFO: count ==6038 [2025-03-12 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:44:06 - End Time 2025-03-12 16:44:06 [2025-03-12 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665476', 'tblTempUsageDetail_20' ) start [2025-03-12 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665476', 'tblTempUsageDetail_20' ) end [2025-03-12 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665476', 'tblTempVendorCDR_20' ) start [2025-03-12 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665476', 'tblTempVendorCDR_20' ) end [2025-03-12 16:44:22] Production.INFO: ProcessCDR(1,14665476,1,1,2) [2025-03-12 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665476', 'tblTempUsageDetail_20' ) start [2025-03-12 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665476', 'tblTempUsageDetail_20' ) end [2025-03-12 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:44:27] Production.INFO: ==8098== Releasing lock... [2025-03-12 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:44:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:45:05 [end_date_ymd] => 2025-03-12 16:45:05 [RateCDR] => 1 ) [2025-03-12 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:45:05' and `end` < '2025-03-12 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:45:19] Production.INFO: count ==6051 [2025-03-12 16:45:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:45:05 - End Time 2025-03-12 16:45:05 [2025-03-12 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665481', 'tblTempUsageDetail_20' ) start [2025-03-12 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665481', 'tblTempUsageDetail_20' ) end [2025-03-12 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665481', 'tblTempVendorCDR_20' ) start [2025-03-12 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665481', 'tblTempVendorCDR_20' ) end [2025-03-12 16:45:22] Production.INFO: ProcessCDR(1,14665481,1,1,2) [2025-03-12 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665481', 'tblTempUsageDetail_20' ) start [2025-03-12 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665481', 'tblTempUsageDetail_20' ) end [2025-03-12 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:45:28] Production.INFO: ==8175== Releasing lock... [2025-03-12 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:45:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:46:05 [end_date_ymd] => 2025-03-12 16:46:05 [RateCDR] => 1 ) [2025-03-12 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:46:05' and `end` < '2025-03-12 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:46:19] Production.INFO: count ==6044 [2025-03-12 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:46:05 - End Time 2025-03-12 16:46:05 [2025-03-12 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665486', 'tblTempUsageDetail_20' ) start [2025-03-12 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665486', 'tblTempUsageDetail_20' ) end [2025-03-12 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665486', 'tblTempVendorCDR_20' ) start [2025-03-12 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665486', 'tblTempVendorCDR_20' ) end [2025-03-12 16:46:22] Production.INFO: ProcessCDR(1,14665486,1,1,2) [2025-03-12 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665486', 'tblTempUsageDetail_20' ) start [2025-03-12 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665486', 'tblTempUsageDetail_20' ) end [2025-03-12 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:46:27] Production.INFO: ==8246== Releasing lock... [2025-03-12 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:46:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:47:05 [end_date_ymd] => 2025-03-12 16:47:05 [RateCDR] => 1 ) [2025-03-12 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:47:05' and `end` < '2025-03-12 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:47:18] Production.INFO: count ==6042 [2025-03-12 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:47:05 - End Time 2025-03-12 16:47:05 [2025-03-12 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665491', 'tblTempUsageDetail_20' ) start [2025-03-12 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665491', 'tblTempUsageDetail_20' ) end [2025-03-12 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665491', 'tblTempVendorCDR_20' ) start [2025-03-12 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665491', 'tblTempVendorCDR_20' ) end [2025-03-12 16:47:21] Production.INFO: ProcessCDR(1,14665491,1,1,2) [2025-03-12 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665491', 'tblTempUsageDetail_20' ) start [2025-03-12 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665491', 'tblTempUsageDetail_20' ) end [2025-03-12 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:47:26] Production.INFO: ==8325== Releasing lock... [2025-03-12 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:47:26] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:48:05 [end_date_ymd] => 2025-03-12 16:48:05 [RateCDR] => 1 ) [2025-03-12 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:48:05' and `end` < '2025-03-12 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:48:18] Production.INFO: count ==6041 [2025-03-12 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:48:05 - End Time 2025-03-12 16:48:05 [2025-03-12 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665496', 'tblTempUsageDetail_20' ) start [2025-03-12 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665496', 'tblTempUsageDetail_20' ) end [2025-03-12 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665496', 'tblTempVendorCDR_20' ) start [2025-03-12 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665496', 'tblTempVendorCDR_20' ) end [2025-03-12 16:48:21] Production.INFO: ProcessCDR(1,14665496,1,1,2) [2025-03-12 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665496', 'tblTempUsageDetail_20' ) start [2025-03-12 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665496', 'tblTempUsageDetail_20' ) end [2025-03-12 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:48:27] Production.INFO: ==8403== Releasing lock... [2025-03-12 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:48:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:49:05 [end_date_ymd] => 2025-03-12 16:49:05 [RateCDR] => 1 ) [2025-03-12 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:49:05' and `end` < '2025-03-12 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:49:19] Production.INFO: count ==6032 [2025-03-12 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:49:05 - End Time 2025-03-12 16:49:05 [2025-03-12 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665501', 'tblTempUsageDetail_20' ) start [2025-03-12 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665501', 'tblTempUsageDetail_20' ) end [2025-03-12 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665501', 'tblTempVendorCDR_20' ) start [2025-03-12 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665501', 'tblTempVendorCDR_20' ) end [2025-03-12 16:49:22] Production.INFO: ProcessCDR(1,14665501,1,1,2) [2025-03-12 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665501', 'tblTempUsageDetail_20' ) start [2025-03-12 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665501', 'tblTempUsageDetail_20' ) end [2025-03-12 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:49:27] Production.INFO: ==8478== Releasing lock... [2025-03-12 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:49:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-12 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:50:06 [end_date_ymd] => 2025-03-12 16:50:06 [RateCDR] => 1 ) [2025-03-12 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:50:06' and `end` < '2025-03-12 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:50:19] Production.INFO: count ==6020 [2025-03-12 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:50:06 - End Time 2025-03-12 16:50:06 [2025-03-12 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665507', 'tblTempUsageDetail_20' ) start [2025-03-12 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665507', 'tblTempUsageDetail_20' ) end [2025-03-12 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665507', 'tblTempVendorCDR_20' ) start [2025-03-12 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665507', 'tblTempVendorCDR_20' ) end [2025-03-12 16:50:22] Production.INFO: ProcessCDR(1,14665507,1,1,2) [2025-03-12 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665507', 'tblTempUsageDetail_20' ) start [2025-03-12 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665507', 'tblTempUsageDetail_20' ) end [2025-03-12 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:50:27] Production.INFO: ==8564== Releasing lock... [2025-03-12 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:50:27] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:51:06 [end_date_ymd] => 2025-03-12 16:51:06 [RateCDR] => 1 ) [2025-03-12 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:51:06' and `end` < '2025-03-12 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:51:19] Production.INFO: count ==6012 [2025-03-12 16:51:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:51:06 - End Time 2025-03-12 16:51:06 [2025-03-12 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665512', 'tblTempUsageDetail_20' ) start [2025-03-12 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665512', 'tblTempUsageDetail_20' ) end [2025-03-12 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665512', 'tblTempVendorCDR_20' ) start [2025-03-12 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665512', 'tblTempVendorCDR_20' ) end [2025-03-12 16:51:22] Production.INFO: ProcessCDR(1,14665512,1,1,2) [2025-03-12 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665512', 'tblTempUsageDetail_20' ) start [2025-03-12 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665512', 'tblTempUsageDetail_20' ) end [2025-03-12 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:51:28] Production.INFO: ==8638== Releasing lock... [2025-03-12 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:51:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:52:06 [end_date_ymd] => 2025-03-12 16:52:06 [RateCDR] => 1 ) [2025-03-12 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:52:06' and `end` < '2025-03-12 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:52:19] Production.INFO: count ==6010 [2025-03-12 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:52:06 - End Time 2025-03-12 16:52:06 [2025-03-12 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665517', 'tblTempUsageDetail_20' ) start [2025-03-12 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665517', 'tblTempUsageDetail_20' ) end [2025-03-12 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665517', 'tblTempVendorCDR_20' ) start [2025-03-12 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665517', 'tblTempVendorCDR_20' ) end [2025-03-12 16:52:23] Production.INFO: ProcessCDR(1,14665517,1,1,2) [2025-03-12 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665517', 'tblTempUsageDetail_20' ) start [2025-03-12 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665517', 'tblTempUsageDetail_20' ) end [2025-03-12 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:52:28] Production.INFO: ==8709== Releasing lock... [2025-03-12 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:52:28] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:53:06 [end_date_ymd] => 2025-03-12 16:53:06 [RateCDR] => 1 ) [2025-03-12 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:53:06' and `end` < '2025-03-12 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:53:19] Production.INFO: count ==6008 [2025-03-12 16:53:22] Production.ERROR: pbx CDR StartTime 2025-03-12 13:53:06 - End Time 2025-03-12 16:53:06 [2025-03-12 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665522', 'tblTempUsageDetail_20' ) start [2025-03-12 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665522', 'tblTempUsageDetail_20' ) end [2025-03-12 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665522', 'tblTempVendorCDR_20' ) start [2025-03-12 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665522', 'tblTempVendorCDR_20' ) end [2025-03-12 16:53:22] Production.INFO: ProcessCDR(1,14665522,1,1,2) [2025-03-12 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665522', 'tblTempUsageDetail_20' ) start [2025-03-12 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665522', 'tblTempUsageDetail_20' ) end [2025-03-12 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:53:27] Production.INFO: ==8792== Releasing lock... [2025-03-12 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:53:27] Production.INFO: 73 MB #Memory Used# [2025-03-12 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:54:05 [end_date_ymd] => 2025-03-12 16:54:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:54:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:54:19] Production.INFO: count ==5988 [2025-03-12 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:54:05 - End Time 2025-03-12 16:54:05 [2025-03-12 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665527', 'tblTempUsageDetail_20' ) start [2025-03-12 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665527', 'tblTempUsageDetail_20' ) end [2025-03-12 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665527', 'tblTempVendorCDR_20' ) start [2025-03-12 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665527', 'tblTempVendorCDR_20' ) end [2025-03-12 16:54:21] Production.INFO: ProcessCDR(1,14665527,1,1,2) [2025-03-12 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665527', 'tblTempUsageDetail_20' ) start [2025-03-12 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665527', 'tblTempUsageDetail_20' ) end [2025-03-12 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:54:25] Production.INFO: ==8864== Releasing lock... [2025-03-12 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:54:25] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:55:05 [end_date_ymd] => 2025-03-12 16:55:05 [RateCDR] => 1 ) [2025-03-12 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:55:05' and `end` < '2025-03-12 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:55:19] Production.INFO: count ==5971 [2025-03-12 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:55:05 - End Time 2025-03-12 16:55:05 [2025-03-12 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665532', 'tblTempUsageDetail_20' ) start [2025-03-12 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665532', 'tblTempUsageDetail_20' ) end [2025-03-12 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665532', 'tblTempVendorCDR_20' ) start [2025-03-12 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665532', 'tblTempVendorCDR_20' ) end [2025-03-12 16:55:21] Production.INFO: ProcessCDR(1,14665532,1,1,2) [2025-03-12 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665532', 'tblTempUsageDetail_20' ) start [2025-03-12 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665532', 'tblTempUsageDetail_20' ) end [2025-03-12 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:55:26] Production.INFO: ==8979== Releasing lock... [2025-03-12 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:55:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:56:05 [end_date_ymd] => 2025-03-12 16:56:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 13:56:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 16:56:18] Production.INFO: count ==5982 [2025-03-12 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:56:05 - End Time 2025-03-12 16:56:05 [2025-03-12 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665537', 'tblTempUsageDetail_20' ) start [2025-03-12 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665537', 'tblTempUsageDetail_20' ) end [2025-03-12 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665537', 'tblTempVendorCDR_20' ) start [2025-03-12 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665537', 'tblTempVendorCDR_20' ) end [2025-03-12 16:56:21] Production.INFO: ProcessCDR(1,14665537,1,1,2) [2025-03-12 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665537', 'tblTempUsageDetail_20' ) start [2025-03-12 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665537', 'tblTempUsageDetail_20' ) end [2025-03-12 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:56:26] Production.INFO: ==9053== Releasing lock... [2025-03-12 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:56:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:57:05 [end_date_ymd] => 2025-03-12 16:57:05 [RateCDR] => 1 ) [2025-03-12 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:57:05' and `end` < '2025-03-12 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:57:19] Production.INFO: count ==5968 [2025-03-12 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:57:05 - End Time 2025-03-12 16:57:05 [2025-03-12 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665542', 'tblTempUsageDetail_20' ) start [2025-03-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665542', 'tblTempUsageDetail_20' ) end [2025-03-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665542', 'tblTempVendorCDR_20' ) start [2025-03-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665542', 'tblTempVendorCDR_20' ) end [2025-03-12 16:57:21] Production.INFO: ProcessCDR(1,14665542,1,1,2) [2025-03-12 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665542', 'tblTempUsageDetail_20' ) start [2025-03-12 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665542', 'tblTempUsageDetail_20' ) end [2025-03-12 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:57:26] Production.INFO: ==9132== Releasing lock... [2025-03-12 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:57:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:58:05 [end_date_ymd] => 2025-03-12 16:58:05 [RateCDR] => 1 ) [2025-03-12 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:58:05' and `end` < '2025-03-12 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:58:18] Production.INFO: count ==5969 [2025-03-12 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:58:05 - End Time 2025-03-12 16:58:05 [2025-03-12 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665547', 'tblTempUsageDetail_20' ) start [2025-03-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665547', 'tblTempUsageDetail_20' ) end [2025-03-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665547', 'tblTempVendorCDR_20' ) start [2025-03-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665547', 'tblTempVendorCDR_20' ) end [2025-03-12 16:58:21] Production.INFO: ProcessCDR(1,14665547,1,1,2) [2025-03-12 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665547', 'tblTempUsageDetail_20' ) start [2025-03-12 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665547', 'tblTempUsageDetail_20' ) end [2025-03-12 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:58:26] Production.INFO: ==9204== Releasing lock... [2025-03-12 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:58:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-12 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 13:59:05 [end_date_ymd] => 2025-03-12 16:59:05 [RateCDR] => 1 ) [2025-03-12 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 13:59:05' and `end` < '2025-03-12 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 16:59:19] Production.INFO: count ==5918 [2025-03-12 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 13:59:05 - End Time 2025-03-12 16:59:05 [2025-03-12 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665552', 'tblTempUsageDetail_20' ) start [2025-03-12 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665552', 'tblTempUsageDetail_20' ) end [2025-03-12 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665552', 'tblTempVendorCDR_20' ) start [2025-03-12 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665552', 'tblTempVendorCDR_20' ) end [2025-03-12 16:59:21] Production.INFO: ProcessCDR(1,14665552,1,1,2) [2025-03-12 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665552', 'tblTempUsageDetail_20' ) start [2025-03-12 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665552', 'tblTempUsageDetail_20' ) end [2025-03-12 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 16:59:26] Production.INFO: ==9276== Releasing lock... [2025-03-12 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 16:59:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:00:06 [end_date_ymd] => 2025-03-12 17:00:06 [RateCDR] => 1 ) [2025-03-12 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:00:06' and `end` < '2025-03-12 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:00:19] Production.INFO: count ==5910 [2025-03-12 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:00:06 - End Time 2025-03-12 17:00:06 [2025-03-12 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665558', 'tblTempUsageDetail_20' ) start [2025-03-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665558', 'tblTempUsageDetail_20' ) end [2025-03-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665558', 'tblTempVendorCDR_20' ) start [2025-03-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665558', 'tblTempVendorCDR_20' ) end [2025-03-12 17:00:22] Production.INFO: ProcessCDR(1,14665558,1,1,2) [2025-03-12 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665558', 'tblTempUsageDetail_20' ) start [2025-03-12 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665558', 'tblTempUsageDetail_20' ) end [2025-03-12 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:00:27] Production.INFO: ==9350== Releasing lock... [2025-03-12 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:00:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:01:06 [end_date_ymd] => 2025-03-12 17:01:06 [RateCDR] => 1 ) [2025-03-12 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:01:06' and `end` < '2025-03-12 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:01:19] Production.INFO: count ==5866 [2025-03-12 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:01:06 - End Time 2025-03-12 17:01:06 [2025-03-12 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665563', 'tblTempUsageDetail_20' ) start [2025-03-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665563', 'tblTempUsageDetail_20' ) end [2025-03-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665563', 'tblTempVendorCDR_20' ) start [2025-03-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665563', 'tblTempVendorCDR_20' ) end [2025-03-12 17:01:22] Production.INFO: ProcessCDR(1,14665563,1,1,2) [2025-03-12 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665563', 'tblTempUsageDetail_20' ) start [2025-03-12 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665563', 'tblTempUsageDetail_20' ) end [2025-03-12 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:01:28] Production.INFO: ==9438== Releasing lock... [2025-03-12 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:01:28] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:02:05 [end_date_ymd] => 2025-03-12 17:02:05 [RateCDR] => 1 ) [2025-03-12 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:02:05' and `end` < '2025-03-12 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:02:19] Production.INFO: count ==5879 [2025-03-12 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:02:05 - End Time 2025-03-12 17:02:05 [2025-03-12 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665568', 'tblTempUsageDetail_20' ) start [2025-03-12 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665568', 'tblTempUsageDetail_20' ) end [2025-03-12 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665568', 'tblTempVendorCDR_20' ) start [2025-03-12 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665568', 'tblTempVendorCDR_20' ) end [2025-03-12 17:02:21] Production.INFO: ProcessCDR(1,14665568,1,1,2) [2025-03-12 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665568', 'tblTempUsageDetail_20' ) start [2025-03-12 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665568', 'tblTempUsageDetail_20' ) end [2025-03-12 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:02:27] Production.INFO: ==9511== Releasing lock... [2025-03-12 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:02:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:03:06 [end_date_ymd] => 2025-03-12 17:03:06 [RateCDR] => 1 ) [2025-03-12 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:03:06' and `end` < '2025-03-12 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:03:19] Production.INFO: count ==5874 [2025-03-12 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:03:06 - End Time 2025-03-12 17:03:06 [2025-03-12 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665573', 'tblTempUsageDetail_20' ) start [2025-03-12 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665573', 'tblTempUsageDetail_20' ) end [2025-03-12 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665573', 'tblTempVendorCDR_20' ) start [2025-03-12 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665573', 'tblTempVendorCDR_20' ) end [2025-03-12 17:03:22] Production.INFO: ProcessCDR(1,14665573,1,1,2) [2025-03-12 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665573', 'tblTempUsageDetail_20' ) start [2025-03-12 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665573', 'tblTempUsageDetail_20' ) end [2025-03-12 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:03:27] Production.INFO: ==9583== Releasing lock... [2025-03-12 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:03:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:04:05 [end_date_ymd] => 2025-03-12 17:04:05 [RateCDR] => 1 ) [2025-03-12 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:04:05' and `end` < '2025-03-12 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:04:18] Production.INFO: count ==5879 [2025-03-12 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:04:05 - End Time 2025-03-12 17:04:05 [2025-03-12 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665578', 'tblTempUsageDetail_20' ) start [2025-03-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665578', 'tblTempUsageDetail_20' ) end [2025-03-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665578', 'tblTempVendorCDR_20' ) start [2025-03-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665578', 'tblTempVendorCDR_20' ) end [2025-03-12 17:04:21] Production.INFO: ProcessCDR(1,14665578,1,1,2) [2025-03-12 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665578', 'tblTempUsageDetail_20' ) start [2025-03-12 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665578', 'tblTempUsageDetail_20' ) end [2025-03-12 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:04:26] Production.INFO: ==9662== Releasing lock... [2025-03-12 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:04:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:05:06 [end_date_ymd] => 2025-03-12 17:05:06 [RateCDR] => 1 ) [2025-03-12 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:05:06' and `end` < '2025-03-12 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:05:19] Production.INFO: count ==5884 [2025-03-12 17:05:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:05:06 - End Time 2025-03-12 17:05:06 [2025-03-12 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665583', 'tblTempUsageDetail_20' ) start [2025-03-12 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665583', 'tblTempUsageDetail_20' ) end [2025-03-12 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665583', 'tblTempVendorCDR_20' ) start [2025-03-12 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665583', 'tblTempVendorCDR_20' ) end [2025-03-12 17:05:22] Production.INFO: ProcessCDR(1,14665583,1,1,2) [2025-03-12 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665583', 'tblTempUsageDetail_20' ) start [2025-03-12 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665583', 'tblTempUsageDetail_20' ) end [2025-03-12 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:05:27] Production.INFO: ==9736== Releasing lock... [2025-03-12 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:05:27] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:06:05 [end_date_ymd] => 2025-03-12 17:06:05 [RateCDR] => 1 ) [2025-03-12 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:06:05' and `end` < '2025-03-12 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:06:19] Production.INFO: count ==5880 [2025-03-12 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:06:05 - End Time 2025-03-12 17:06:05 [2025-03-12 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665588', 'tblTempUsageDetail_20' ) start [2025-03-12 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665588', 'tblTempUsageDetail_20' ) end [2025-03-12 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665588', 'tblTempVendorCDR_20' ) start [2025-03-12 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665588', 'tblTempVendorCDR_20' ) end [2025-03-12 17:06:21] Production.INFO: ProcessCDR(1,14665588,1,1,2) [2025-03-12 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665588', 'tblTempUsageDetail_20' ) start [2025-03-12 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665588', 'tblTempUsageDetail_20' ) end [2025-03-12 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:06:26] Production.INFO: ==9809== Releasing lock... [2025-03-12 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:06:26] Production.INFO: 72 MB #Memory Used# [2025-03-12 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:07:06 [end_date_ymd] => 2025-03-12 17:07:06 [RateCDR] => 1 ) [2025-03-12 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:07:06' and `end` < '2025-03-12 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:07:19] Production.INFO: count ==5900 [2025-03-12 17:07:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:07:06 - End Time 2025-03-12 17:07:06 [2025-03-12 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665593', 'tblTempUsageDetail_20' ) start [2025-03-12 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665593', 'tblTempUsageDetail_20' ) end [2025-03-12 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665593', 'tblTempVendorCDR_20' ) start [2025-03-12 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665593', 'tblTempVendorCDR_20' ) end [2025-03-12 17:07:21] Production.INFO: ProcessCDR(1,14665593,1,1,2) [2025-03-12 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665593', 'tblTempUsageDetail_20' ) start [2025-03-12 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665593', 'tblTempUsageDetail_20' ) end [2025-03-12 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:07:27] Production.INFO: ==9885== Releasing lock... [2025-03-12 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:07:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:08:05 [end_date_ymd] => 2025-03-12 17:08:05 [RateCDR] => 1 ) [2025-03-12 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:08:05' and `end` < '2025-03-12 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:08:18] Production.INFO: count ==5910 [2025-03-12 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:08:05 - End Time 2025-03-12 17:08:05 [2025-03-12 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665598', 'tblTempUsageDetail_20' ) start [2025-03-12 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665598', 'tblTempUsageDetail_20' ) end [2025-03-12 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665598', 'tblTempVendorCDR_20' ) start [2025-03-12 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665598', 'tblTempVendorCDR_20' ) end [2025-03-12 17:08:21] Production.INFO: ProcessCDR(1,14665598,1,1,2) [2025-03-12 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665598', 'tblTempUsageDetail_20' ) start [2025-03-12 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665598', 'tblTempUsageDetail_20' ) end [2025-03-12 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:08:26] Production.INFO: ==9960== Releasing lock... [2025-03-12 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:08:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:09:06 [end_date_ymd] => 2025-03-12 17:09:06 [RateCDR] => 1 ) [2025-03-12 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:09:06' and `end` < '2025-03-12 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:09:19] Production.INFO: count ==5902 [2025-03-12 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:09:06 - End Time 2025-03-12 17:09:06 [2025-03-12 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665603', 'tblTempUsageDetail_20' ) start [2025-03-12 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665603', 'tblTempUsageDetail_20' ) end [2025-03-12 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665603', 'tblTempVendorCDR_20' ) start [2025-03-12 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665603', 'tblTempVendorCDR_20' ) end [2025-03-12 17:09:21] Production.INFO: ProcessCDR(1,14665603,1,1,2) [2025-03-12 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665603', 'tblTempUsageDetail_20' ) start [2025-03-12 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665603', 'tblTempUsageDetail_20' ) end [2025-03-12 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:09:26] Production.INFO: ==10043== Releasing lock... [2025-03-12 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:09:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:10:05 [end_date_ymd] => 2025-03-12 17:10:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:10:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:10:19] Production.INFO: count ==5900 [2025-03-12 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:10:05 - End Time 2025-03-12 17:10:05 [2025-03-12 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665608', 'tblTempUsageDetail_20' ) start [2025-03-12 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665608', 'tblTempUsageDetail_20' ) end [2025-03-12 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665608', 'tblTempVendorCDR_20' ) start [2025-03-12 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665608', 'tblTempVendorCDR_20' ) end [2025-03-12 17:10:21] Production.INFO: ProcessCDR(1,14665608,1,1,2) [2025-03-12 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665608', 'tblTempUsageDetail_20' ) start [2025-03-12 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665608', 'tblTempUsageDetail_20' ) end [2025-03-12 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:10:26] Production.INFO: ==10157== Releasing lock... [2025-03-12 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:10:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-12 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:11:05 [end_date_ymd] => 2025-03-12 17:11:05 [RateCDR] => 1 ) [2025-03-12 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:11:05' and `end` < '2025-03-12 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:11:19] Production.INFO: count ==5822 [2025-03-12 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:11:05 - End Time 2025-03-12 17:11:05 [2025-03-12 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665614', 'tblTempUsageDetail_20' ) start [2025-03-12 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665614', 'tblTempUsageDetail_20' ) end [2025-03-12 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665614', 'tblTempVendorCDR_20' ) start [2025-03-12 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665614', 'tblTempVendorCDR_20' ) end [2025-03-12 17:11:22] Production.INFO: ProcessCDR(1,14665614,1,1,2) [2025-03-12 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665614', 'tblTempUsageDetail_20' ) start [2025-03-12 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665614', 'tblTempUsageDetail_20' ) end [2025-03-12 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:11:27] Production.INFO: ==10232== Releasing lock... [2025-03-12 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:11:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:12:05 [end_date_ymd] => 2025-03-12 17:12:05 [RateCDR] => 1 ) [2025-03-12 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:12:05' and `end` < '2025-03-12 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:12:18] Production.INFO: count ==5810 [2025-03-12 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:12:05 - End Time 2025-03-12 17:12:05 [2025-03-12 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665619', 'tblTempUsageDetail_20' ) start [2025-03-12 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665619', 'tblTempUsageDetail_20' ) end [2025-03-12 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665619', 'tblTempVendorCDR_20' ) start [2025-03-12 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665619', 'tblTempVendorCDR_20' ) end [2025-03-12 17:12:21] Production.INFO: ProcessCDR(1,14665619,1,1,2) [2025-03-12 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665619', 'tblTempUsageDetail_20' ) start [2025-03-12 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665619', 'tblTempUsageDetail_20' ) end [2025-03-12 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:12:26] Production.INFO: ==10307== Releasing lock... [2025-03-12 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:12:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:13:05 [end_date_ymd] => 2025-03-12 17:13:05 [RateCDR] => 1 ) [2025-03-12 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:13:05' and `end` < '2025-03-12 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:13:18] Production.INFO: count ==5851 [2025-03-12 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:13:05 - End Time 2025-03-12 17:13:05 [2025-03-12 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665624', 'tblTempUsageDetail_20' ) start [2025-03-12 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665624', 'tblTempUsageDetail_20' ) end [2025-03-12 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665624', 'tblTempVendorCDR_20' ) start [2025-03-12 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665624', 'tblTempVendorCDR_20' ) end [2025-03-12 17:13:21] Production.INFO: ProcessCDR(1,14665624,1,1,2) [2025-03-12 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665624', 'tblTempUsageDetail_20' ) start [2025-03-12 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665624', 'tblTempUsageDetail_20' ) end [2025-03-12 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:13:26] Production.INFO: ==10378== Releasing lock... [2025-03-12 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:13:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:14:05 [end_date_ymd] => 2025-03-12 17:14:05 [RateCDR] => 1 ) [2025-03-12 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:14:05' and `end` < '2025-03-12 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:14:18] Production.INFO: count ==5841 [2025-03-12 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:14:05 - End Time 2025-03-12 17:14:05 [2025-03-12 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665629', 'tblTempUsageDetail_20' ) start [2025-03-12 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665629', 'tblTempUsageDetail_20' ) end [2025-03-12 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665629', 'tblTempVendorCDR_20' ) start [2025-03-12 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665629', 'tblTempVendorCDR_20' ) end [2025-03-12 17:14:21] Production.INFO: ProcessCDR(1,14665629,1,1,2) [2025-03-12 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665629', 'tblTempUsageDetail_20' ) start [2025-03-12 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665629', 'tblTempUsageDetail_20' ) end [2025-03-12 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:14:26] Production.INFO: ==10450== Releasing lock... [2025-03-12 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:14:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:15:05 [end_date_ymd] => 2025-03-12 17:15:05 [RateCDR] => 1 ) [2025-03-12 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:15:05' and `end` < '2025-03-12 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:15:18] Production.INFO: count ==5852 [2025-03-12 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:15:05 - End Time 2025-03-12 17:15:05 [2025-03-12 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665634', 'tblTempUsageDetail_20' ) start [2025-03-12 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665634', 'tblTempUsageDetail_20' ) end [2025-03-12 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665634', 'tblTempVendorCDR_20' ) start [2025-03-12 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665634', 'tblTempVendorCDR_20' ) end [2025-03-12 17:15:21] Production.INFO: ProcessCDR(1,14665634,1,1,2) [2025-03-12 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665634', 'tblTempUsageDetail_20' ) start [2025-03-12 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665634', 'tblTempUsageDetail_20' ) end [2025-03-12 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:15:26] Production.INFO: ==10520== Releasing lock... [2025-03-12 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:15:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:16:06 [end_date_ymd] => 2025-03-12 17:16:06 [RateCDR] => 1 ) [2025-03-12 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:16:06' and `end` < '2025-03-12 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:16:19] Production.INFO: count ==5839 [2025-03-12 17:16:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:16:06 - End Time 2025-03-12 17:16:06 [2025-03-12 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665639', 'tblTempUsageDetail_20' ) start [2025-03-12 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665639', 'tblTempUsageDetail_20' ) end [2025-03-12 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665639', 'tblTempVendorCDR_20' ) start [2025-03-12 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665639', 'tblTempVendorCDR_20' ) end [2025-03-12 17:16:22] Production.INFO: ProcessCDR(1,14665639,1,1,2) [2025-03-12 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665639', 'tblTempUsageDetail_20' ) start [2025-03-12 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665639', 'tblTempUsageDetail_20' ) end [2025-03-12 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:16:27] Production.INFO: ==10594== Releasing lock... [2025-03-12 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:16:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-12 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:17:05 [end_date_ymd] => 2025-03-12 17:17:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:17:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:17:18] Production.INFO: count ==5799 [2025-03-12 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:17:05 - End Time 2025-03-12 17:17:05 [2025-03-12 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665644', 'tblTempUsageDetail_20' ) start [2025-03-12 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665644', 'tblTempUsageDetail_20' ) end [2025-03-12 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665644', 'tblTempVendorCDR_20' ) start [2025-03-12 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665644', 'tblTempVendorCDR_20' ) end [2025-03-12 17:17:21] Production.INFO: ProcessCDR(1,14665644,1,1,2) [2025-03-12 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665644', 'tblTempUsageDetail_20' ) start [2025-03-12 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665644', 'tblTempUsageDetail_20' ) end [2025-03-12 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:17:26] Production.INFO: ==10668== Releasing lock... [2025-03-12 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:17:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-12 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:18:06 [end_date_ymd] => 2025-03-12 17:18:06 [RateCDR] => 1 ) [2025-03-12 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:18:06' and `end` < '2025-03-12 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:18:19] Production.INFO: count ==5773 [2025-03-12 17:18:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:18:06 - End Time 2025-03-12 17:18:06 [2025-03-12 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665649', 'tblTempUsageDetail_20' ) start [2025-03-12 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665649', 'tblTempUsageDetail_20' ) end [2025-03-12 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665649', 'tblTempVendorCDR_20' ) start [2025-03-12 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665649', 'tblTempVendorCDR_20' ) end [2025-03-12 17:18:22] Production.INFO: ProcessCDR(1,14665649,1,1,2) [2025-03-12 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665649', 'tblTempUsageDetail_20' ) start [2025-03-12 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665649', 'tblTempUsageDetail_20' ) end [2025-03-12 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:18:28] Production.INFO: ==10755== Releasing lock... [2025-03-12 17:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:18:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:19:05 [end_date_ymd] => 2025-03-12 17:19:05 [RateCDR] => 1 ) [2025-03-12 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:19:05' and `end` < '2025-03-12 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:19:18] Production.INFO: count ==5779 [2025-03-12 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:19:05 - End Time 2025-03-12 17:19:05 [2025-03-12 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665654', 'tblTempUsageDetail_20' ) start [2025-03-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665654', 'tblTempUsageDetail_20' ) end [2025-03-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665654', 'tblTempVendorCDR_20' ) start [2025-03-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665654', 'tblTempVendorCDR_20' ) end [2025-03-12 17:19:21] Production.INFO: ProcessCDR(1,14665654,1,1,2) [2025-03-12 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665654', 'tblTempUsageDetail_20' ) start [2025-03-12 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665654', 'tblTempUsageDetail_20' ) end [2025-03-12 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:19:26] Production.INFO: ==10831== Releasing lock... [2025-03-12 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:19:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:20:06 [end_date_ymd] => 2025-03-12 17:20:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:20:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:20:19] Production.INFO: count ==5775 [2025-03-12 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:20:06 - End Time 2025-03-12 17:20:06 [2025-03-12 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665659', 'tblTempUsageDetail_20' ) start [2025-03-12 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665659', 'tblTempUsageDetail_20' ) end [2025-03-12 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665659', 'tblTempVendorCDR_20' ) start [2025-03-12 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665659', 'tblTempVendorCDR_20' ) end [2025-03-12 17:20:21] Production.INFO: ProcessCDR(1,14665659,1,1,2) [2025-03-12 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665659', 'tblTempUsageDetail_20' ) start [2025-03-12 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665659', 'tblTempUsageDetail_20' ) end [2025-03-12 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:20:27] Production.INFO: ==10907== Releasing lock... [2025-03-12 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:20:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-12 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:21:05 [end_date_ymd] => 2025-03-12 17:21:05 [RateCDR] => 1 ) [2025-03-12 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:21:05' and `end` < '2025-03-12 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:21:19] Production.INFO: count ==5709 [2025-03-12 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:21:05 - End Time 2025-03-12 17:21:05 [2025-03-12 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665665', 'tblTempUsageDetail_20' ) start [2025-03-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665665', 'tblTempUsageDetail_20' ) end [2025-03-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665665', 'tblTempVendorCDR_20' ) start [2025-03-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665665', 'tblTempVendorCDR_20' ) end [2025-03-12 17:21:21] Production.INFO: ProcessCDR(1,14665665,1,1,2) [2025-03-12 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665665', 'tblTempUsageDetail_20' ) start [2025-03-12 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665665', 'tblTempUsageDetail_20' ) end [2025-03-12 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:21:26] Production.INFO: ==10987== Releasing lock... [2025-03-12 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:21:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-12 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:22:06 [end_date_ymd] => 2025-03-12 17:22:06 [RateCDR] => 1 ) [2025-03-12 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:22:06' and `end` < '2025-03-12 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:22:19] Production.INFO: count ==5631 [2025-03-12 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:22:06 - End Time 2025-03-12 17:22:06 [2025-03-12 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665670', 'tblTempUsageDetail_20' ) start [2025-03-12 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665670', 'tblTempUsageDetail_20' ) end [2025-03-12 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665670', 'tblTempVendorCDR_20' ) start [2025-03-12 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665670', 'tblTempVendorCDR_20' ) end [2025-03-12 17:22:21] Production.INFO: ProcessCDR(1,14665670,1,1,2) [2025-03-12 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665670', 'tblTempUsageDetail_20' ) start [2025-03-12 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665670', 'tblTempUsageDetail_20' ) end [2025-03-12 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:22:26] Production.INFO: ==11058== Releasing lock... [2025-03-12 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:22:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:23:05 [end_date_ymd] => 2025-03-12 17:23:05 [RateCDR] => 1 ) [2025-03-12 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:23:05' and `end` < '2025-03-12 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:23:18] Production.INFO: count ==5604 [2025-03-12 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:23:05 - End Time 2025-03-12 17:23:05 [2025-03-12 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665675', 'tblTempUsageDetail_20' ) start [2025-03-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665675', 'tblTempUsageDetail_20' ) end [2025-03-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665675', 'tblTempVendorCDR_20' ) start [2025-03-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665675', 'tblTempVendorCDR_20' ) end [2025-03-12 17:23:21] Production.INFO: ProcessCDR(1,14665675,1,1,2) [2025-03-12 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665675', 'tblTempUsageDetail_20' ) start [2025-03-12 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665675', 'tblTempUsageDetail_20' ) end [2025-03-12 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:23:26] Production.INFO: ==11133== Releasing lock... [2025-03-12 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:23:26] Production.INFO: 70 MB #Memory Used# [2025-03-12 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:24:06 [end_date_ymd] => 2025-03-12 17:24:06 [RateCDR] => 1 ) [2025-03-12 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:24:06' and `end` < '2025-03-12 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:24:19] Production.INFO: count ==5616 [2025-03-12 17:24:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:24:06 - End Time 2025-03-12 17:24:06 [2025-03-12 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665680', 'tblTempUsageDetail_20' ) start [2025-03-12 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665680', 'tblTempUsageDetail_20' ) end [2025-03-12 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665680', 'tblTempVendorCDR_20' ) start [2025-03-12 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665680', 'tblTempVendorCDR_20' ) end [2025-03-12 17:24:22] Production.INFO: ProcessCDR(1,14665680,1,1,2) [2025-03-12 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665680', 'tblTempUsageDetail_20' ) start [2025-03-12 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665680', 'tblTempUsageDetail_20' ) end [2025-03-12 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:24:27] Production.INFO: ==11209== Releasing lock... [2025-03-12 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:24:27] Production.INFO: 70 MB #Memory Used# [2025-03-12 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:25:06 [end_date_ymd] => 2025-03-12 17:25:06 [RateCDR] => 1 ) [2025-03-12 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:25:06' and `end` < '2025-03-12 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:25:19] Production.INFO: count ==5614 [2025-03-12 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:25:06 - End Time 2025-03-12 17:25:06 [2025-03-12 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665685', 'tblTempUsageDetail_20' ) start [2025-03-12 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665685', 'tblTempUsageDetail_20' ) end [2025-03-12 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665685', 'tblTempVendorCDR_20' ) start [2025-03-12 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665685', 'tblTempVendorCDR_20' ) end [2025-03-12 17:25:21] Production.INFO: ProcessCDR(1,14665685,1,1,2) [2025-03-12 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665685', 'tblTempUsageDetail_20' ) start [2025-03-12 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665685', 'tblTempUsageDetail_20' ) end [2025-03-12 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:25:25] Production.INFO: ==11284== Releasing lock... [2025-03-12 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:25:25] Production.INFO: 70 MB #Memory Used# [2025-03-12 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:26:05 [end_date_ymd] => 2025-03-12 17:26:05 [RateCDR] => 1 ) [2025-03-12 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:26:05' and `end` < '2025-03-12 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:26:18] Production.INFO: count ==5631 [2025-03-12 17:26:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:26:05 - End Time 2025-03-12 17:26:05 [2025-03-12 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665690', 'tblTempUsageDetail_20' ) start [2025-03-12 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665690', 'tblTempUsageDetail_20' ) end [2025-03-12 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665690', 'tblTempVendorCDR_20' ) start [2025-03-12 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665690', 'tblTempVendorCDR_20' ) end [2025-03-12 17:26:21] Production.INFO: ProcessCDR(1,14665690,1,1,2) [2025-03-12 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665690', 'tblTempUsageDetail_20' ) start [2025-03-12 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665690', 'tblTempUsageDetail_20' ) end [2025-03-12 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:26:24] Production.INFO: ==11395== Releasing lock... [2025-03-12 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:26:24] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:27:05 [end_date_ymd] => 2025-03-12 17:27:05 [RateCDR] => 1 ) [2025-03-12 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:27:05' and `end` < '2025-03-12 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:27:18] Production.INFO: count ==5634 [2025-03-12 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:27:05 - End Time 2025-03-12 17:27:05 [2025-03-12 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665695', 'tblTempUsageDetail_20' ) start [2025-03-12 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665695', 'tblTempUsageDetail_20' ) end [2025-03-12 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665695', 'tblTempVendorCDR_20' ) start [2025-03-12 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665695', 'tblTempVendorCDR_20' ) end [2025-03-12 17:27:21] Production.INFO: ProcessCDR(1,14665695,1,1,2) [2025-03-12 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665695', 'tblTempUsageDetail_20' ) start [2025-03-12 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665695', 'tblTempUsageDetail_20' ) end [2025-03-12 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:27:26] Production.INFO: ==11468== Releasing lock... [2025-03-12 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:27:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-12 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:28:05 [end_date_ymd] => 2025-03-12 17:28:05 [RateCDR] => 1 ) [2025-03-12 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:28:05' and `end` < '2025-03-12 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:28:18] Production.INFO: count ==5622 [2025-03-12 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:28:05 - End Time 2025-03-12 17:28:05 [2025-03-12 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665700', 'tblTempUsageDetail_20' ) start [2025-03-12 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665700', 'tblTempUsageDetail_20' ) end [2025-03-12 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665700', 'tblTempVendorCDR_20' ) start [2025-03-12 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665700', 'tblTempVendorCDR_20' ) end [2025-03-12 17:28:20] Production.INFO: ProcessCDR(1,14665700,1,1,2) [2025-03-12 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665700', 'tblTempUsageDetail_20' ) start [2025-03-12 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665700', 'tblTempUsageDetail_20' ) end [2025-03-12 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:28:26] Production.INFO: ==11540== Releasing lock... [2025-03-12 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:28:26] Production.INFO: 70 MB #Memory Used# [2025-03-12 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:29:05 [end_date_ymd] => 2025-03-12 17:29:05 [RateCDR] => 1 ) [2025-03-12 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:29:05' and `end` < '2025-03-12 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:29:18] Production.INFO: count ==5595 [2025-03-12 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:29:05 - End Time 2025-03-12 17:29:05 [2025-03-12 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665705', 'tblTempUsageDetail_20' ) start [2025-03-12 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665705', 'tblTempUsageDetail_20' ) end [2025-03-12 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665705', 'tblTempVendorCDR_20' ) start [2025-03-12 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665705', 'tblTempVendorCDR_20' ) end [2025-03-12 17:29:21] Production.INFO: ProcessCDR(1,14665705,1,1,2) [2025-03-12 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665705', 'tblTempUsageDetail_20' ) start [2025-03-12 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665705', 'tblTempUsageDetail_20' ) end [2025-03-12 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:29:26] Production.INFO: ==11619== Releasing lock... [2025-03-12 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:29:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:30:05 [end_date_ymd] => 2025-03-12 17:30:05 [RateCDR] => 1 ) [2025-03-12 17:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:30:05' and `end` < '2025-03-12 17:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:30:18] Production.INFO: count ==5578 [2025-03-12 17:30:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:30:05 - End Time 2025-03-12 17:30:05 [2025-03-12 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665711', 'tblTempUsageDetail_20' ) start [2025-03-12 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665711', 'tblTempUsageDetail_20' ) end [2025-03-12 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665711', 'tblTempVendorCDR_20' ) start [2025-03-12 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665711', 'tblTempVendorCDR_20' ) end [2025-03-12 17:30:21] Production.INFO: ProcessCDR(1,14665711,1,1,2) [2025-03-12 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665711', 'tblTempUsageDetail_20' ) start [2025-03-12 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665711', 'tblTempUsageDetail_20' ) end [2025-03-12 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:30:26] Production.INFO: ==11694== Releasing lock... [2025-03-12 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:30:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-12 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:31:05 [end_date_ymd] => 2025-03-12 17:31:05 [RateCDR] => 1 ) [2025-03-12 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:31:05' and `end` < '2025-03-12 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:31:18] Production.INFO: count ==5473 [2025-03-12 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:31:05 - End Time 2025-03-12 17:31:05 [2025-03-12 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665716', 'tblTempUsageDetail_20' ) start [2025-03-12 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665716', 'tblTempUsageDetail_20' ) end [2025-03-12 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665716', 'tblTempVendorCDR_20' ) start [2025-03-12 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665716', 'tblTempVendorCDR_20' ) end [2025-03-12 17:31:20] Production.INFO: ProcessCDR(1,14665716,1,1,2) [2025-03-12 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665716', 'tblTempUsageDetail_20' ) start [2025-03-12 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665716', 'tblTempUsageDetail_20' ) end [2025-03-12 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:31:25] Production.INFO: ==11772== Releasing lock... [2025-03-12 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:31:25] Production.INFO: 69 MB #Memory Used# [2025-03-12 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:32:05 [end_date_ymd] => 2025-03-12 17:32:05 [RateCDR] => 1 ) [2025-03-12 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:32:05' and `end` < '2025-03-12 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:32:18] Production.INFO: count ==5468 [2025-03-12 17:32:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:32:05 - End Time 2025-03-12 17:32:05 [2025-03-12 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665721', 'tblTempUsageDetail_20' ) start [2025-03-12 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665721', 'tblTempUsageDetail_20' ) end [2025-03-12 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665721', 'tblTempVendorCDR_20' ) start [2025-03-12 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665721', 'tblTempVendorCDR_20' ) end [2025-03-12 17:32:20] Production.INFO: ProcessCDR(1,14665721,1,1,2) [2025-03-12 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665721', 'tblTempUsageDetail_20' ) start [2025-03-12 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665721', 'tblTempUsageDetail_20' ) end [2025-03-12 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:32:25] Production.INFO: ==11847== Releasing lock... [2025-03-12 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:32:25] Production.INFO: 69 MB #Memory Used# [2025-03-12 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:33:05 [end_date_ymd] => 2025-03-12 17:33:05 [RateCDR] => 1 ) [2025-03-12 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:33:05' and `end` < '2025-03-12 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:33:18] Production.INFO: count ==5471 [2025-03-12 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:33:05 - End Time 2025-03-12 17:33:05 [2025-03-12 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665726', 'tblTempUsageDetail_20' ) start [2025-03-12 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665726', 'tblTempUsageDetail_20' ) end [2025-03-12 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665726', 'tblTempVendorCDR_20' ) start [2025-03-12 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665726', 'tblTempVendorCDR_20' ) end [2025-03-12 17:33:21] Production.INFO: ProcessCDR(1,14665726,1,1,2) [2025-03-12 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665726', 'tblTempUsageDetail_20' ) start [2025-03-12 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665726', 'tblTempUsageDetail_20' ) end [2025-03-12 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:33:26] Production.INFO: ==11917== Releasing lock... [2025-03-12 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:33:26] Production.INFO: 69 MB #Memory Used# [2025-03-12 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:34:06 [end_date_ymd] => 2025-03-12 17:34:06 [RateCDR] => 1 ) [2025-03-12 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:34:06' and `end` < '2025-03-12 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:34:19] Production.INFO: count ==5445 [2025-03-12 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:34:06 - End Time 2025-03-12 17:34:06 [2025-03-12 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665731', 'tblTempUsageDetail_20' ) start [2025-03-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665731', 'tblTempUsageDetail_20' ) end [2025-03-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665731', 'tblTempVendorCDR_20' ) start [2025-03-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665731', 'tblTempVendorCDR_20' ) end [2025-03-12 17:34:21] Production.INFO: ProcessCDR(1,14665731,1,1,2) [2025-03-12 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665731', 'tblTempUsageDetail_20' ) start [2025-03-12 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665731', 'tblTempUsageDetail_20' ) end [2025-03-12 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:34:26] Production.INFO: ==11994== Releasing lock... [2025-03-12 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:34:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-12 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:35:05 [end_date_ymd] => 2025-03-12 17:35:05 [RateCDR] => 1 ) [2025-03-12 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:35:05' and `end` < '2025-03-12 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:35:18] Production.INFO: count ==5435 [2025-03-12 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:35:05 - End Time 2025-03-12 17:35:05 [2025-03-12 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665736', 'tblTempUsageDetail_20' ) start [2025-03-12 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665736', 'tblTempUsageDetail_20' ) end [2025-03-12 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665736', 'tblTempVendorCDR_20' ) start [2025-03-12 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665736', 'tblTempVendorCDR_20' ) end [2025-03-12 17:35:21] Production.INFO: ProcessCDR(1,14665736,1,1,2) [2025-03-12 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665736', 'tblTempUsageDetail_20' ) start [2025-03-12 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665736', 'tblTempUsageDetail_20' ) end [2025-03-12 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:35:26] Production.INFO: ==12065== Releasing lock... [2025-03-12 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:35:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-12 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:36:05 [end_date_ymd] => 2025-03-12 17:36:05 [RateCDR] => 1 ) [2025-03-12 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:36:05' and `end` < '2025-03-12 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:36:18] Production.INFO: count ==5416 [2025-03-12 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:36:05 - End Time 2025-03-12 17:36:05 [2025-03-12 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665741', 'tblTempUsageDetail_20' ) start [2025-03-12 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665741', 'tblTempUsageDetail_20' ) end [2025-03-12 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665741', 'tblTempVendorCDR_20' ) start [2025-03-12 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665741', 'tblTempVendorCDR_20' ) end [2025-03-12 17:36:21] Production.INFO: ProcessCDR(1,14665741,1,1,2) [2025-03-12 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665741', 'tblTempUsageDetail_20' ) start [2025-03-12 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665741', 'tblTempUsageDetail_20' ) end [2025-03-12 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:36:25] Production.INFO: ==12137== Releasing lock... [2025-03-12 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:36:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:37:05 [end_date_ymd] => 2025-03-12 17:37:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:37:05' and `end` < '2025-03-12 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:37:18] Production.INFO: count ==5403 [2025-03-12 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:37:05 - End Time 2025-03-12 17:37:05 [2025-03-12 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665746', 'tblTempUsageDetail_20' ) start [2025-03-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665746', 'tblTempUsageDetail_20' ) end [2025-03-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665746', 'tblTempVendorCDR_20' ) start [2025-03-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665746', 'tblTempVendorCDR_20' ) end [2025-03-12 17:37:20] Production.INFO: ProcessCDR(1,14665746,1,1,2) [2025-03-12 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665746', 'tblTempUsageDetail_20' ) start [2025-03-12 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665746', 'tblTempUsageDetail_20' ) end [2025-03-12 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:37:24] Production.INFO: ==12211== Releasing lock... [2025-03-12 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:37:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-12 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:38:04 [end_date_ymd] => 2025-03-12 17:38:04 [RateCDR] => 1 ) [2025-03-12 17:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:38:04' and `end` < '2025-03-12 17:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:38:18] Production.INFO: count ==5383 [2025-03-12 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:38:04 - End Time 2025-03-12 17:38:04 [2025-03-12 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665751', 'tblTempUsageDetail_20' ) start [2025-03-12 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665751', 'tblTempUsageDetail_20' ) end [2025-03-12 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665751', 'tblTempVendorCDR_20' ) start [2025-03-12 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665751', 'tblTempVendorCDR_20' ) end [2025-03-12 17:38:20] Production.INFO: ProcessCDR(1,14665751,1,1,2) [2025-03-12 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665751', 'tblTempUsageDetail_20' ) start [2025-03-12 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665751', 'tblTempUsageDetail_20' ) end [2025-03-12 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:38:25] Production.INFO: ==12284== Releasing lock... [2025-03-12 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:38:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:39:06 [end_date_ymd] => 2025-03-12 17:39:06 [RateCDR] => 1 ) [2025-03-12 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:39:06' and `end` < '2025-03-12 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:39:19] Production.INFO: count ==5376 [2025-03-12 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:39:06 - End Time 2025-03-12 17:39:06 [2025-03-12 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665756', 'tblTempUsageDetail_20' ) start [2025-03-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665756', 'tblTempUsageDetail_20' ) end [2025-03-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665756', 'tblTempVendorCDR_20' ) start [2025-03-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665756', 'tblTempVendorCDR_20' ) end [2025-03-12 17:39:21] Production.INFO: ProcessCDR(1,14665756,1,1,2) [2025-03-12 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665756', 'tblTempUsageDetail_20' ) start [2025-03-12 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665756', 'tblTempUsageDetail_20' ) end [2025-03-12 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:39:26] Production.INFO: ==12364== Releasing lock... [2025-03-12 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:39:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:40:05 [end_date_ymd] => 2025-03-12 17:40:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:40:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:40:19] Production.INFO: count ==5371 [2025-03-12 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:40:05 - End Time 2025-03-12 17:40:05 [2025-03-12 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665761', 'tblTempUsageDetail_20' ) start [2025-03-12 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665761', 'tblTempUsageDetail_20' ) end [2025-03-12 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665761', 'tblTempVendorCDR_20' ) start [2025-03-12 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665761', 'tblTempVendorCDR_20' ) end [2025-03-12 17:40:21] Production.INFO: ProcessCDR(1,14665761,1,1,2) [2025-03-12 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665761', 'tblTempUsageDetail_20' ) start [2025-03-12 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665761', 'tblTempUsageDetail_20' ) end [2025-03-12 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:40:26] Production.INFO: ==12437== Releasing lock... [2025-03-12 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:40:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-12 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:41:06 [end_date_ymd] => 2025-03-12 17:41:06 [RateCDR] => 1 ) [2025-03-12 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:41:06' and `end` < '2025-03-12 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:41:19] Production.INFO: count ==5340 [2025-03-12 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:41:06 - End Time 2025-03-12 17:41:06 [2025-03-12 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665767', 'tblTempUsageDetail_20' ) start [2025-03-12 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665767', 'tblTempUsageDetail_20' ) end [2025-03-12 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665767', 'tblTempVendorCDR_20' ) start [2025-03-12 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665767', 'tblTempVendorCDR_20' ) end [2025-03-12 17:41:21] Production.INFO: ProcessCDR(1,14665767,1,1,2) [2025-03-12 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665767', 'tblTempUsageDetail_20' ) start [2025-03-12 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665767', 'tblTempUsageDetail_20' ) end [2025-03-12 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:41:26] Production.INFO: ==12551== Releasing lock... [2025-03-12 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:41:26] Production.INFO: 68 MB #Memory Used# [2025-03-12 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:42:05 [end_date_ymd] => 2025-03-12 17:42:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:42:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:42:18] Production.INFO: count ==5360 [2025-03-12 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:42:05 - End Time 2025-03-12 17:42:05 [2025-03-12 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665772', 'tblTempUsageDetail_20' ) start [2025-03-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665772', 'tblTempUsageDetail_20' ) end [2025-03-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665772', 'tblTempVendorCDR_20' ) start [2025-03-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665772', 'tblTempVendorCDR_20' ) end [2025-03-12 17:42:21] Production.INFO: ProcessCDR(1,14665772,1,1,2) [2025-03-12 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665772', 'tblTempUsageDetail_20' ) start [2025-03-12 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665772', 'tblTempUsageDetail_20' ) end [2025-03-12 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:42:26] Production.INFO: ==12620== Releasing lock... [2025-03-12 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:42:26] Production.INFO: 68 MB #Memory Used# [2025-03-12 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:43:05 [end_date_ymd] => 2025-03-12 17:43:05 [RateCDR] => 1 ) [2025-03-12 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:43:05' and `end` < '2025-03-12 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:43:19] Production.INFO: count ==5333 [2025-03-12 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:43:05 - End Time 2025-03-12 17:43:05 [2025-03-12 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665777', 'tblTempUsageDetail_20' ) start [2025-03-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665777', 'tblTempUsageDetail_20' ) end [2025-03-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665777', 'tblTempVendorCDR_20' ) start [2025-03-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665777', 'tblTempVendorCDR_20' ) end [2025-03-12 17:43:21] Production.INFO: ProcessCDR(1,14665777,1,1,2) [2025-03-12 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665777', 'tblTempUsageDetail_20' ) start [2025-03-12 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665777', 'tblTempUsageDetail_20' ) end [2025-03-12 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:43:26] Production.INFO: ==12694== Releasing lock... [2025-03-12 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:43:26] Production.INFO: 68 MB #Memory Used# [2025-03-12 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:44:05 [end_date_ymd] => 2025-03-12 17:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 14:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 17:44:18] Production.INFO: count ==5310 [2025-03-12 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:44:05 - End Time 2025-03-12 17:44:05 [2025-03-12 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665782', 'tblTempUsageDetail_20' ) start [2025-03-12 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665782', 'tblTempUsageDetail_20' ) end [2025-03-12 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665782', 'tblTempVendorCDR_20' ) start [2025-03-12 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665782', 'tblTempVendorCDR_20' ) end [2025-03-12 17:44:20] Production.INFO: ProcessCDR(1,14665782,1,1,2) [2025-03-12 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665782', 'tblTempUsageDetail_20' ) start [2025-03-12 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665782', 'tblTempUsageDetail_20' ) end [2025-03-12 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:44:25] Production.INFO: ==12766== Releasing lock... [2025-03-12 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:44:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:45:06 [end_date_ymd] => 2025-03-12 17:45:06 [RateCDR] => 1 ) [2025-03-12 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:45:06' and `end` < '2025-03-12 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:45:19] Production.INFO: count ==5297 [2025-03-12 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:45:06 - End Time 2025-03-12 17:45:06 [2025-03-12 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665787', 'tblTempUsageDetail_20' ) start [2025-03-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665787', 'tblTempUsageDetail_20' ) end [2025-03-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665787', 'tblTempVendorCDR_20' ) start [2025-03-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665787', 'tblTempVendorCDR_20' ) end [2025-03-12 17:45:21] Production.INFO: ProcessCDR(1,14665787,1,1,2) [2025-03-12 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665787', 'tblTempUsageDetail_20' ) start [2025-03-12 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665787', 'tblTempUsageDetail_20' ) end [2025-03-12 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:45:26] Production.INFO: ==12844== Releasing lock... [2025-03-12 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:45:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-12 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:46:05 [end_date_ymd] => 2025-03-12 17:46:05 [RateCDR] => 1 ) [2025-03-12 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:46:05' and `end` < '2025-03-12 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:46:18] Production.INFO: count ==5276 [2025-03-12 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:46:05 - End Time 2025-03-12 17:46:05 [2025-03-12 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665792', 'tblTempUsageDetail_20' ) start [2025-03-12 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665792', 'tblTempUsageDetail_20' ) end [2025-03-12 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665792', 'tblTempVendorCDR_20' ) start [2025-03-12 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665792', 'tblTempVendorCDR_20' ) end [2025-03-12 17:46:21] Production.INFO: ProcessCDR(1,14665792,1,1,2) [2025-03-12 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665792', 'tblTempUsageDetail_20' ) start [2025-03-12 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665792', 'tblTempUsageDetail_20' ) end [2025-03-12 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:46:26] Production.INFO: ==12921== Releasing lock... [2025-03-12 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:47:06 [end_date_ymd] => 2025-03-12 17:47:06 [RateCDR] => 1 ) [2025-03-12 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:47:06' and `end` < '2025-03-12 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:47:19] Production.INFO: count ==5270 [2025-03-12 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:47:06 - End Time 2025-03-12 17:47:06 [2025-03-12 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665797', 'tblTempUsageDetail_20' ) start [2025-03-12 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665797', 'tblTempUsageDetail_20' ) end [2025-03-12 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665797', 'tblTempVendorCDR_20' ) start [2025-03-12 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665797', 'tblTempVendorCDR_20' ) end [2025-03-12 17:47:21] Production.INFO: ProcessCDR(1,14665797,1,1,2) [2025-03-12 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665797', 'tblTempUsageDetail_20' ) start [2025-03-12 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665797', 'tblTempUsageDetail_20' ) end [2025-03-12 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:47:27] Production.INFO: ==12995== Releasing lock... [2025-03-12 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:47:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-12 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:48:05 [end_date_ymd] => 2025-03-12 17:48:05 [RateCDR] => 1 ) [2025-03-12 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:48:05' and `end` < '2025-03-12 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:48:18] Production.INFO: count ==5241 [2025-03-12 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:48:05 - End Time 2025-03-12 17:48:05 [2025-03-12 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665802', 'tblTempUsageDetail_20' ) start [2025-03-12 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665802', 'tblTempUsageDetail_20' ) end [2025-03-12 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665802', 'tblTempVendorCDR_20' ) start [2025-03-12 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665802', 'tblTempVendorCDR_20' ) end [2025-03-12 17:48:21] Production.INFO: ProcessCDR(1,14665802,1,1,2) [2025-03-12 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665802', 'tblTempUsageDetail_20' ) start [2025-03-12 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665802', 'tblTempUsageDetail_20' ) end [2025-03-12 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:48:26] Production.INFO: ==13077== Releasing lock... [2025-03-12 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:48:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:49:06 [end_date_ymd] => 2025-03-12 17:49:06 [RateCDR] => 1 ) [2025-03-12 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:49:06' and `end` < '2025-03-12 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:49:19] Production.INFO: count ==5222 [2025-03-12 17:49:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:49:06 - End Time 2025-03-12 17:49:06 [2025-03-12 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665807', 'tblTempUsageDetail_20' ) start [2025-03-12 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665807', 'tblTempUsageDetail_20' ) end [2025-03-12 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665807', 'tblTempVendorCDR_20' ) start [2025-03-12 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665807', 'tblTempVendorCDR_20' ) end [2025-03-12 17:49:21] Production.INFO: ProcessCDR(1,14665807,1,1,2) [2025-03-12 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665807', 'tblTempUsageDetail_20' ) start [2025-03-12 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665807', 'tblTempUsageDetail_20' ) end [2025-03-12 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:49:27] Production.INFO: ==13149== Releasing lock... [2025-03-12 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:49:27] Production.INFO: 67 MB #Memory Used# [2025-03-12 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:50:06 [end_date_ymd] => 2025-03-12 17:50:06 [RateCDR] => 1 ) [2025-03-12 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:50:06' and `end` < '2025-03-12 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:50:19] Production.INFO: count ==5230 [2025-03-12 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-12 14:50:06 - End Time 2025-03-12 17:50:06 [2025-03-12 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665813', 'tblTempUsageDetail_20' ) start [2025-03-12 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665813', 'tblTempUsageDetail_20' ) end [2025-03-12 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665813', 'tblTempVendorCDR_20' ) start [2025-03-12 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665813', 'tblTempVendorCDR_20' ) end [2025-03-12 17:50:22] Production.INFO: ProcessCDR(1,14665813,1,1,2) [2025-03-12 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665813', 'tblTempUsageDetail_20' ) start [2025-03-12 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665813', 'tblTempUsageDetail_20' ) end [2025-03-12 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:50:27] Production.INFO: ==13229== Releasing lock... [2025-03-12 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:50:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-12 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:51:05 [end_date_ymd] => 2025-03-12 17:51:05 [RateCDR] => 1 ) [2025-03-12 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:51:05' and `end` < '2025-03-12 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:51:19] Production.INFO: count ==5164 [2025-03-12 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:51:05 - End Time 2025-03-12 17:51:05 [2025-03-12 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665818', 'tblTempUsageDetail_20' ) start [2025-03-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665818', 'tblTempUsageDetail_20' ) end [2025-03-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665818', 'tblTempVendorCDR_20' ) start [2025-03-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665818', 'tblTempVendorCDR_20' ) end [2025-03-12 17:51:21] Production.INFO: ProcessCDR(1,14665818,1,1,2) [2025-03-12 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665818', 'tblTempUsageDetail_20' ) start [2025-03-12 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665818', 'tblTempUsageDetail_20' ) end [2025-03-12 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:51:26] Production.INFO: ==13303== Releasing lock... [2025-03-12 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-12 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:52:06 [end_date_ymd] => 2025-03-12 17:52:06 [RateCDR] => 1 ) [2025-03-12 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:52:06' and `end` < '2025-03-12 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:52:19] Production.INFO: count ==5138 [2025-03-12 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:52:06 - End Time 2025-03-12 17:52:06 [2025-03-12 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665823', 'tblTempUsageDetail_20' ) start [2025-03-12 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665823', 'tblTempUsageDetail_20' ) end [2025-03-12 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665823', 'tblTempVendorCDR_20' ) start [2025-03-12 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665823', 'tblTempVendorCDR_20' ) end [2025-03-12 17:52:21] Production.INFO: ProcessCDR(1,14665823,1,1,2) [2025-03-12 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665823', 'tblTempUsageDetail_20' ) start [2025-03-12 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665823', 'tblTempUsageDetail_20' ) end [2025-03-12 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:52:26] Production.INFO: ==13377== Releasing lock... [2025-03-12 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:52:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-12 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:53:04 [end_date_ymd] => 2025-03-12 17:53:04 [RateCDR] => 1 ) [2025-03-12 17:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:53:04' and `end` < '2025-03-12 17:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:53:18] Production.INFO: count ==5121 [2025-03-12 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:53:04 - End Time 2025-03-12 17:53:04 [2025-03-12 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665828', 'tblTempUsageDetail_20' ) start [2025-03-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665828', 'tblTempUsageDetail_20' ) end [2025-03-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665828', 'tblTempVendorCDR_20' ) start [2025-03-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665828', 'tblTempVendorCDR_20' ) end [2025-03-12 17:53:20] Production.INFO: ProcessCDR(1,14665828,1,1,2) [2025-03-12 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665828', 'tblTempUsageDetail_20' ) start [2025-03-12 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665828', 'tblTempUsageDetail_20' ) end [2025-03-12 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:53:25] Production.INFO: ==13452== Releasing lock... [2025-03-12 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:53:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-12 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:54:05 [end_date_ymd] => 2025-03-12 17:54:05 [RateCDR] => 1 ) [2025-03-12 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:54:05' and `end` < '2025-03-12 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:54:18] Production.INFO: count ==5084 [2025-03-12 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:54:05 - End Time 2025-03-12 17:54:05 [2025-03-12 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665833', 'tblTempUsageDetail_20' ) start [2025-03-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665833', 'tblTempUsageDetail_20' ) end [2025-03-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665833', 'tblTempVendorCDR_20' ) start [2025-03-12 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665833', 'tblTempVendorCDR_20' ) end [2025-03-12 17:54:21] Production.INFO: ProcessCDR(1,14665833,1,1,2) [2025-03-12 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665833', 'tblTempUsageDetail_20' ) start [2025-03-12 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665833', 'tblTempUsageDetail_20' ) end [2025-03-12 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:54:26] Production.INFO: ==13526== Releasing lock... [2025-03-12 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:54:26] Production.INFO: 66 MB #Memory Used# [2025-03-12 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:55:05 [end_date_ymd] => 2025-03-12 17:55:05 [RateCDR] => 1 ) [2025-03-12 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:55:05' and `end` < '2025-03-12 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:55:18] Production.INFO: count ==5069 [2025-03-12 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:55:05 - End Time 2025-03-12 17:55:05 [2025-03-12 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665838', 'tblTempUsageDetail_20' ) start [2025-03-12 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665838', 'tblTempUsageDetail_20' ) end [2025-03-12 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665838', 'tblTempVendorCDR_20' ) start [2025-03-12 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665838', 'tblTempVendorCDR_20' ) end [2025-03-12 17:55:20] Production.INFO: ProcessCDR(1,14665838,1,1,2) [2025-03-12 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665838', 'tblTempUsageDetail_20' ) start [2025-03-12 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665838', 'tblTempUsageDetail_20' ) end [2025-03-12 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:55:26] Production.INFO: ==13596== Releasing lock... [2025-03-12 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:55:26] Production.INFO: 66 MB #Memory Used# [2025-03-12 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:56:06 [end_date_ymd] => 2025-03-12 17:56:06 [RateCDR] => 1 ) [2025-03-12 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:56:06' and `end` < '2025-03-12 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:56:19] Production.INFO: count ==5079 [2025-03-12 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:56:06 - End Time 2025-03-12 17:56:06 [2025-03-12 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665843', 'tblTempUsageDetail_20' ) start [2025-03-12 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665843', 'tblTempUsageDetail_20' ) end [2025-03-12 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665843', 'tblTempVendorCDR_20' ) start [2025-03-12 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665843', 'tblTempVendorCDR_20' ) end [2025-03-12 17:56:21] Production.INFO: ProcessCDR(1,14665843,1,1,2) [2025-03-12 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665843', 'tblTempUsageDetail_20' ) start [2025-03-12 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665843', 'tblTempUsageDetail_20' ) end [2025-03-12 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:56:27] Production.INFO: ==13668== Releasing lock... [2025-03-12 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:56:27] Production.INFO: 66 MB #Memory Used# [2025-03-12 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:57:05 [end_date_ymd] => 2025-03-12 17:57:05 [RateCDR] => 1 ) [2025-03-12 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:57:05' and `end` < '2025-03-12 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:57:18] Production.INFO: count ==5076 [2025-03-12 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-12 14:57:05 - End Time 2025-03-12 17:57:05 [2025-03-12 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665848', 'tblTempUsageDetail_20' ) start [2025-03-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665848', 'tblTempUsageDetail_20' ) end [2025-03-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665848', 'tblTempVendorCDR_20' ) start [2025-03-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665848', 'tblTempVendorCDR_20' ) end [2025-03-12 17:57:20] Production.INFO: ProcessCDR(1,14665848,1,1,2) [2025-03-12 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665848', 'tblTempUsageDetail_20' ) start [2025-03-12 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665848', 'tblTempUsageDetail_20' ) end [2025-03-12 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:57:23] Production.INFO: ==13780== Releasing lock... [2025-03-12 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:57:23] Production.INFO: 66 MB #Memory Used# [2025-03-12 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:58:06 [end_date_ymd] => 2025-03-12 17:58:06 [RateCDR] => 1 ) [2025-03-12 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:58:06' and `end` < '2025-03-12 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:58:19] Production.INFO: count ==5041 [2025-03-12 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:58:06 - End Time 2025-03-12 17:58:06 [2025-03-12 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665853', 'tblTempUsageDetail_20' ) start [2025-03-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665853', 'tblTempUsageDetail_20' ) end [2025-03-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665853', 'tblTempVendorCDR_20' ) start [2025-03-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665853', 'tblTempVendorCDR_20' ) end [2025-03-12 17:58:21] Production.INFO: ProcessCDR(1,14665853,1,1,2) [2025-03-12 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665853', 'tblTempUsageDetail_20' ) start [2025-03-12 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665853', 'tblTempUsageDetail_20' ) end [2025-03-12 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:58:26] Production.INFO: ==13853== Releasing lock... [2025-03-12 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:58:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-12 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 14:59:05 [end_date_ymd] => 2025-03-12 17:59:05 [RateCDR] => 1 ) [2025-03-12 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 14:59:05' and `end` < '2025-03-12 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 17:59:18] Production.INFO: count ==5043 [2025-03-12 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-12 14:59:05 - End Time 2025-03-12 17:59:05 [2025-03-12 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665858', 'tblTempUsageDetail_20' ) start [2025-03-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665858', 'tblTempUsageDetail_20' ) end [2025-03-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665858', 'tblTempVendorCDR_20' ) start [2025-03-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665858', 'tblTempVendorCDR_20' ) end [2025-03-12 17:59:21] Production.INFO: ProcessCDR(1,14665858,1,1,2) [2025-03-12 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665858', 'tblTempUsageDetail_20' ) start [2025-03-12 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665858', 'tblTempUsageDetail_20' ) end [2025-03-12 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 17:59:25] Production.INFO: ==13929== Releasing lock... [2025-03-12 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 17:59:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-12 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:00:07 [end_date_ymd] => 2025-03-12 18:00:07 [RateCDR] => 1 ) [2025-03-12 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:00:07' and `end` < '2025-03-12 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:00:20] Production.INFO: count ==5032 [2025-03-12 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-12 15:00:07 - End Time 2025-03-12 18:00:07 [2025-03-12 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665864', 'tblTempUsageDetail_20' ) start [2025-03-12 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665864', 'tblTempUsageDetail_20' ) end [2025-03-12 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665864', 'tblTempVendorCDR_20' ) start [2025-03-12 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665864', 'tblTempVendorCDR_20' ) end [2025-03-12 18:00:22] Production.INFO: ProcessCDR(1,14665864,1,1,2) [2025-03-12 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665864', 'tblTempUsageDetail_20' ) start [2025-03-12 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665864', 'tblTempUsageDetail_20' ) end [2025-03-12 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:00:27] Production.INFO: ==14005== Releasing lock... [2025-03-12 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-12 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:01:05 [end_date_ymd] => 2025-03-12 18:01:05 [RateCDR] => 1 ) [2025-03-12 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:01:05' and `end` < '2025-03-12 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:01:18] Production.INFO: count ==4934 [2025-03-12 18:01:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:01:05 - End Time 2025-03-12 18:01:05 [2025-03-12 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665869', 'tblTempUsageDetail_20' ) start [2025-03-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665869', 'tblTempUsageDetail_20' ) end [2025-03-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665869', 'tblTempVendorCDR_20' ) start [2025-03-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665869', 'tblTempVendorCDR_20' ) end [2025-03-12 18:01:20] Production.INFO: ProcessCDR(1,14665869,1,1,2) [2025-03-12 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665869', 'tblTempUsageDetail_20' ) start [2025-03-12 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665869', 'tblTempUsageDetail_20' ) end [2025-03-12 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:01:25] Production.INFO: ==14094== Releasing lock... [2025-03-12 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:01:25] Production.INFO: 65 MB #Memory Used# [2025-03-12 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:02:05 [end_date_ymd] => 2025-03-12 18:02:05 [RateCDR] => 1 ) [2025-03-12 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:02:05' and `end` < '2025-03-12 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:02:18] Production.INFO: count ==4924 [2025-03-12 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:02:05 - End Time 2025-03-12 18:02:05 [2025-03-12 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665874', 'tblTempUsageDetail_20' ) start [2025-03-12 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665874', 'tblTempUsageDetail_20' ) end [2025-03-12 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665874', 'tblTempVendorCDR_20' ) start [2025-03-12 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665874', 'tblTempVendorCDR_20' ) end [2025-03-12 18:02:20] Production.INFO: ProcessCDR(1,14665874,1,1,2) [2025-03-12 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665874', 'tblTempUsageDetail_20' ) start [2025-03-12 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665874', 'tblTempUsageDetail_20' ) end [2025-03-12 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:02:25] Production.INFO: ==14166== Releasing lock... [2025-03-12 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:02:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-12 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:03:06 [end_date_ymd] => 2025-03-12 18:03:06 [RateCDR] => 1 ) [2025-03-12 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:03:06' and `end` < '2025-03-12 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:03:19] Production.INFO: count ==4914 [2025-03-12 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:03:06 - End Time 2025-03-12 18:03:06 [2025-03-12 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665879', 'tblTempUsageDetail_20' ) start [2025-03-12 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665879', 'tblTempUsageDetail_20' ) end [2025-03-12 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665879', 'tblTempVendorCDR_20' ) start [2025-03-12 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665879', 'tblTempVendorCDR_20' ) end [2025-03-12 18:03:21] Production.INFO: ProcessCDR(1,14665879,1,1,2) [2025-03-12 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665879', 'tblTempUsageDetail_20' ) start [2025-03-12 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665879', 'tblTempUsageDetail_20' ) end [2025-03-12 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:03:24] Production.INFO: ==14238== Releasing lock... [2025-03-12 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:03:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-12 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:04:05 [end_date_ymd] => 2025-03-12 18:04:05 [RateCDR] => 1 ) [2025-03-12 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:04:05' and `end` < '2025-03-12 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:04:18] Production.INFO: count ==4907 [2025-03-12 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:04:05 - End Time 2025-03-12 18:04:05 [2025-03-12 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665884', 'tblTempUsageDetail_20' ) start [2025-03-12 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665884', 'tblTempUsageDetail_20' ) end [2025-03-12 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665884', 'tblTempVendorCDR_20' ) start [2025-03-12 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665884', 'tblTempVendorCDR_20' ) end [2025-03-12 18:04:20] Production.INFO: ProcessCDR(1,14665884,1,1,2) [2025-03-12 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665884', 'tblTempUsageDetail_20' ) start [2025-03-12 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665884', 'tblTempUsageDetail_20' ) end [2025-03-12 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:04:25] Production.INFO: ==14310== Releasing lock... [2025-03-12 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:04:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-12 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:05:05 [end_date_ymd] => 2025-03-12 18:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 15:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 18:05:19] Production.INFO: count ==4886 [2025-03-12 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:05:05 - End Time 2025-03-12 18:05:05 [2025-03-12 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665889', 'tblTempUsageDetail_20' ) start [2025-03-12 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665889', 'tblTempUsageDetail_20' ) end [2025-03-12 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665889', 'tblTempVendorCDR_20' ) start [2025-03-12 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665889', 'tblTempVendorCDR_20' ) end [2025-03-12 18:05:21] Production.INFO: ProcessCDR(1,14665889,1,1,2) [2025-03-12 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665889', 'tblTempUsageDetail_20' ) start [2025-03-12 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665889', 'tblTempUsageDetail_20' ) end [2025-03-12 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:05:26] Production.INFO: ==14384== Releasing lock... [2025-03-12 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:05:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:06:05 [end_date_ymd] => 2025-03-12 18:06:05 [RateCDR] => 1 ) [2025-03-12 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:06:05' and `end` < '2025-03-12 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:06:18] Production.INFO: count ==4889 [2025-03-12 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:06:05 - End Time 2025-03-12 18:06:05 [2025-03-12 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665894', 'tblTempUsageDetail_20' ) start [2025-03-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665894', 'tblTempUsageDetail_20' ) end [2025-03-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665894', 'tblTempVendorCDR_20' ) start [2025-03-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665894', 'tblTempVendorCDR_20' ) end [2025-03-12 18:06:21] Production.INFO: ProcessCDR(1,14665894,1,1,2) [2025-03-12 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665894', 'tblTempUsageDetail_20' ) start [2025-03-12 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665894', 'tblTempUsageDetail_20' ) end [2025-03-12 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:06:26] Production.INFO: ==14456== Releasing lock... [2025-03-12 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:06:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:07:06 [end_date_ymd] => 2025-03-12 18:07:06 [RateCDR] => 1 ) [2025-03-12 18:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:07:06' and `end` < '2025-03-12 18:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:07:18] Production.INFO: count ==4878 [2025-03-12 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:07:06 - End Time 2025-03-12 18:07:06 [2025-03-12 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665899', 'tblTempUsageDetail_20' ) start [2025-03-12 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665899', 'tblTempUsageDetail_20' ) end [2025-03-12 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665899', 'tblTempVendorCDR_20' ) start [2025-03-12 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665899', 'tblTempVendorCDR_20' ) end [2025-03-12 18:07:21] Production.INFO: ProcessCDR(1,14665899,1,1,2) [2025-03-12 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665899', 'tblTempUsageDetail_20' ) start [2025-03-12 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665899', 'tblTempUsageDetail_20' ) end [2025-03-12 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:07:24] Production.INFO: ==14533== Releasing lock... [2025-03-12 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:07:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:08:06 [end_date_ymd] => 2025-03-12 18:08:06 [RateCDR] => 1 ) [2025-03-12 18:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:08:06' and `end` < '2025-03-12 18:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:08:19] Production.INFO: count ==4870 [2025-03-12 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:08:06 - End Time 2025-03-12 18:08:06 [2025-03-12 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665904', 'tblTempUsageDetail_20' ) start [2025-03-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665904', 'tblTempUsageDetail_20' ) end [2025-03-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665904', 'tblTempVendorCDR_20' ) start [2025-03-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665904', 'tblTempVendorCDR_20' ) end [2025-03-12 18:08:21] Production.INFO: ProcessCDR(1,14665904,1,1,2) [2025-03-12 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665904', 'tblTempUsageDetail_20' ) start [2025-03-12 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665904', 'tblTempUsageDetail_20' ) end [2025-03-12 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:08:25] Production.INFO: ==14604== Releasing lock... [2025-03-12 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:08:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:09:05 [end_date_ymd] => 2025-03-12 18:09:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 15:09:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 18:09:17] Production.INFO: count ==4868 [2025-03-12 18:09:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:09:05 - End Time 2025-03-12 18:09:05 [2025-03-12 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665909', 'tblTempUsageDetail_20' ) start [2025-03-12 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665909', 'tblTempUsageDetail_20' ) end [2025-03-12 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665909', 'tblTempVendorCDR_20' ) start [2025-03-12 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665909', 'tblTempVendorCDR_20' ) end [2025-03-12 18:09:20] Production.INFO: ProcessCDR(1,14665909,1,1,2) [2025-03-12 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665909', 'tblTempUsageDetail_20' ) start [2025-03-12 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665909', 'tblTempUsageDetail_20' ) end [2025-03-12 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:09:24] Production.INFO: ==14676== Releasing lock... [2025-03-12 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:09:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:10:06 [end_date_ymd] => 2025-03-12 18:10:06 [RateCDR] => 1 ) [2025-03-12 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:10:06' and `end` < '2025-03-12 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:10:19] Production.INFO: count ==4865 [2025-03-12 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:10:06 - End Time 2025-03-12 18:10:06 [2025-03-12 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665915', 'tblTempUsageDetail_20' ) start [2025-03-12 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665915', 'tblTempUsageDetail_20' ) end [2025-03-12 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665915', 'tblTempVendorCDR_20' ) start [2025-03-12 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665915', 'tblTempVendorCDR_20' ) end [2025-03-12 18:10:21] Production.INFO: ProcessCDR(1,14665915,1,1,2) [2025-03-12 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665915', 'tblTempUsageDetail_20' ) start [2025-03-12 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665915', 'tblTempUsageDetail_20' ) end [2025-03-12 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:10:26] Production.INFO: ==14752== Releasing lock... [2025-03-12 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:10:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-12 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:11:05 [end_date_ymd] => 2025-03-12 18:11:05 [RateCDR] => 1 ) [2025-03-12 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:11:05' and `end` < '2025-03-12 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:11:18] Production.INFO: count ==4788 [2025-03-12 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:11:05 - End Time 2025-03-12 18:11:05 [2025-03-12 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665920', 'tblTempUsageDetail_20' ) start [2025-03-12 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665920', 'tblTempUsageDetail_20' ) end [2025-03-12 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665920', 'tblTempVendorCDR_20' ) start [2025-03-12 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665920', 'tblTempVendorCDR_20' ) end [2025-03-12 18:11:20] Production.INFO: ProcessCDR(1,14665920,1,1,2) [2025-03-12 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665920', 'tblTempUsageDetail_20' ) start [2025-03-12 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665920', 'tblTempUsageDetail_20' ) end [2025-03-12 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:11:25] Production.INFO: ==14832== Releasing lock... [2025-03-12 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:11:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-12 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:12:05 [end_date_ymd] => 2025-03-12 18:12:05 [RateCDR] => 1 ) [2025-03-12 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:12:05' and `end` < '2025-03-12 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:12:19] Production.INFO: count ==4760 [2025-03-12 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:12:05 - End Time 2025-03-12 18:12:05 [2025-03-12 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665925', 'tblTempUsageDetail_20' ) start [2025-03-12 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665925', 'tblTempUsageDetail_20' ) end [2025-03-12 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665925', 'tblTempVendorCDR_20' ) start [2025-03-12 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665925', 'tblTempVendorCDR_20' ) end [2025-03-12 18:12:21] Production.INFO: ProcessCDR(1,14665925,1,1,2) [2025-03-12 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665925', 'tblTempUsageDetail_20' ) start [2025-03-12 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665925', 'tblTempUsageDetail_20' ) end [2025-03-12 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:12:24] Production.INFO: ==14943== Releasing lock... [2025-03-12 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:12:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-12 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:13:06 [end_date_ymd] => 2025-03-12 18:13:06 [RateCDR] => 1 ) [2025-03-12 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:13:06' and `end` < '2025-03-12 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:13:19] Production.INFO: count ==4700 [2025-03-12 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:13:06 - End Time 2025-03-12 18:13:06 [2025-03-12 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665930', 'tblTempUsageDetail_20' ) start [2025-03-12 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665930', 'tblTempUsageDetail_20' ) end [2025-03-12 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665930', 'tblTempVendorCDR_20' ) start [2025-03-12 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665930', 'tblTempVendorCDR_20' ) end [2025-03-12 18:13:21] Production.INFO: ProcessCDR(1,14665930,1,1,2) [2025-03-12 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665930', 'tblTempUsageDetail_20' ) start [2025-03-12 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665930', 'tblTempUsageDetail_20' ) end [2025-03-12 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:13:24] Production.INFO: ==15016== Releasing lock... [2025-03-12 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:13:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-12 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:14:05 [end_date_ymd] => 2025-03-12 18:14:05 [RateCDR] => 1 ) [2025-03-12 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:14:05' and `end` < '2025-03-12 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:14:18] Production.INFO: count ==4676 [2025-03-12 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:14:05 - End Time 2025-03-12 18:14:05 [2025-03-12 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665935', 'tblTempUsageDetail_20' ) start [2025-03-12 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665935', 'tblTempUsageDetail_20' ) end [2025-03-12 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665935', 'tblTempVendorCDR_20' ) start [2025-03-12 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665935', 'tblTempVendorCDR_20' ) end [2025-03-12 18:14:20] Production.INFO: ProcessCDR(1,14665935,1,1,2) [2025-03-12 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665935', 'tblTempUsageDetail_20' ) start [2025-03-12 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665935', 'tblTempUsageDetail_20' ) end [2025-03-12 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:14:23] Production.INFO: ==15089== Releasing lock... [2025-03-12 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:14:23] Production.INFO: 63 MB #Memory Used# [2025-03-12 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:15:05 [end_date_ymd] => 2025-03-12 18:15:05 [RateCDR] => 1 ) [2025-03-12 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:15:05' and `end` < '2025-03-12 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:15:18] Production.INFO: count ==4681 [2025-03-12 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:15:05 - End Time 2025-03-12 18:15:05 [2025-03-12 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665940', 'tblTempUsageDetail_20' ) start [2025-03-12 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665940', 'tblTempUsageDetail_20' ) end [2025-03-12 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665940', 'tblTempVendorCDR_20' ) start [2025-03-12 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665940', 'tblTempVendorCDR_20' ) end [2025-03-12 18:15:20] Production.INFO: ProcessCDR(1,14665940,1,1,2) [2025-03-12 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665940', 'tblTempUsageDetail_20' ) start [2025-03-12 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665940', 'tblTempUsageDetail_20' ) end [2025-03-12 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:15:23] Production.INFO: ==15161== Releasing lock... [2025-03-12 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:15:23] Production.INFO: 63 MB #Memory Used# [2025-03-12 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:16:05 [end_date_ymd] => 2025-03-12 18:16:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 15:16:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 18:16:18] Production.INFO: count ==4668 [2025-03-12 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:16:05 - End Time 2025-03-12 18:16:05 [2025-03-12 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665945', 'tblTempUsageDetail_20' ) start [2025-03-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665945', 'tblTempUsageDetail_20' ) end [2025-03-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665945', 'tblTempVendorCDR_20' ) start [2025-03-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665945', 'tblTempVendorCDR_20' ) end [2025-03-12 18:16:20] Production.INFO: ProcessCDR(1,14665945,1,1,2) [2025-03-12 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665945', 'tblTempUsageDetail_20' ) start [2025-03-12 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665945', 'tblTempUsageDetail_20' ) end [2025-03-12 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:16:24] Production.INFO: ==15234== Releasing lock... [2025-03-12 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:16:24] Production.INFO: 63 MB #Memory Used# [2025-03-12 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:17:04 [end_date_ymd] => 2025-03-12 18:17:04 [RateCDR] => 1 ) [2025-03-12 18:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:17:04' and `end` < '2025-03-12 18:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:17:17] Production.INFO: count ==4660 [2025-03-12 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:17:04 - End Time 2025-03-12 18:17:04 [2025-03-12 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665950', 'tblTempUsageDetail_20' ) start [2025-03-12 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665950', 'tblTempUsageDetail_20' ) end [2025-03-12 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665950', 'tblTempVendorCDR_20' ) start [2025-03-12 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665950', 'tblTempVendorCDR_20' ) end [2025-03-12 18:17:19] Production.INFO: ProcessCDR(1,14665950,1,1,2) [2025-03-12 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665950', 'tblTempUsageDetail_20' ) start [2025-03-12 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665950', 'tblTempUsageDetail_20' ) end [2025-03-12 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:17:24] Production.INFO: ==15308== Releasing lock... [2025-03-12 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:17:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-12 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:18:06 [end_date_ymd] => 2025-03-12 18:18:06 [RateCDR] => 1 ) [2025-03-12 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:18:06' and `end` < '2025-03-12 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:18:19] Production.INFO: count ==4649 [2025-03-12 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:18:06 - End Time 2025-03-12 18:18:06 [2025-03-12 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665955', 'tblTempUsageDetail_20' ) start [2025-03-12 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665955', 'tblTempUsageDetail_20' ) end [2025-03-12 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665955', 'tblTempVendorCDR_20' ) start [2025-03-12 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665955', 'tblTempVendorCDR_20' ) end [2025-03-12 18:18:21] Production.INFO: ProcessCDR(1,14665955,1,1,2) [2025-03-12 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665955', 'tblTempUsageDetail_20' ) start [2025-03-12 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665955', 'tblTempUsageDetail_20' ) end [2025-03-12 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:18:26] Production.INFO: ==15385== Releasing lock... [2025-03-12 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-12 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:19:05 [end_date_ymd] => 2025-03-12 18:19:05 [RateCDR] => 1 ) [2025-03-12 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:19:05' and `end` < '2025-03-12 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:19:17] Production.INFO: count ==4621 [2025-03-12 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:19:05 - End Time 2025-03-12 18:19:05 [2025-03-12 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665960', 'tblTempUsageDetail_20' ) start [2025-03-12 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665960', 'tblTempUsageDetail_20' ) end [2025-03-12 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665960', 'tblTempVendorCDR_20' ) start [2025-03-12 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665960', 'tblTempVendorCDR_20' ) end [2025-03-12 18:19:20] Production.INFO: ProcessCDR(1,14665960,1,1,2) [2025-03-12 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665960', 'tblTempUsageDetail_20' ) start [2025-03-12 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665960', 'tblTempUsageDetail_20' ) end [2025-03-12 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:19:25] Production.INFO: ==15457== Releasing lock... [2025-03-12 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:19:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-12 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:20:06 [end_date_ymd] => 2025-03-12 18:20:06 [RateCDR] => 1 ) [2025-03-12 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:20:06' and `end` < '2025-03-12 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:20:19] Production.INFO: count ==4615 [2025-03-12 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:20:06 - End Time 2025-03-12 18:20:06 [2025-03-12 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665966', 'tblTempUsageDetail_20' ) start [2025-03-12 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665966', 'tblTempUsageDetail_20' ) end [2025-03-12 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665966', 'tblTempVendorCDR_20' ) start [2025-03-12 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665966', 'tblTempVendorCDR_20' ) end [2025-03-12 18:20:21] Production.INFO: ProcessCDR(1,14665966,1,1,2) [2025-03-12 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665966', 'tblTempUsageDetail_20' ) start [2025-03-12 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665966', 'tblTempUsageDetail_20' ) end [2025-03-12 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:20:26] Production.INFO: ==15530== Releasing lock... [2025-03-12 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:20:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-12 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:21:06 [end_date_ymd] => 2025-03-12 18:21:06 [RateCDR] => 1 ) [2025-03-12 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:21:06' and `end` < '2025-03-12 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:21:19] Production.INFO: count ==4560 [2025-03-12 18:21:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:21:06 - End Time 2025-03-12 18:21:06 [2025-03-12 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665971', 'tblTempUsageDetail_20' ) start [2025-03-12 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665971', 'tblTempUsageDetail_20' ) end [2025-03-12 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665971', 'tblTempVendorCDR_20' ) start [2025-03-12 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665971', 'tblTempVendorCDR_20' ) end [2025-03-12 18:21:21] Production.INFO: ProcessCDR(1,14665971,1,1,2) [2025-03-12 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665971', 'tblTempUsageDetail_20' ) start [2025-03-12 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665971', 'tblTempUsageDetail_20' ) end [2025-03-12 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:21:24] Production.INFO: ==15606== Releasing lock... [2025-03-12 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:21:24] Production.INFO: 62 MB #Memory Used# [2025-03-12 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:22:05 [end_date_ymd] => 2025-03-12 18:22:05 [RateCDR] => 1 ) [2025-03-12 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:22:05' and `end` < '2025-03-12 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:22:18] Production.INFO: count ==4553 [2025-03-12 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:22:05 - End Time 2025-03-12 18:22:05 [2025-03-12 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665976', 'tblTempUsageDetail_20' ) start [2025-03-12 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665976', 'tblTempUsageDetail_20' ) end [2025-03-12 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665976', 'tblTempVendorCDR_20' ) start [2025-03-12 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665976', 'tblTempVendorCDR_20' ) end [2025-03-12 18:22:20] Production.INFO: ProcessCDR(1,14665976,1,1,2) [2025-03-12 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665976', 'tblTempUsageDetail_20' ) start [2025-03-12 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665976', 'tblTempUsageDetail_20' ) end [2025-03-12 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:22:25] Production.INFO: ==15677== Releasing lock... [2025-03-12 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:22:25] Production.INFO: 62 MB #Memory Used# [2025-03-12 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:23:05 [end_date_ymd] => 2025-03-12 18:23:05 [RateCDR] => 1 ) [2025-03-12 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:23:05' and `end` < '2025-03-12 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:23:18] Production.INFO: count ==4542 [2025-03-12 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:23:05 - End Time 2025-03-12 18:23:05 [2025-03-12 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665981', 'tblTempUsageDetail_20' ) start [2025-03-12 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665981', 'tblTempUsageDetail_20' ) end [2025-03-12 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665981', 'tblTempVendorCDR_20' ) start [2025-03-12 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665981', 'tblTempVendorCDR_20' ) end [2025-03-12 18:23:20] Production.INFO: ProcessCDR(1,14665981,1,1,2) [2025-03-12 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665981', 'tblTempUsageDetail_20' ) start [2025-03-12 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665981', 'tblTempUsageDetail_20' ) end [2025-03-12 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:23:26] Production.INFO: ==15749== Releasing lock... [2025-03-12 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:23:26] Production.INFO: 62 MB #Memory Used# [2025-03-12 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:24:06 [end_date_ymd] => 2025-03-12 18:24:06 [RateCDR] => 1 ) [2025-03-12 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:24:06' and `end` < '2025-03-12 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:24:18] Production.INFO: count ==4524 [2025-03-12 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:24:06 - End Time 2025-03-12 18:24:06 [2025-03-12 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665986', 'tblTempUsageDetail_20' ) start [2025-03-12 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665986', 'tblTempUsageDetail_20' ) end [2025-03-12 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665986', 'tblTempVendorCDR_20' ) start [2025-03-12 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665986', 'tblTempVendorCDR_20' ) end [2025-03-12 18:24:20] Production.INFO: ProcessCDR(1,14665986,1,1,2) [2025-03-12 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665986', 'tblTempUsageDetail_20' ) start [2025-03-12 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665986', 'tblTempUsageDetail_20' ) end [2025-03-12 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:24:24] Production.INFO: ==15821== Releasing lock... [2025-03-12 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:24:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:25:06 [end_date_ymd] => 2025-03-12 18:25:06 [RateCDR] => 1 ) [2025-03-12 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:25:06' and `end` < '2025-03-12 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:25:19] Production.INFO: count ==4527 [2025-03-12 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:25:06 - End Time 2025-03-12 18:25:06 [2025-03-12 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665991', 'tblTempUsageDetail_20' ) start [2025-03-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665991', 'tblTempUsageDetail_20' ) end [2025-03-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665991', 'tblTempVendorCDR_20' ) start [2025-03-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665991', 'tblTempVendorCDR_20' ) end [2025-03-12 18:25:21] Production.INFO: ProcessCDR(1,14665991,1,1,2) [2025-03-12 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665991', 'tblTempUsageDetail_20' ) start [2025-03-12 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665991', 'tblTempUsageDetail_20' ) end [2025-03-12 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:25:26] Production.INFO: ==15904== Releasing lock... [2025-03-12 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:25:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 18:26:27] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:26:27 [end_date_ymd] => 2025-03-12 18:26:27 [RateCDR] => 1 ) [2025-03-12 18:26:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:26:27' and `end` < '2025-03-12 18:26:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:26:40] Production.INFO: count ==4515 [2025-03-12 18:27:53] Production.ERROR: pbx CDR StartTime 2025-03-12 15:26:27 - End Time 2025-03-12 18:26:27 [2025-03-12 18:27:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665996', 'tblTempUsageDetail_20' ) start [2025-03-12 18:28:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14665996', 'tblTempUsageDetail_20' ) end [2025-03-12 18:28:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665996', 'tblTempVendorCDR_20' ) start [2025-03-12 18:28:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14665996', 'tblTempVendorCDR_20' ) end [2025-03-12 18:28:00] Production.INFO: ProcessCDR(1,14665996,1,1,2) [2025-03-12 18:28:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14665996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:28:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14665996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:28:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14665996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:28:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14665996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:28:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665996', 'tblTempUsageDetail_20' ) start [2025-03-12 18:28:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14665996', 'tblTempUsageDetail_20' ) end [2025-03-12 18:28:52] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:28:52] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:29:00] Production.INFO: ==15979== Releasing lock... [2025-03-12 18:29:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:29:00] Production.INFO: 61.75 MB #Memory Used# [2025-03-12 18:29:28] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:29:28 [end_date_ymd] => 2025-03-12 18:29:28 [RateCDR] => 1 ) [2025-03-12 18:29:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:29:28' and `end` < '2025-03-12 18:29:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:29:41] Production.INFO: count ==4479 [2025-03-12 18:30:37] Production.ERROR: pbx CDR StartTime 2025-03-12 15:29:28 - End Time 2025-03-12 18:29:28 [2025-03-12 18:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666006', 'tblTempUsageDetail_20' ) start [2025-03-12 18:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666006', 'tblTempUsageDetail_20' ) end [2025-03-12 18:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666006', 'tblTempVendorCDR_20' ) start [2025-03-12 18:30:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666006', 'tblTempVendorCDR_20' ) end [2025-03-12 18:30:47] Production.INFO: ProcessCDR(1,14666006,1,1,2) [2025-03-12 18:30:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:30:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:30:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:31:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:31:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666006', 'tblTempUsageDetail_20' ) start [2025-03-12 18:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666006', 'tblTempUsageDetail_20' ) end [2025-03-12 18:32:39] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:32:39] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:32:45] Production.INFO: ==16227== Releasing lock... [2025-03-12 18:32:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:32:45] Production.INFO: 61.5 MB #Memory Used# [2025-03-12 18:33:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:33:16 [end_date_ymd] => 2025-03-12 18:33:16 [RateCDR] => 1 ) [2025-03-12 18:33:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:33:16' and `end` < '2025-03-12 18:33:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:33:29] Production.INFO: count ==4347 [2025-03-12 18:34:12] Production.ERROR: pbx CDR StartTime 2025-03-12 15:33:16 - End Time 2025-03-12 18:33:16 [2025-03-12 18:34:12] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:34:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666022', 'tblTempUsageDetail_20' ) start [2025-03-12 18:34:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666022', 'tblTempUsageDetail_20' ) end [2025-03-12 18:34:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666022', 'tblTempVendorCDR_20' ) start [2025-03-12 18:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666022', 'tblTempVendorCDR_20' ) end [2025-03-12 18:34:16] Production.INFO: ProcessCDR(1,14666022,1,1,2) [2025-03-12 18:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:34:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:34:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666022', 'tblTempUsageDetail_20' ) start [2025-03-12 18:34:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666022', 'tblTempUsageDetail_20' ) end [2025-03-12 18:34:58] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:34:58] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:34:58] Production.INFO: ==16514== Releasing lock... [2025-03-12 18:34:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:34:58] Production.INFO: 60.5 MB #Memory Used# [2025-03-12 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:35:06 [end_date_ymd] => 2025-03-12 18:35:06 [RateCDR] => 1 ) [2025-03-12 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:35:06' and `end` < '2025-03-12 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:35:19] Production.INFO: count ==4319 [2025-03-12 18:35:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:35:06 - End Time 2025-03-12 18:35:06 [2025-03-12 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666030', 'tblTempUsageDetail_20' ) start [2025-03-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666030', 'tblTempUsageDetail_20' ) end [2025-03-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666030', 'tblTempVendorCDR_20' ) start [2025-03-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666030', 'tblTempVendorCDR_20' ) end [2025-03-12 18:35:21] Production.INFO: ProcessCDR(1,14666030,1,1,2) [2025-03-12 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666030', 'tblTempUsageDetail_20' ) start [2025-03-12 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666030', 'tblTempUsageDetail_20' ) end [2025-03-12 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:35:26] Production.INFO: ==16660== Releasing lock... [2025-03-12 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:35:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-12 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:36:05 [end_date_ymd] => 2025-03-12 18:36:05 [RateCDR] => 1 ) [2025-03-12 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:36:05' and `end` < '2025-03-12 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:36:18] Production.INFO: count ==4312 [2025-03-12 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:36:05 - End Time 2025-03-12 18:36:05 [2025-03-12 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666035', 'tblTempUsageDetail_20' ) start [2025-03-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666035', 'tblTempUsageDetail_20' ) end [2025-03-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666035', 'tblTempVendorCDR_20' ) start [2025-03-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666035', 'tblTempVendorCDR_20' ) end [2025-03-12 18:36:20] Production.INFO: ProcessCDR(1,14666035,1,1,2) [2025-03-12 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666035', 'tblTempUsageDetail_20' ) start [2025-03-12 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666035', 'tblTempUsageDetail_20' ) end [2025-03-12 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:36:23] Production.INFO: ==16733== Releasing lock... [2025-03-12 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:36:23] Production.INFO: 60.25 MB #Memory Used# [2025-03-12 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:37:05 [end_date_ymd] => 2025-03-12 18:37:05 [RateCDR] => 1 ) [2025-03-12 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:37:05' and `end` < '2025-03-12 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:37:18] Production.INFO: count ==4283 [2025-03-12 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:37:05 - End Time 2025-03-12 18:37:05 [2025-03-12 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666040', 'tblTempUsageDetail_20' ) start [2025-03-12 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666040', 'tblTempUsageDetail_20' ) end [2025-03-12 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666040', 'tblTempVendorCDR_20' ) start [2025-03-12 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666040', 'tblTempVendorCDR_20' ) end [2025-03-12 18:37:20] Production.INFO: ProcessCDR(1,14666040,1,1,2) [2025-03-12 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666040', 'tblTempUsageDetail_20' ) start [2025-03-12 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666040', 'tblTempUsageDetail_20' ) end [2025-03-12 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:37:23] Production.INFO: ==16808== Releasing lock... [2025-03-12 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:37:23] Production.INFO: 60 MB #Memory Used# [2025-03-12 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:38:05 [end_date_ymd] => 2025-03-12 18:38:05 [RateCDR] => 1 ) [2025-03-12 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:38:05' and `end` < '2025-03-12 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:38:18] Production.INFO: count ==4280 [2025-03-12 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:38:05 - End Time 2025-03-12 18:38:05 [2025-03-12 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666045', 'tblTempUsageDetail_20' ) start [2025-03-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666045', 'tblTempUsageDetail_20' ) end [2025-03-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666045', 'tblTempVendorCDR_20' ) start [2025-03-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666045', 'tblTempVendorCDR_20' ) end [2025-03-12 18:38:20] Production.INFO: ProcessCDR(1,14666045,1,1,2) [2025-03-12 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666045', 'tblTempUsageDetail_20' ) start [2025-03-12 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666045', 'tblTempUsageDetail_20' ) end [2025-03-12 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:38:23] Production.INFO: ==16881== Releasing lock... [2025-03-12 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:38:23] Production.INFO: 60 MB #Memory Used# [2025-03-12 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:39:04 [end_date_ymd] => 2025-03-12 18:39:04 [RateCDR] => 1 ) [2025-03-12 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:39:04' and `end` < '2025-03-12 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:39:17] Production.INFO: count ==4286 [2025-03-12 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:39:04 - End Time 2025-03-12 18:39:04 [2025-03-12 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666050', 'tblTempUsageDetail_20' ) start [2025-03-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666050', 'tblTempUsageDetail_20' ) end [2025-03-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666050', 'tblTempVendorCDR_20' ) start [2025-03-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666050', 'tblTempVendorCDR_20' ) end [2025-03-12 18:39:19] Production.INFO: ProcessCDR(1,14666050,1,1,2) [2025-03-12 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666050', 'tblTempUsageDetail_20' ) start [2025-03-12 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666050', 'tblTempUsageDetail_20' ) end [2025-03-12 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:39:24] Production.INFO: ==16958== Releasing lock... [2025-03-12 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:39:24] Production.INFO: 60 MB #Memory Used# [2025-03-12 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:40:06 [end_date_ymd] => 2025-03-12 18:40:06 [RateCDR] => 1 ) [2025-03-12 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:40:06' and `end` < '2025-03-12 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:40:19] Production.INFO: count ==4273 [2025-03-12 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:40:06 - End Time 2025-03-12 18:40:06 [2025-03-12 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666056', 'tblTempUsageDetail_20' ) start [2025-03-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666056', 'tblTempUsageDetail_20' ) end [2025-03-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666056', 'tblTempVendorCDR_20' ) start [2025-03-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666056', 'tblTempVendorCDR_20' ) end [2025-03-12 18:40:20] Production.INFO: ProcessCDR(1,14666056,1,1,2) [2025-03-12 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666056', 'tblTempUsageDetail_20' ) start [2025-03-12 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666056', 'tblTempUsageDetail_20' ) end [2025-03-12 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:40:24] Production.INFO: ==17038== Releasing lock... [2025-03-12 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:40:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-12 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:41:06 [end_date_ymd] => 2025-03-12 18:41:06 [RateCDR] => 1 ) [2025-03-12 18:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:41:06' and `end` < '2025-03-12 18:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:41:19] Production.INFO: count ==4228 [2025-03-12 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-12 15:41:06 - End Time 2025-03-12 18:41:06 [2025-03-12 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666061', 'tblTempUsageDetail_20' ) start [2025-03-12 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666061', 'tblTempUsageDetail_20' ) end [2025-03-12 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666061', 'tblTempVendorCDR_20' ) start [2025-03-12 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666061', 'tblTempVendorCDR_20' ) end [2025-03-12 18:41:21] Production.INFO: ProcessCDR(1,14666061,1,1,2) [2025-03-12 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666061', 'tblTempUsageDetail_20' ) start [2025-03-12 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666061', 'tblTempUsageDetail_20' ) end [2025-03-12 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:41:26] Production.INFO: ==17115== Releasing lock... [2025-03-12 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:41:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-12 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:42:05 [end_date_ymd] => 2025-03-12 18:42:05 [RateCDR] => 1 ) [2025-03-12 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:42:05' and `end` < '2025-03-12 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:42:18] Production.INFO: count ==4215 [2025-03-12 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:42:05 - End Time 2025-03-12 18:42:05 [2025-03-12 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666066', 'tblTempUsageDetail_20' ) start [2025-03-12 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666066', 'tblTempUsageDetail_20' ) end [2025-03-12 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666066', 'tblTempVendorCDR_20' ) start [2025-03-12 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666066', 'tblTempVendorCDR_20' ) end [2025-03-12 18:42:19] Production.INFO: ProcessCDR(1,14666066,1,1,2) [2025-03-12 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666066', 'tblTempUsageDetail_20' ) start [2025-03-12 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666066', 'tblTempUsageDetail_20' ) end [2025-03-12 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:42:24] Production.INFO: ==17199== Releasing lock... [2025-03-12 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:42:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-12 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:43:06 [end_date_ymd] => 2025-03-12 18:43:06 [RateCDR] => 1 ) [2025-03-12 18:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:43:06' and `end` < '2025-03-12 18:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:43:19] Production.INFO: count ==4181 [2025-03-12 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:43:06 - End Time 2025-03-12 18:43:06 [2025-03-12 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666071', 'tblTempUsageDetail_20' ) start [2025-03-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666071', 'tblTempUsageDetail_20' ) end [2025-03-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666071', 'tblTempVendorCDR_20' ) start [2025-03-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666071', 'tblTempVendorCDR_20' ) end [2025-03-12 18:43:20] Production.INFO: ProcessCDR(1,14666071,1,1,2) [2025-03-12 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666071', 'tblTempUsageDetail_20' ) start [2025-03-12 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666071', 'tblTempUsageDetail_20' ) end [2025-03-12 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:43:25] Production.INFO: ==17317== Releasing lock... [2025-03-12 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:43:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-12 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:44:05 [end_date_ymd] => 2025-03-12 18:44:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 15:44:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 18:44:18] Production.INFO: count ==4148 [2025-03-12 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:44:05 - End Time 2025-03-12 18:44:05 [2025-03-12 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666076', 'tblTempUsageDetail_20' ) start [2025-03-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666076', 'tblTempUsageDetail_20' ) end [2025-03-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666076', 'tblTempVendorCDR_20' ) start [2025-03-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666076', 'tblTempVendorCDR_20' ) end [2025-03-12 18:44:20] Production.INFO: ProcessCDR(1,14666076,1,1,2) [2025-03-12 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666076', 'tblTempUsageDetail_20' ) start [2025-03-12 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666076', 'tblTempUsageDetail_20' ) end [2025-03-12 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:44:23] Production.INFO: ==17394== Releasing lock... [2025-03-12 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:44:23] Production.INFO: 59 MB #Memory Used# [2025-03-12 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:45:05 [end_date_ymd] => 2025-03-12 18:45:05 [RateCDR] => 1 ) [2025-03-12 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:45:05' and `end` < '2025-03-12 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:45:18] Production.INFO: count ==4139 [2025-03-12 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:45:05 - End Time 2025-03-12 18:45:05 [2025-03-12 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666081', 'tblTempUsageDetail_20' ) start [2025-03-12 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666081', 'tblTempUsageDetail_20' ) end [2025-03-12 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666081', 'tblTempVendorCDR_20' ) start [2025-03-12 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666081', 'tblTempVendorCDR_20' ) end [2025-03-12 18:45:19] Production.INFO: ProcessCDR(1,14666081,1,1,2) [2025-03-12 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666081', 'tblTempUsageDetail_20' ) start [2025-03-12 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666081', 'tblTempUsageDetail_20' ) end [2025-03-12 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:45:23] Production.INFO: ==17470== Releasing lock... [2025-03-12 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:45:23] Production.INFO: 59 MB #Memory Used# [2025-03-12 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:46:05 [end_date_ymd] => 2025-03-12 18:46:05 [RateCDR] => 1 ) [2025-03-12 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:46:05' and `end` < '2025-03-12 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:46:18] Production.INFO: count ==4129 [2025-03-12 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:46:05 - End Time 2025-03-12 18:46:05 [2025-03-12 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666086', 'tblTempUsageDetail_20' ) start [2025-03-12 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666086', 'tblTempUsageDetail_20' ) end [2025-03-12 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666086', 'tblTempVendorCDR_20' ) start [2025-03-12 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666086', 'tblTempVendorCDR_20' ) end [2025-03-12 18:46:19] Production.INFO: ProcessCDR(1,14666086,1,1,2) [2025-03-12 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666086', 'tblTempUsageDetail_20' ) start [2025-03-12 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666086', 'tblTempUsageDetail_20' ) end [2025-03-12 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:46:24] Production.INFO: ==17556== Releasing lock... [2025-03-12 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:46:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-12 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:47:06 [end_date_ymd] => 2025-03-12 18:47:06 [RateCDR] => 1 ) [2025-03-12 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:47:06' and `end` < '2025-03-12 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:47:18] Production.INFO: count ==4113 [2025-03-12 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:47:06 - End Time 2025-03-12 18:47:06 [2025-03-12 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666091', 'tblTempUsageDetail_20' ) start [2025-03-12 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666091', 'tblTempUsageDetail_20' ) end [2025-03-12 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666091', 'tblTempVendorCDR_20' ) start [2025-03-12 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666091', 'tblTempVendorCDR_20' ) end [2025-03-12 18:47:20] Production.INFO: ProcessCDR(1,14666091,1,1,2) [2025-03-12 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666091', 'tblTempUsageDetail_20' ) start [2025-03-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666091', 'tblTempUsageDetail_20' ) end [2025-03-12 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:47:24] Production.INFO: ==17639== Releasing lock... [2025-03-12 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:47:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-12 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:48:05 [end_date_ymd] => 2025-03-12 18:48:05 [RateCDR] => 1 ) [2025-03-12 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:48:05' and `end` < '2025-03-12 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:48:17] Production.INFO: count ==4090 [2025-03-12 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:48:05 - End Time 2025-03-12 18:48:05 [2025-03-12 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666096', 'tblTempUsageDetail_20' ) start [2025-03-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666096', 'tblTempUsageDetail_20' ) end [2025-03-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666096', 'tblTempVendorCDR_20' ) start [2025-03-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666096', 'tblTempVendorCDR_20' ) end [2025-03-12 18:48:19] Production.INFO: ProcessCDR(1,14666096,1,1,2) [2025-03-12 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666096', 'tblTempUsageDetail_20' ) start [2025-03-12 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666096', 'tblTempUsageDetail_20' ) end [2025-03-12 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:48:23] Production.INFO: ==17718== Releasing lock... [2025-03-12 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:48:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-12 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:49:05 [end_date_ymd] => 2025-03-12 18:49:05 [RateCDR] => 1 ) [2025-03-12 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:49:05' and `end` < '2025-03-12 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:49:18] Production.INFO: count ==4081 [2025-03-12 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:49:05 - End Time 2025-03-12 18:49:05 [2025-03-12 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666101', 'tblTempUsageDetail_20' ) start [2025-03-12 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666101', 'tblTempUsageDetail_20' ) end [2025-03-12 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666101', 'tblTempVendorCDR_20' ) start [2025-03-12 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666101', 'tblTempVendorCDR_20' ) end [2025-03-12 18:49:20] Production.INFO: ProcessCDR(1,14666101,1,1,2) [2025-03-12 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666101', 'tblTempUsageDetail_20' ) start [2025-03-12 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666101', 'tblTempUsageDetail_20' ) end [2025-03-12 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:49:25] Production.INFO: ==17798== Releasing lock... [2025-03-12 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:49:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-12 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:50:05 [end_date_ymd] => 2025-03-12 18:50:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 15:50:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 18:50:18] Production.INFO: count ==4052 [2025-03-12 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:50:05 - End Time 2025-03-12 18:50:05 [2025-03-12 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666106', 'tblTempUsageDetail_20' ) start [2025-03-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666106', 'tblTempUsageDetail_20' ) end [2025-03-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666106', 'tblTempVendorCDR_20' ) start [2025-03-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666106', 'tblTempVendorCDR_20' ) end [2025-03-12 18:50:20] Production.INFO: ProcessCDR(1,14666106,1,1,2) [2025-03-12 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666106', 'tblTempUsageDetail_20' ) start [2025-03-12 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666106', 'tblTempUsageDetail_20' ) end [2025-03-12 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:50:25] Production.INFO: ==17877== Releasing lock... [2025-03-12 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:50:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-12 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:51:06 [end_date_ymd] => 2025-03-12 18:51:06 [RateCDR] => 1 ) [2025-03-12 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:51:06' and `end` < '2025-03-12 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:51:18] Production.INFO: count ==3951 [2025-03-12 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:51:06 - End Time 2025-03-12 18:51:06 [2025-03-12 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666112', 'tblTempUsageDetail_20' ) start [2025-03-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666112', 'tblTempUsageDetail_20' ) end [2025-03-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666112', 'tblTempVendorCDR_20' ) start [2025-03-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666112', 'tblTempVendorCDR_20' ) end [2025-03-12 18:51:20] Production.INFO: ProcessCDR(1,14666112,1,1,2) [2025-03-12 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666112', 'tblTempUsageDetail_20' ) start [2025-03-12 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666112', 'tblTempUsageDetail_20' ) end [2025-03-12 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:51:23] Production.INFO: ==17952== Releasing lock... [2025-03-12 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:51:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-12 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:52:05 [end_date_ymd] => 2025-03-12 18:52:05 [RateCDR] => 1 ) [2025-03-12 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:52:05' and `end` < '2025-03-12 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:52:17] Production.INFO: count ==3913 [2025-03-12 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:52:05 - End Time 2025-03-12 18:52:05 [2025-03-12 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666117', 'tblTempUsageDetail_20' ) start [2025-03-12 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666117', 'tblTempUsageDetail_20' ) end [2025-03-12 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666117', 'tblTempVendorCDR_20' ) start [2025-03-12 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666117', 'tblTempVendorCDR_20' ) end [2025-03-12 18:52:19] Production.INFO: ProcessCDR(1,14666117,1,1,2) [2025-03-12 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666117', 'tblTempUsageDetail_20' ) start [2025-03-12 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666117', 'tblTempUsageDetail_20' ) end [2025-03-12 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:52:24] Production.INFO: ==18027== Releasing lock... [2025-03-12 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:52:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-12 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:53:05 [end_date_ymd] => 2025-03-12 18:53:05 [RateCDR] => 1 ) [2025-03-12 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:53:05' and `end` < '2025-03-12 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:53:18] Production.INFO: count ==3891 [2025-03-12 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:53:05 - End Time 2025-03-12 18:53:05 [2025-03-12 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666122', 'tblTempUsageDetail_20' ) start [2025-03-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666122', 'tblTempUsageDetail_20' ) end [2025-03-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666122', 'tblTempVendorCDR_20' ) start [2025-03-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666122', 'tblTempVendorCDR_20' ) end [2025-03-12 18:53:20] Production.INFO: ProcessCDR(1,14666122,1,1,2) [2025-03-12 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666122', 'tblTempUsageDetail_20' ) start [2025-03-12 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666122', 'tblTempUsageDetail_20' ) end [2025-03-12 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:53:25] Production.INFO: ==18106== Releasing lock... [2025-03-12 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:53:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-12 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:54:05 [end_date_ymd] => 2025-03-12 18:54:05 [RateCDR] => 1 ) [2025-03-12 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:54:05' and `end` < '2025-03-12 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:54:18] Production.INFO: count ==3867 [2025-03-12 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:54:05 - End Time 2025-03-12 18:54:05 [2025-03-12 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666127', 'tblTempUsageDetail_20' ) start [2025-03-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666127', 'tblTempUsageDetail_20' ) end [2025-03-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666127', 'tblTempVendorCDR_20' ) start [2025-03-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666127', 'tblTempVendorCDR_20' ) end [2025-03-12 18:54:19] Production.INFO: ProcessCDR(1,14666127,1,1,2) [2025-03-12 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666127', 'tblTempUsageDetail_20' ) start [2025-03-12 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666127', 'tblTempUsageDetail_20' ) end [2025-03-12 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:54:24] Production.INFO: ==18179== Releasing lock... [2025-03-12 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:54:24] Production.INFO: 57 MB #Memory Used# [2025-03-12 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:55:06 [end_date_ymd] => 2025-03-12 18:55:06 [RateCDR] => 1 ) [2025-03-12 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:55:06' and `end` < '2025-03-12 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:55:19] Production.INFO: count ==3851 [2025-03-12 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:55:06 - End Time 2025-03-12 18:55:06 [2025-03-12 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666132', 'tblTempUsageDetail_20' ) start [2025-03-12 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666132', 'tblTempUsageDetail_20' ) end [2025-03-12 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666132', 'tblTempVendorCDR_20' ) start [2025-03-12 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666132', 'tblTempVendorCDR_20' ) end [2025-03-12 18:55:20] Production.INFO: ProcessCDR(1,14666132,1,1,2) [2025-03-12 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666132', 'tblTempUsageDetail_20' ) start [2025-03-12 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666132', 'tblTempUsageDetail_20' ) end [2025-03-12 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:55:24] Production.INFO: ==18257== Releasing lock... [2025-03-12 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:55:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-12 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:56:05 [end_date_ymd] => 2025-03-12 18:56:05 [RateCDR] => 1 ) [2025-03-12 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:56:05' and `end` < '2025-03-12 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:56:18] Production.INFO: count ==3844 [2025-03-12 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:56:05 - End Time 2025-03-12 18:56:05 [2025-03-12 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666137', 'tblTempUsageDetail_20' ) start [2025-03-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666137', 'tblTempUsageDetail_20' ) end [2025-03-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666137', 'tblTempVendorCDR_20' ) start [2025-03-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666137', 'tblTempVendorCDR_20' ) end [2025-03-12 18:56:19] Production.INFO: ProcessCDR(1,14666137,1,1,2) [2025-03-12 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666137', 'tblTempUsageDetail_20' ) start [2025-03-12 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666137', 'tblTempUsageDetail_20' ) end [2025-03-12 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:56:23] Production.INFO: ==18339== Releasing lock... [2025-03-12 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:56:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-12 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:57:06 [end_date_ymd] => 2025-03-12 18:57:06 [RateCDR] => 1 ) [2025-03-12 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:57:06' and `end` < '2025-03-12 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:57:18] Production.INFO: count ==3832 [2025-03-12 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-12 15:57:06 - End Time 2025-03-12 18:57:06 [2025-03-12 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666142', 'tblTempUsageDetail_20' ) start [2025-03-12 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666142', 'tblTempUsageDetail_20' ) end [2025-03-12 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666142', 'tblTempVendorCDR_20' ) start [2025-03-12 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666142', 'tblTempVendorCDR_20' ) end [2025-03-12 18:57:20] Production.INFO: ProcessCDR(1,14666142,1,1,2) [2025-03-12 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666142', 'tblTempUsageDetail_20' ) start [2025-03-12 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666142', 'tblTempUsageDetail_20' ) end [2025-03-12 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:57:23] Production.INFO: ==18412== Releasing lock... [2025-03-12 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:57:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-12 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:58:04 [end_date_ymd] => 2025-03-12 18:58:04 [RateCDR] => 1 ) [2025-03-12 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:58:04' and `end` < '2025-03-12 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:58:17] Production.INFO: count ==3806 [2025-03-12 18:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 15:58:04 - End Time 2025-03-12 18:58:04 [2025-03-12 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666147', 'tblTempUsageDetail_20' ) start [2025-03-12 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666147', 'tblTempUsageDetail_20' ) end [2025-03-12 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666147', 'tblTempVendorCDR_20' ) start [2025-03-12 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666147', 'tblTempVendorCDR_20' ) end [2025-03-12 18:58:18] Production.INFO: ProcessCDR(1,14666147,1,1,2) [2025-03-12 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666147', 'tblTempUsageDetail_20' ) start [2025-03-12 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666147', 'tblTempUsageDetail_20' ) end [2025-03-12 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:58:22] Production.INFO: ==18485== Releasing lock... [2025-03-12 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:58:22] Production.INFO: 56.5 MB #Memory Used# [2025-03-12 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 15:59:05 [end_date_ymd] => 2025-03-12 18:59:05 [RateCDR] => 1 ) [2025-03-12 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 15:59:05' and `end` < '2025-03-12 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 18:59:17] Production.INFO: count ==3778 [2025-03-12 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-12 15:59:05 - End Time 2025-03-12 18:59:05 [2025-03-12 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666152', 'tblTempUsageDetail_20' ) start [2025-03-12 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666152', 'tblTempUsageDetail_20' ) end [2025-03-12 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666152', 'tblTempVendorCDR_20' ) start [2025-03-12 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666152', 'tblTempVendorCDR_20' ) end [2025-03-12 18:59:19] Production.INFO: ProcessCDR(1,14666152,1,1,2) [2025-03-12 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666152', 'tblTempUsageDetail_20' ) start [2025-03-12 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666152', 'tblTempUsageDetail_20' ) end [2025-03-12 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 18:59:24] Production.INFO: ==18596== Releasing lock... [2025-03-12 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 18:59:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-12 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:00:06 [end_date_ymd] => 2025-03-12 19:00:06 [RateCDR] => 1 ) [2025-03-12 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:00:06' and `end` < '2025-03-12 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:00:19] Production.INFO: count ==3749 [2025-03-12 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:00:06 - End Time 2025-03-12 19:00:06 [2025-03-12 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666158', 'tblTempUsageDetail_20' ) start [2025-03-12 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666158', 'tblTempUsageDetail_20' ) end [2025-03-12 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666158', 'tblTempVendorCDR_20' ) start [2025-03-12 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666158', 'tblTempVendorCDR_20' ) end [2025-03-12 19:00:20] Production.INFO: ProcessCDR(1,14666158,1,1,2) [2025-03-12 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666158', 'tblTempUsageDetail_20' ) start [2025-03-12 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666158', 'tblTempUsageDetail_20' ) end [2025-03-12 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:00:24] Production.INFO: ==18677== Releasing lock... [2025-03-12 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:00:24] Production.INFO: 56 MB #Memory Used# [2025-03-12 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:01:05 [end_date_ymd] => 2025-03-12 19:01:05 [RateCDR] => 1 ) [2025-03-12 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:01:05' and `end` < '2025-03-12 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:01:18] Production.INFO: count ==3674 [2025-03-12 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:01:05 - End Time 2025-03-12 19:01:05 [2025-03-12 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666163', 'tblTempUsageDetail_20' ) start [2025-03-12 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666163', 'tblTempUsageDetail_20' ) end [2025-03-12 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666163', 'tblTempVendorCDR_20' ) start [2025-03-12 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666163', 'tblTempVendorCDR_20' ) end [2025-03-12 19:01:20] Production.INFO: ProcessCDR(1,14666163,1,1,2) [2025-03-12 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666163', 'tblTempUsageDetail_20' ) start [2025-03-12 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666163', 'tblTempUsageDetail_20' ) end [2025-03-12 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:01:24] Production.INFO: ==18846== Releasing lock... [2025-03-12 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:01:24] Production.INFO: 56 MB #Memory Used# [2025-03-12 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:02:05 [end_date_ymd] => 2025-03-12 19:02:05 [RateCDR] => 1 ) [2025-03-12 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:02:05' and `end` < '2025-03-12 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:02:18] Production.INFO: count ==3657 [2025-03-12 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:02:05 - End Time 2025-03-12 19:02:05 [2025-03-12 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666168', 'tblTempUsageDetail_20' ) start [2025-03-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666168', 'tblTempUsageDetail_20' ) end [2025-03-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666168', 'tblTempVendorCDR_20' ) start [2025-03-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666168', 'tblTempVendorCDR_20' ) end [2025-03-12 19:02:19] Production.INFO: ProcessCDR(1,14666168,1,1,2) [2025-03-12 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666168', 'tblTempUsageDetail_20' ) start [2025-03-12 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666168', 'tblTempUsageDetail_20' ) end [2025-03-12 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:02:23] Production.INFO: ==18923== Releasing lock... [2025-03-12 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:02:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-12 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:03:05 [end_date_ymd] => 2025-03-12 19:03:05 [RateCDR] => 1 ) [2025-03-12 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:03:05' and `end` < '2025-03-12 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:03:18] Production.INFO: count ==3654 [2025-03-12 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:03:05 - End Time 2025-03-12 19:03:05 [2025-03-12 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666173', 'tblTempUsageDetail_20' ) start [2025-03-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666173', 'tblTempUsageDetail_20' ) end [2025-03-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666173', 'tblTempVendorCDR_20' ) start [2025-03-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666173', 'tblTempVendorCDR_20' ) end [2025-03-12 19:03:19] Production.INFO: ProcessCDR(1,14666173,1,1,2) [2025-03-12 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666173', 'tblTempUsageDetail_20' ) start [2025-03-12 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666173', 'tblTempUsageDetail_20' ) end [2025-03-12 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:03:25] Production.INFO: ==18998== Releasing lock... [2025-03-12 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:03:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-12 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:04:06 [end_date_ymd] => 2025-03-12 19:04:06 [RateCDR] => 1 ) [2025-03-12 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:04:06' and `end` < '2025-03-12 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:04:18] Production.INFO: count ==3643 [2025-03-12 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:04:06 - End Time 2025-03-12 19:04:06 [2025-03-12 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666178', 'tblTempUsageDetail_20' ) start [2025-03-12 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666178', 'tblTempUsageDetail_20' ) end [2025-03-12 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666178', 'tblTempVendorCDR_20' ) start [2025-03-12 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666178', 'tblTempVendorCDR_20' ) end [2025-03-12 19:04:20] Production.INFO: ProcessCDR(1,14666178,1,1,2) [2025-03-12 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666178', 'tblTempUsageDetail_20' ) start [2025-03-12 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666178', 'tblTempUsageDetail_20' ) end [2025-03-12 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:04:23] Production.INFO: ==19075== Releasing lock... [2025-03-12 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:04:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-12 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:05:05 [end_date_ymd] => 2025-03-12 19:05:05 [RateCDR] => 1 ) [2025-03-12 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:05:05' and `end` < '2025-03-12 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:05:18] Production.INFO: count ==3608 [2025-03-12 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:05:05 - End Time 2025-03-12 19:05:05 [2025-03-12 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666183', 'tblTempUsageDetail_20' ) start [2025-03-12 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666183', 'tblTempUsageDetail_20' ) end [2025-03-12 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666183', 'tblTempVendorCDR_20' ) start [2025-03-12 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666183', 'tblTempVendorCDR_20' ) end [2025-03-12 19:05:19] Production.INFO: ProcessCDR(1,14666183,1,1,2) [2025-03-12 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666183', 'tblTempUsageDetail_20' ) start [2025-03-12 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666183', 'tblTempUsageDetail_20' ) end [2025-03-12 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:05:24] Production.INFO: ==19235== Releasing lock... [2025-03-12 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:05:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-12 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:06:06 [end_date_ymd] => 2025-03-12 19:06:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:06:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:06:18] Production.INFO: count ==3615 [2025-03-12 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:06:06 - End Time 2025-03-12 19:06:06 [2025-03-12 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666188', 'tblTempUsageDetail_20' ) start [2025-03-12 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666188', 'tblTempUsageDetail_20' ) end [2025-03-12 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666188', 'tblTempVendorCDR_20' ) start [2025-03-12 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666188', 'tblTempVendorCDR_20' ) end [2025-03-12 19:06:20] Production.INFO: ProcessCDR(1,14666188,1,1,2) [2025-03-12 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666188', 'tblTempUsageDetail_20' ) start [2025-03-12 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666188', 'tblTempUsageDetail_20' ) end [2025-03-12 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:06:25] Production.INFO: ==19310== Releasing lock... [2025-03-12 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:06:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-12 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:07:05 [end_date_ymd] => 2025-03-12 19:07:05 [RateCDR] => 1 ) [2025-03-12 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:07:05' and `end` < '2025-03-12 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:07:18] Production.INFO: count ==3613 [2025-03-12 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:07:05 - End Time 2025-03-12 19:07:05 [2025-03-12 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666193', 'tblTempUsageDetail_20' ) start [2025-03-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666193', 'tblTempUsageDetail_20' ) end [2025-03-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666193', 'tblTempVendorCDR_20' ) start [2025-03-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666193', 'tblTempVendorCDR_20' ) end [2025-03-12 19:07:19] Production.INFO: ProcessCDR(1,14666193,1,1,2) [2025-03-12 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666193', 'tblTempUsageDetail_20' ) start [2025-03-12 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666193', 'tblTempUsageDetail_20' ) end [2025-03-12 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:07:22] Production.INFO: ==19381== Releasing lock... [2025-03-12 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:07:22] Production.INFO: 55.5 MB #Memory Used# [2025-03-12 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:08:05 [end_date_ymd] => 2025-03-12 19:08:05 [RateCDR] => 1 ) [2025-03-12 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:08:05' and `end` < '2025-03-12 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:08:18] Production.INFO: count ==3606 [2025-03-12 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:08:05 - End Time 2025-03-12 19:08:05 [2025-03-12 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666198', 'tblTempUsageDetail_20' ) start [2025-03-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666198', 'tblTempUsageDetail_20' ) end [2025-03-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666198', 'tblTempVendorCDR_20' ) start [2025-03-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666198', 'tblTempVendorCDR_20' ) end [2025-03-12 19:08:19] Production.INFO: ProcessCDR(1,14666198,1,1,2) [2025-03-12 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666198', 'tblTempUsageDetail_20' ) start [2025-03-12 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666198', 'tblTempUsageDetail_20' ) end [2025-03-12 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:08:24] Production.INFO: ==19532== Releasing lock... [2025-03-12 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:08:24] Production.INFO: 55 MB #Memory Used# [2025-03-12 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:09:05 [end_date_ymd] => 2025-03-12 19:09:05 [RateCDR] => 1 ) [2025-03-12 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:09:05' and `end` < '2025-03-12 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:09:17] Production.INFO: count ==3599 [2025-03-12 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:09:05 - End Time 2025-03-12 19:09:05 [2025-03-12 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666203', 'tblTempUsageDetail_20' ) start [2025-03-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666203', 'tblTempUsageDetail_20' ) end [2025-03-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666203', 'tblTempVendorCDR_20' ) start [2025-03-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666203', 'tblTempVendorCDR_20' ) end [2025-03-12 19:09:19] Production.INFO: ProcessCDR(1,14666203,1,1,2) [2025-03-12 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666203', 'tblTempUsageDetail_20' ) start [2025-03-12 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666203', 'tblTempUsageDetail_20' ) end [2025-03-12 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:09:22] Production.INFO: ==19609== Releasing lock... [2025-03-12 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:09:22] Production.INFO: 55 MB #Memory Used# [2025-03-12 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:10:06 [end_date_ymd] => 2025-03-12 19:10:06 [RateCDR] => 1 ) [2025-03-12 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:10:06' and `end` < '2025-03-12 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:10:19] Production.INFO: count ==3591 [2025-03-12 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:10:06 - End Time 2025-03-12 19:10:06 [2025-03-12 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666209', 'tblTempUsageDetail_20' ) start [2025-03-12 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666209', 'tblTempUsageDetail_20' ) end [2025-03-12 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666209', 'tblTempVendorCDR_20' ) start [2025-03-12 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666209', 'tblTempVendorCDR_20' ) end [2025-03-12 19:10:20] Production.INFO: ProcessCDR(1,14666209,1,1,2) [2025-03-12 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666209', 'tblTempUsageDetail_20' ) start [2025-03-12 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666209', 'tblTempUsageDetail_20' ) end [2025-03-12 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:10:24] Production.INFO: ==19684== Releasing lock... [2025-03-12 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:10:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-12 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:11:05 [end_date_ymd] => 2025-03-12 19:11:05 [RateCDR] => 1 ) [2025-03-12 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:11:05' and `end` < '2025-03-12 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:11:17] Production.INFO: count ==3539 [2025-03-12 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:11:05 - End Time 2025-03-12 19:11:05 [2025-03-12 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666214', 'tblTempUsageDetail_20' ) start [2025-03-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666214', 'tblTempUsageDetail_20' ) end [2025-03-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666214', 'tblTempVendorCDR_20' ) start [2025-03-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666214', 'tblTempVendorCDR_20' ) end [2025-03-12 19:11:19] Production.INFO: ProcessCDR(1,14666214,1,1,2) [2025-03-12 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666214', 'tblTempUsageDetail_20' ) start [2025-03-12 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666214', 'tblTempUsageDetail_20' ) end [2025-03-12 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:11:24] Production.INFO: ==19759== Releasing lock... [2025-03-12 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:11:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-12 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:12:06 [end_date_ymd] => 2025-03-12 19:12:06 [RateCDR] => 1 ) [2025-03-12 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:12:06' and `end` < '2025-03-12 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:12:18] Production.INFO: count ==3527 [2025-03-12 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:12:06 - End Time 2025-03-12 19:12:06 [2025-03-12 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666219', 'tblTempUsageDetail_20' ) start [2025-03-12 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666219', 'tblTempUsageDetail_20' ) end [2025-03-12 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666219', 'tblTempVendorCDR_20' ) start [2025-03-12 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666219', 'tblTempVendorCDR_20' ) end [2025-03-12 19:12:20] Production.INFO: ProcessCDR(1,14666219,1,1,2) [2025-03-12 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666219', 'tblTempUsageDetail_20' ) start [2025-03-12 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666219', 'tblTempUsageDetail_20' ) end [2025-03-12 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:12:25] Production.INFO: ==19908== Releasing lock... [2025-03-12 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:12:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-12 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:13:05 [end_date_ymd] => 2025-03-12 19:13:05 [RateCDR] => 1 ) [2025-03-12 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:13:05' and `end` < '2025-03-12 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:13:18] Production.INFO: count ==3515 [2025-03-12 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:13:05 - End Time 2025-03-12 19:13:05 [2025-03-12 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666224', 'tblTempUsageDetail_20' ) start [2025-03-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666224', 'tblTempUsageDetail_20' ) end [2025-03-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666224', 'tblTempVendorCDR_20' ) start [2025-03-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666224', 'tblTempVendorCDR_20' ) end [2025-03-12 19:13:19] Production.INFO: ProcessCDR(1,14666224,1,1,2) [2025-03-12 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666224', 'tblTempUsageDetail_20' ) start [2025-03-12 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666224', 'tblTempUsageDetail_20' ) end [2025-03-12 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:13:24] Production.INFO: ==19983== Releasing lock... [2025-03-12 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:13:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-12 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:14:06 [end_date_ymd] => 2025-03-12 19:14:06 [RateCDR] => 1 ) [2025-03-12 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:14:06' and `end` < '2025-03-12 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:14:18] Production.INFO: count ==3490 [2025-03-12 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:14:06 - End Time 2025-03-12 19:14:06 [2025-03-12 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666229', 'tblTempUsageDetail_20' ) start [2025-03-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666229', 'tblTempUsageDetail_20' ) end [2025-03-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666229', 'tblTempVendorCDR_20' ) start [2025-03-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666229', 'tblTempVendorCDR_20' ) end [2025-03-12 19:14:20] Production.INFO: ProcessCDR(1,14666229,1,1,2) [2025-03-12 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666229', 'tblTempUsageDetail_20' ) start [2025-03-12 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666229', 'tblTempUsageDetail_20' ) end [2025-03-12 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:14:23] Production.INFO: ==20095== Releasing lock... [2025-03-12 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:14:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-12 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:15:05 [end_date_ymd] => 2025-03-12 19:15:05 [RateCDR] => 1 ) [2025-03-12 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:15:05' and `end` < '2025-03-12 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:15:17] Production.INFO: count ==3468 [2025-03-12 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:15:05 - End Time 2025-03-12 19:15:05 [2025-03-12 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666234', 'tblTempUsageDetail_20' ) start [2025-03-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666234', 'tblTempUsageDetail_20' ) end [2025-03-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666234', 'tblTempVendorCDR_20' ) start [2025-03-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666234', 'tblTempVendorCDR_20' ) end [2025-03-12 19:15:19] Production.INFO: ProcessCDR(1,14666234,1,1,2) [2025-03-12 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666234', 'tblTempUsageDetail_20' ) start [2025-03-12 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666234', 'tblTempUsageDetail_20' ) end [2025-03-12 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:15:24] Production.INFO: ==20247== Releasing lock... [2025-03-12 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:15:24] Production.INFO: 54 MB #Memory Used# [2025-03-12 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:16:05 [end_date_ymd] => 2025-03-12 19:16:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:16:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:16:18] Production.INFO: count ==3432 [2025-03-12 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:16:05 - End Time 2025-03-12 19:16:05 [2025-03-12 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666239', 'tblTempUsageDetail_20' ) start [2025-03-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666239', 'tblTempUsageDetail_20' ) end [2025-03-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666239', 'tblTempVendorCDR_20' ) start [2025-03-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666239', 'tblTempVendorCDR_20' ) end [2025-03-12 19:16:19] Production.INFO: ProcessCDR(1,14666239,1,1,2) [2025-03-12 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666239', 'tblTempUsageDetail_20' ) start [2025-03-12 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666239', 'tblTempUsageDetail_20' ) end [2025-03-12 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:16:24] Production.INFO: ==20323== Releasing lock... [2025-03-12 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:16:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-12 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:17:04 [end_date_ymd] => 2025-03-12 19:17:04 [RateCDR] => 1 ) [2025-03-12 19:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:17:04' and `end` < '2025-03-12 19:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:17:17] Production.INFO: count ==3454 [2025-03-12 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:17:04 - End Time 2025-03-12 19:17:04 [2025-03-12 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666244', 'tblTempUsageDetail_20' ) start [2025-03-12 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666244', 'tblTempUsageDetail_20' ) end [2025-03-12 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666244', 'tblTempVendorCDR_20' ) start [2025-03-12 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666244', 'tblTempVendorCDR_20' ) end [2025-03-12 19:17:18] Production.INFO: ProcessCDR(1,14666244,1,1,2) [2025-03-12 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666244', 'tblTempUsageDetail_20' ) start [2025-03-12 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666244', 'tblTempUsageDetail_20' ) end [2025-03-12 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:17:24] Production.INFO: ==20395== Releasing lock... [2025-03-12 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:17:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-12 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:18:05 [end_date_ymd] => 2025-03-12 19:18:05 [RateCDR] => 1 ) [2025-03-12 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:18:05' and `end` < '2025-03-12 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:18:18] Production.INFO: count ==3445 [2025-03-12 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:18:05 - End Time 2025-03-12 19:18:05 [2025-03-12 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666249', 'tblTempUsageDetail_20' ) start [2025-03-12 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666249', 'tblTempUsageDetail_20' ) end [2025-03-12 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666249', 'tblTempVendorCDR_20' ) start [2025-03-12 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666249', 'tblTempVendorCDR_20' ) end [2025-03-12 19:18:20] Production.INFO: ProcessCDR(1,14666249,1,1,2) [2025-03-12 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666249', 'tblTempUsageDetail_20' ) start [2025-03-12 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666249', 'tblTempUsageDetail_20' ) end [2025-03-12 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:18:23] Production.INFO: ==20472== Releasing lock... [2025-03-12 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:18:23] Production.INFO: 54 MB #Memory Used# [2025-03-12 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:19:05 [end_date_ymd] => 2025-03-12 19:19:05 [RateCDR] => 1 ) [2025-03-12 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:19:05' and `end` < '2025-03-12 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:19:17] Production.INFO: count ==3432 [2025-03-12 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:19:05 - End Time 2025-03-12 19:19:05 [2025-03-12 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666254', 'tblTempUsageDetail_20' ) start [2025-03-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666254', 'tblTempUsageDetail_20' ) end [2025-03-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666254', 'tblTempVendorCDR_20' ) start [2025-03-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666254', 'tblTempVendorCDR_20' ) end [2025-03-12 19:19:19] Production.INFO: ProcessCDR(1,14666254,1,1,2) [2025-03-12 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666254', 'tblTempUsageDetail_20' ) start [2025-03-12 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666254', 'tblTempUsageDetail_20' ) end [2025-03-12 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:19:22] Production.INFO: ==20545== Releasing lock... [2025-03-12 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:19:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-12 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:20:06 [end_date_ymd] => 2025-03-12 19:20:06 [RateCDR] => 1 ) [2025-03-12 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:20:06' and `end` < '2025-03-12 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:20:19] Production.INFO: count ==3440 [2025-03-12 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:20:06 - End Time 2025-03-12 19:20:06 [2025-03-12 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666260', 'tblTempUsageDetail_20' ) start [2025-03-12 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666260', 'tblTempUsageDetail_20' ) end [2025-03-12 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666260', 'tblTempVendorCDR_20' ) start [2025-03-12 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666260', 'tblTempVendorCDR_20' ) end [2025-03-12 19:20:20] Production.INFO: ProcessCDR(1,14666260,1,1,2) [2025-03-12 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666260', 'tblTempUsageDetail_20' ) start [2025-03-12 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666260', 'tblTempUsageDetail_20' ) end [2025-03-12 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:20:24] Production.INFO: ==20620== Releasing lock... [2025-03-12 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:20:24] Production.INFO: 54 MB #Memory Used# [2025-03-12 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:21:05 [end_date_ymd] => 2025-03-12 19:21:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:21:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:21:17] Production.INFO: count ==3415 [2025-03-12 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:21:05 - End Time 2025-03-12 19:21:05 [2025-03-12 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666265', 'tblTempUsageDetail_20' ) start [2025-03-12 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666265', 'tblTempUsageDetail_20' ) end [2025-03-12 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666265', 'tblTempVendorCDR_20' ) start [2025-03-12 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666265', 'tblTempVendorCDR_20' ) end [2025-03-12 19:21:19] Production.INFO: ProcessCDR(1,14666265,1,1,2) [2025-03-12 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666265', 'tblTempUsageDetail_20' ) start [2025-03-12 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666265', 'tblTempUsageDetail_20' ) end [2025-03-12 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:21:24] Production.INFO: ==20691== Releasing lock... [2025-03-12 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:21:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-12 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:22:05 [end_date_ymd] => 2025-03-12 19:22:05 [RateCDR] => 1 ) [2025-03-12 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:22:05' and `end` < '2025-03-12 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:22:18] Production.INFO: count ==3403 [2025-03-12 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:22:05 - End Time 2025-03-12 19:22:05 [2025-03-12 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666270', 'tblTempUsageDetail_20' ) start [2025-03-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666270', 'tblTempUsageDetail_20' ) end [2025-03-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666270', 'tblTempVendorCDR_20' ) start [2025-03-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666270', 'tblTempVendorCDR_20' ) end [2025-03-12 19:22:19] Production.INFO: ProcessCDR(1,14666270,1,1,2) [2025-03-12 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666270', 'tblTempUsageDetail_20' ) start [2025-03-12 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666270', 'tblTempUsageDetail_20' ) end [2025-03-12 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:22:23] Production.INFO: ==20767== Releasing lock... [2025-03-12 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:22:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-12 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:23:05 [end_date_ymd] => 2025-03-12 19:23:05 [RateCDR] => 1 ) [2025-03-12 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:23:05' and `end` < '2025-03-12 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:23:18] Production.INFO: count ==3483 [2025-03-12 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:23:05 - End Time 2025-03-12 19:23:05 [2025-03-12 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666275', 'tblTempUsageDetail_20' ) start [2025-03-12 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666275', 'tblTempUsageDetail_20' ) end [2025-03-12 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666275', 'tblTempVendorCDR_20' ) start [2025-03-12 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666275', 'tblTempVendorCDR_20' ) end [2025-03-12 19:23:19] Production.INFO: ProcessCDR(1,14666275,1,1,2) [2025-03-12 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666275', 'tblTempUsageDetail_20' ) start [2025-03-12 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666275', 'tblTempUsageDetail_20' ) end [2025-03-12 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:23:22] Production.INFO: ==20847== Releasing lock... [2025-03-12 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:23:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-12 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:24:05 [end_date_ymd] => 2025-03-12 19:24:05 [RateCDR] => 1 ) [2025-03-12 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:24:05' and `end` < '2025-03-12 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:24:18] Production.INFO: count ==3484 [2025-03-12 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:24:05 - End Time 2025-03-12 19:24:05 [2025-03-12 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666280', 'tblTempUsageDetail_20' ) start [2025-03-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666280', 'tblTempUsageDetail_20' ) end [2025-03-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666280', 'tblTempVendorCDR_20' ) start [2025-03-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666280', 'tblTempVendorCDR_20' ) end [2025-03-12 19:24:19] Production.INFO: ProcessCDR(1,14666280,1,1,2) [2025-03-12 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666280', 'tblTempUsageDetail_20' ) start [2025-03-12 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666280', 'tblTempUsageDetail_20' ) end [2025-03-12 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:24:24] Production.INFO: ==20920== Releasing lock... [2025-03-12 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:24:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-12 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:25:05 [end_date_ymd] => 2025-03-12 19:25:05 [RateCDR] => 1 ) [2025-03-12 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:25:05' and `end` < '2025-03-12 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:25:18] Production.INFO: count ==3489 [2025-03-12 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:25:05 - End Time 2025-03-12 19:25:05 [2025-03-12 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666285', 'tblTempUsageDetail_20' ) start [2025-03-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666285', 'tblTempUsageDetail_20' ) end [2025-03-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666285', 'tblTempVendorCDR_20' ) start [2025-03-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666285', 'tblTempVendorCDR_20' ) end [2025-03-12 19:25:20] Production.INFO: ProcessCDR(1,14666285,1,1,2) [2025-03-12 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666285', 'tblTempUsageDetail_20' ) start [2025-03-12 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666285', 'tblTempUsageDetail_20' ) end [2025-03-12 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:25:23] Production.INFO: ==20996== Releasing lock... [2025-03-12 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:25:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-12 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:26:05 [end_date_ymd] => 2025-03-12 19:26:05 [RateCDR] => 1 ) [2025-03-12 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:26:05' and `end` < '2025-03-12 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:26:18] Production.INFO: count ==3453 [2025-03-12 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:26:05 - End Time 2025-03-12 19:26:05 [2025-03-12 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666290', 'tblTempUsageDetail_20' ) start [2025-03-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666290', 'tblTempUsageDetail_20' ) end [2025-03-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666290', 'tblTempVendorCDR_20' ) start [2025-03-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666290', 'tblTempVendorCDR_20' ) end [2025-03-12 19:26:19] Production.INFO: ProcessCDR(1,14666290,1,1,2) [2025-03-12 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666290', 'tblTempUsageDetail_20' ) start [2025-03-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666290', 'tblTempUsageDetail_20' ) end [2025-03-12 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:26:24] Production.INFO: ==21070== Releasing lock... [2025-03-12 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:26:24] Production.INFO: 54 MB #Memory Used# [2025-03-12 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:27:06 [end_date_ymd] => 2025-03-12 19:27:06 [RateCDR] => 1 ) [2025-03-12 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:27:06' and `end` < '2025-03-12 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:27:18] Production.INFO: count ==3411 [2025-03-12 19:27:20] Production.ERROR: pbx CDR StartTime 2025-03-12 16:27:06 - End Time 2025-03-12 19:27:06 [2025-03-12 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666295', 'tblTempUsageDetail_20' ) start [2025-03-12 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666295', 'tblTempUsageDetail_20' ) end [2025-03-12 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666295', 'tblTempVendorCDR_20' ) start [2025-03-12 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666295', 'tblTempVendorCDR_20' ) end [2025-03-12 19:27:20] Production.INFO: ProcessCDR(1,14666295,1,1,2) [2025-03-12 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666295', 'tblTempUsageDetail_20' ) start [2025-03-12 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666295', 'tblTempUsageDetail_20' ) end [2025-03-12 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:27:25] Production.INFO: ==21145== Releasing lock... [2025-03-12 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:27:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-12 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:28:05 [end_date_ymd] => 2025-03-12 19:28:05 [RateCDR] => 1 ) [2025-03-12 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:28:05' and `end` < '2025-03-12 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:28:18] Production.INFO: count ==3352 [2025-03-12 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:28:05 - End Time 2025-03-12 19:28:05 [2025-03-12 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666300', 'tblTempUsageDetail_20' ) start [2025-03-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666300', 'tblTempUsageDetail_20' ) end [2025-03-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666300', 'tblTempVendorCDR_20' ) start [2025-03-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666300', 'tblTempVendorCDR_20' ) end [2025-03-12 19:28:19] Production.INFO: ProcessCDR(1,14666300,1,1,2) [2025-03-12 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666300', 'tblTempUsageDetail_20' ) start [2025-03-12 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666300', 'tblTempUsageDetail_20' ) end [2025-03-12 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:28:22] Production.INFO: ==21218== Releasing lock... [2025-03-12 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:28:22] Production.INFO: 53 MB #Memory Used# [2025-03-12 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:29:05 [end_date_ymd] => 2025-03-12 19:29:05 [RateCDR] => 1 ) [2025-03-12 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:29:05' and `end` < '2025-03-12 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:29:18] Production.INFO: count ==3315 [2025-03-12 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:29:05 - End Time 2025-03-12 19:29:05 [2025-03-12 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666305', 'tblTempUsageDetail_20' ) start [2025-03-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666305', 'tblTempUsageDetail_20' ) end [2025-03-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666305', 'tblTempVendorCDR_20' ) start [2025-03-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666305', 'tblTempVendorCDR_20' ) end [2025-03-12 19:29:19] Production.INFO: ProcessCDR(1,14666305,1,1,2) [2025-03-12 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666305', 'tblTempUsageDetail_20' ) start [2025-03-12 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666305', 'tblTempUsageDetail_20' ) end [2025-03-12 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:29:23] Production.INFO: ==21327== Releasing lock... [2025-03-12 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:29:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-12 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:30:06 [end_date_ymd] => 2025-03-12 19:30:06 [RateCDR] => 1 ) [2025-03-12 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:30:06' and `end` < '2025-03-12 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:30:18] Production.INFO: count ==3285 [2025-03-12 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:30:06 - End Time 2025-03-12 19:30:06 [2025-03-12 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666311', 'tblTempUsageDetail_20' ) start [2025-03-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666311', 'tblTempUsageDetail_20' ) end [2025-03-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666311', 'tblTempVendorCDR_20' ) start [2025-03-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666311', 'tblTempVendorCDR_20' ) end [2025-03-12 19:30:19] Production.INFO: ProcessCDR(1,14666311,1,1,2) [2025-03-12 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666311', 'tblTempUsageDetail_20' ) start [2025-03-12 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666311', 'tblTempUsageDetail_20' ) end [2025-03-12 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:30:23] Production.INFO: ==21404== Releasing lock... [2025-03-12 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:30:23] Production.INFO: 53 MB #Memory Used# [2025-03-12 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:31:05 [end_date_ymd] => 2025-03-12 19:31:05 [RateCDR] => 1 ) [2025-03-12 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:31:05' and `end` < '2025-03-12 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:31:18] Production.INFO: count ==3214 [2025-03-12 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:31:05 - End Time 2025-03-12 19:31:05 [2025-03-12 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666316', 'tblTempUsageDetail_20' ) start [2025-03-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666316', 'tblTempUsageDetail_20' ) end [2025-03-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666316', 'tblTempVendorCDR_20' ) start [2025-03-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666316', 'tblTempVendorCDR_20' ) end [2025-03-12 19:31:19] Production.INFO: ProcessCDR(1,14666316,1,1,2) [2025-03-12 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666316', 'tblTempUsageDetail_20' ) start [2025-03-12 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666316', 'tblTempUsageDetail_20' ) end [2025-03-12 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:31:22] Production.INFO: ==21478== Releasing lock... [2025-03-12 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:31:22] Production.INFO: 52 MB #Memory Used# [2025-03-12 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:32:05 [end_date_ymd] => 2025-03-12 19:32:05 [RateCDR] => 1 ) [2025-03-12 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:32:05' and `end` < '2025-03-12 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:32:17] Production.INFO: count ==3175 [2025-03-12 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:32:05 - End Time 2025-03-12 19:32:05 [2025-03-12 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666321', 'tblTempUsageDetail_20' ) start [2025-03-12 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666321', 'tblTempUsageDetail_20' ) end [2025-03-12 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666321', 'tblTempVendorCDR_20' ) start [2025-03-12 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666321', 'tblTempVendorCDR_20' ) end [2025-03-12 19:32:19] Production.INFO: ProcessCDR(1,14666321,1,1,2) [2025-03-12 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666321', 'tblTempUsageDetail_20' ) start [2025-03-12 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666321', 'tblTempUsageDetail_20' ) end [2025-03-12 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:32:24] Production.INFO: ==21548== Releasing lock... [2025-03-12 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:32:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-12 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:33:05 [end_date_ymd] => 2025-03-12 19:33:05 [RateCDR] => 1 ) [2025-03-12 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:33:05' and `end` < '2025-03-12 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:33:18] Production.INFO: count ==3161 [2025-03-12 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:33:05 - End Time 2025-03-12 19:33:05 [2025-03-12 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666326', 'tblTempUsageDetail_20' ) start [2025-03-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666326', 'tblTempUsageDetail_20' ) end [2025-03-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666326', 'tblTempVendorCDR_20' ) start [2025-03-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666326', 'tblTempVendorCDR_20' ) end [2025-03-12 19:33:19] Production.INFO: ProcessCDR(1,14666326,1,1,2) [2025-03-12 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666326', 'tblTempUsageDetail_20' ) start [2025-03-12 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666326', 'tblTempUsageDetail_20' ) end [2025-03-12 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:33:23] Production.INFO: ==21624== Releasing lock... [2025-03-12 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:33:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-12 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:34:05 [end_date_ymd] => 2025-03-12 19:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:34:17] Production.INFO: count ==3149 [2025-03-12 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:34:05 - End Time 2025-03-12 19:34:05 [2025-03-12 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666331', 'tblTempUsageDetail_20' ) start [2025-03-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666331', 'tblTempUsageDetail_20' ) end [2025-03-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666331', 'tblTempVendorCDR_20' ) start [2025-03-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666331', 'tblTempVendorCDR_20' ) end [2025-03-12 19:34:19] Production.INFO: ProcessCDR(1,14666331,1,1,2) [2025-03-12 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666331', 'tblTempUsageDetail_20' ) start [2025-03-12 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666331', 'tblTempUsageDetail_20' ) end [2025-03-12 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:34:23] Production.INFO: ==21698== Releasing lock... [2025-03-12 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:34:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-12 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:35:05 [end_date_ymd] => 2025-03-12 19:35:05 [RateCDR] => 1 ) [2025-03-12 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:35:05' and `end` < '2025-03-12 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:35:17] Production.INFO: count ==3144 [2025-03-12 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:35:05 - End Time 2025-03-12 19:35:05 [2025-03-12 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666336', 'tblTempUsageDetail_20' ) start [2025-03-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666336', 'tblTempUsageDetail_20' ) end [2025-03-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666336', 'tblTempVendorCDR_20' ) start [2025-03-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666336', 'tblTempVendorCDR_20' ) end [2025-03-12 19:35:18] Production.INFO: ProcessCDR(1,14666336,1,1,2) [2025-03-12 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666336', 'tblTempUsageDetail_20' ) start [2025-03-12 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666336', 'tblTempUsageDetail_20' ) end [2025-03-12 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:35:22] Production.INFO: ==21769== Releasing lock... [2025-03-12 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:35:22] Production.INFO: 51.5 MB #Memory Used# [2025-03-12 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:36:05 [end_date_ymd] => 2025-03-12 19:36:05 [RateCDR] => 1 ) [2025-03-12 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:36:05' and `end` < '2025-03-12 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:36:18] Production.INFO: count ==3137 [2025-03-12 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:36:05 - End Time 2025-03-12 19:36:05 [2025-03-12 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666341', 'tblTempUsageDetail_20' ) start [2025-03-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666341', 'tblTempUsageDetail_20' ) end [2025-03-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666341', 'tblTempVendorCDR_20' ) start [2025-03-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666341', 'tblTempVendorCDR_20' ) end [2025-03-12 19:36:19] Production.INFO: ProcessCDR(1,14666341,1,1,2) [2025-03-12 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666341', 'tblTempUsageDetail_20' ) start [2025-03-12 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666341', 'tblTempUsageDetail_20' ) end [2025-03-12 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:36:22] Production.INFO: ==21845== Releasing lock... [2025-03-12 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:36:22] Production.INFO: 52 MB #Memory Used# [2025-03-12 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:37:05 [end_date_ymd] => 2025-03-12 19:37:05 [RateCDR] => 1 ) [2025-03-12 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:37:05' and `end` < '2025-03-12 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:37:18] Production.INFO: count ==3107 [2025-03-12 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:37:05 - End Time 2025-03-12 19:37:05 [2025-03-12 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666346', 'tblTempUsageDetail_20' ) start [2025-03-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666346', 'tblTempUsageDetail_20' ) end [2025-03-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666346', 'tblTempVendorCDR_20' ) start [2025-03-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666346', 'tblTempVendorCDR_20' ) end [2025-03-12 19:37:19] Production.INFO: ProcessCDR(1,14666346,1,1,2) [2025-03-12 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666346', 'tblTempUsageDetail_20' ) start [2025-03-12 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666346', 'tblTempUsageDetail_20' ) end [2025-03-12 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:37:22] Production.INFO: ==21921== Releasing lock... [2025-03-12 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:37:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-12 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:38:05 [end_date_ymd] => 2025-03-12 19:38:05 [RateCDR] => 1 ) [2025-03-12 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:38:05' and `end` < '2025-03-12 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:38:18] Production.INFO: count ==3097 [2025-03-12 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:38:05 - End Time 2025-03-12 19:38:05 [2025-03-12 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666351', 'tblTempUsageDetail_20' ) start [2025-03-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666351', 'tblTempUsageDetail_20' ) end [2025-03-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666351', 'tblTempVendorCDR_20' ) start [2025-03-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666351', 'tblTempVendorCDR_20' ) end [2025-03-12 19:38:19] Production.INFO: ProcessCDR(1,14666351,1,1,2) [2025-03-12 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666351', 'tblTempUsageDetail_20' ) start [2025-03-12 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666351', 'tblTempUsageDetail_20' ) end [2025-03-12 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:38:22] Production.INFO: ==21993== Releasing lock... [2025-03-12 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:38:22] Production.INFO: 51 MB #Memory Used# [2025-03-12 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:39:05 [end_date_ymd] => 2025-03-12 19:39:05 [RateCDR] => 1 ) [2025-03-12 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:39:05' and `end` < '2025-03-12 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:39:18] Production.INFO: count ==3095 [2025-03-12 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:39:05 - End Time 2025-03-12 19:39:05 [2025-03-12 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666356', 'tblTempUsageDetail_20' ) start [2025-03-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666356', 'tblTempUsageDetail_20' ) end [2025-03-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666356', 'tblTempVendorCDR_20' ) start [2025-03-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666356', 'tblTempVendorCDR_20' ) end [2025-03-12 19:39:19] Production.INFO: ProcessCDR(1,14666356,1,1,2) [2025-03-12 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666356', 'tblTempUsageDetail_20' ) start [2025-03-12 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666356', 'tblTempUsageDetail_20' ) end [2025-03-12 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:39:22] Production.INFO: ==22064== Releasing lock... [2025-03-12 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:39:22] Production.INFO: 51 MB #Memory Used# [2025-03-12 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:40:06 [end_date_ymd] => 2025-03-12 19:40:06 [RateCDR] => 1 ) [2025-03-12 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:40:06' and `end` < '2025-03-12 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:40:19] Production.INFO: count ==3086 [2025-03-12 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:40:06 - End Time 2025-03-12 19:40:06 [2025-03-12 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666362', 'tblTempUsageDetail_20' ) start [2025-03-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666362', 'tblTempUsageDetail_20' ) end [2025-03-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666362', 'tblTempVendorCDR_20' ) start [2025-03-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666362', 'tblTempVendorCDR_20' ) end [2025-03-12 19:40:20] Production.INFO: ProcessCDR(1,14666362,1,1,2) [2025-03-12 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666362', 'tblTempUsageDetail_20' ) start [2025-03-12 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666362', 'tblTempUsageDetail_20' ) end [2025-03-12 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:40:23] Production.INFO: ==22140== Releasing lock... [2025-03-12 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:40:23] Production.INFO: 51 MB #Memory Used# [2025-03-12 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:41:04 [end_date_ymd] => 2025-03-12 19:41:04 [RateCDR] => 1 ) [2025-03-12 19: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` >= '2025-03-12 16:41:04' and `end` < '2025-03-12 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:41:17] Production.INFO: count ==3023 [2025-03-12 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:41:04 - End Time 2025-03-12 19:41:04 [2025-03-12 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666367', 'tblTempUsageDetail_20' ) start [2025-03-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666367', 'tblTempUsageDetail_20' ) end [2025-03-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666367', 'tblTempVendorCDR_20' ) start [2025-03-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666367', 'tblTempVendorCDR_20' ) end [2025-03-12 19:41:18] Production.INFO: ProcessCDR(1,14666367,1,1,2) [2025-03-12 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666367', 'tblTempUsageDetail_20' ) start [2025-03-12 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666367', 'tblTempUsageDetail_20' ) end [2025-03-12 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:41:22] Production.INFO: ==22218== Releasing lock... [2025-03-12 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:41:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-12 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:42:05 [end_date_ymd] => 2025-03-12 19:42:05 [RateCDR] => 1 ) [2025-03-12 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:42:05' and `end` < '2025-03-12 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:42:18] Production.INFO: count ==3010 [2025-03-12 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:42:05 - End Time 2025-03-12 19:42:05 [2025-03-12 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666372', 'tblTempUsageDetail_20' ) start [2025-03-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666372', 'tblTempUsageDetail_20' ) end [2025-03-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666372', 'tblTempVendorCDR_20' ) start [2025-03-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666372', 'tblTempVendorCDR_20' ) end [2025-03-12 19:42:19] Production.INFO: ProcessCDR(1,14666372,1,1,2) [2025-03-12 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666372', 'tblTempUsageDetail_20' ) start [2025-03-12 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666372', 'tblTempUsageDetail_20' ) end [2025-03-12 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:42:22] Production.INFO: ==22288== Releasing lock... [2025-03-12 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:42:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-12 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:43:05 [end_date_ymd] => 2025-03-12 19:43:05 [RateCDR] => 1 ) [2025-03-12 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:43:05' and `end` < '2025-03-12 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:43:17] Production.INFO: count ==3005 [2025-03-12 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:43:05 - End Time 2025-03-12 19:43:05 [2025-03-12 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666377', 'tblTempUsageDetail_20' ) start [2025-03-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666377', 'tblTempUsageDetail_20' ) end [2025-03-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666377', 'tblTempVendorCDR_20' ) start [2025-03-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666377', 'tblTempVendorCDR_20' ) end [2025-03-12 19:43:19] Production.INFO: ProcessCDR(1,14666377,1,1,2) [2025-03-12 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666377', 'tblTempUsageDetail_20' ) start [2025-03-12 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666377', 'tblTempUsageDetail_20' ) end [2025-03-12 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:43:22] Production.INFO: ==22360== Releasing lock... [2025-03-12 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:43:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-12 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:44:05 [end_date_ymd] => 2025-03-12 19:44:05 [RateCDR] => 1 ) [2025-03-12 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:44:05' and `end` < '2025-03-12 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:44:18] Production.INFO: count ==2994 [2025-03-12 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:44:05 - End Time 2025-03-12 19:44:05 [2025-03-12 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666382', 'tblTempUsageDetail_20' ) start [2025-03-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666382', 'tblTempUsageDetail_20' ) end [2025-03-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666382', 'tblTempVendorCDR_20' ) start [2025-03-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666382', 'tblTempVendorCDR_20' ) end [2025-03-12 19:44:19] Production.INFO: ProcessCDR(1,14666382,1,1,2) [2025-03-12 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666382', 'tblTempUsageDetail_20' ) start [2025-03-12 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666382', 'tblTempUsageDetail_20' ) end [2025-03-12 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:44:24] Production.INFO: ==22441== Releasing lock... [2025-03-12 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:44:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-12 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:45:05 [end_date_ymd] => 2025-03-12 19:45:05 [RateCDR] => 1 ) [2025-03-12 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:45:05' and `end` < '2025-03-12 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:45:17] Production.INFO: count ==2986 [2025-03-12 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:45:05 - End Time 2025-03-12 19:45:05 [2025-03-12 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666387', 'tblTempUsageDetail_20' ) start [2025-03-12 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666387', 'tblTempUsageDetail_20' ) end [2025-03-12 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666387', 'tblTempVendorCDR_20' ) start [2025-03-12 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666387', 'tblTempVendorCDR_20' ) end [2025-03-12 19:45:18] Production.INFO: ProcessCDR(1,14666387,1,1,2) [2025-03-12 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666387', 'tblTempUsageDetail_20' ) start [2025-03-12 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666387', 'tblTempUsageDetail_20' ) end [2025-03-12 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:45:23] Production.INFO: ==22552== Releasing lock... [2025-03-12 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:45:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-12 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:46:06 [end_date_ymd] => 2025-03-12 19:46:06 [RateCDR] => 1 ) [2025-03-12 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:46:06' and `end` < '2025-03-12 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:46:18] Production.INFO: count ==2952 [2025-03-12 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:46:06 - End Time 2025-03-12 19:46:06 [2025-03-12 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666392', 'tblTempUsageDetail_20' ) start [2025-03-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666392', 'tblTempUsageDetail_20' ) end [2025-03-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666392', 'tblTempVendorCDR_20' ) start [2025-03-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666392', 'tblTempVendorCDR_20' ) end [2025-03-12 19:46:19] Production.INFO: ProcessCDR(1,14666392,1,1,2) [2025-03-12 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666392', 'tblTempUsageDetail_20' ) start [2025-03-12 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666392', 'tblTempUsageDetail_20' ) end [2025-03-12 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:46:23] Production.INFO: ==22623== Releasing lock... [2025-03-12 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:46:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-12 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:47:05 [end_date_ymd] => 2025-03-12 19:47:05 [RateCDR] => 1 ) [2025-03-12 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:47:05' and `end` < '2025-03-12 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:47:17] Production.INFO: count ==2942 [2025-03-12 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:47:05 - End Time 2025-03-12 19:47:05 [2025-03-12 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666397', 'tblTempUsageDetail_20' ) start [2025-03-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666397', 'tblTempUsageDetail_20' ) end [2025-03-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666397', 'tblTempVendorCDR_20' ) start [2025-03-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666397', 'tblTempVendorCDR_20' ) end [2025-03-12 19:47:18] Production.INFO: ProcessCDR(1,14666397,1,1,2) [2025-03-12 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666397', 'tblTempUsageDetail_20' ) start [2025-03-12 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666397', 'tblTempUsageDetail_20' ) end [2025-03-12 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:47:21] Production.INFO: ==22695== Releasing lock... [2025-03-12 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:47:21] Production.INFO: 49.75 MB #Memory Used# [2025-03-12 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:48:05 [end_date_ymd] => 2025-03-12 19:48:05 [RateCDR] => 1 ) [2025-03-12 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:48:05' and `end` < '2025-03-12 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:48:18] Production.INFO: count ==2922 [2025-03-12 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:48:05 - End Time 2025-03-12 19:48:05 [2025-03-12 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666402', 'tblTempUsageDetail_20' ) start [2025-03-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666402', 'tblTempUsageDetail_20' ) end [2025-03-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666402', 'tblTempVendorCDR_20' ) start [2025-03-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666402', 'tblTempVendorCDR_20' ) end [2025-03-12 19:48:19] Production.INFO: ProcessCDR(1,14666402,1,1,2) [2025-03-12 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666402', 'tblTempUsageDetail_20' ) start [2025-03-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666402', 'tblTempUsageDetail_20' ) end [2025-03-12 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:48:22] Production.INFO: ==22769== Releasing lock... [2025-03-12 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:48:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-12 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:49:04 [end_date_ymd] => 2025-03-12 19:49:04 [RateCDR] => 1 ) [2025-03-12 19: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` >= '2025-03-12 16:49:04' and `end` < '2025-03-12 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:49:17] Production.INFO: count ==2914 [2025-03-12 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:49:04 - End Time 2025-03-12 19:49:04 [2025-03-12 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666407', 'tblTempUsageDetail_20' ) start [2025-03-12 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666407', 'tblTempUsageDetail_20' ) end [2025-03-12 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666407', 'tblTempVendorCDR_20' ) start [2025-03-12 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666407', 'tblTempVendorCDR_20' ) end [2025-03-12 19:49:18] Production.INFO: ProcessCDR(1,14666407,1,1,2) [2025-03-12 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666407', 'tblTempUsageDetail_20' ) start [2025-03-12 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666407', 'tblTempUsageDetail_20' ) end [2025-03-12 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:49:21] Production.INFO: ==22845== Releasing lock... [2025-03-12 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:49:21] Production.INFO: 49.75 MB #Memory Used# [2025-03-12 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:50:06 [end_date_ymd] => 2025-03-12 19:50:06 [RateCDR] => 1 ) [2025-03-12 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:50:06' and `end` < '2025-03-12 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:50:18] Production.INFO: count ==2893 [2025-03-12 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:50:06 - End Time 2025-03-12 19:50:06 [2025-03-12 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666413', 'tblTempUsageDetail_20' ) start [2025-03-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666413', 'tblTempUsageDetail_20' ) end [2025-03-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666413', 'tblTempVendorCDR_20' ) start [2025-03-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666413', 'tblTempVendorCDR_20' ) end [2025-03-12 19:50:19] Production.INFO: ProcessCDR(1,14666413,1,1,2) [2025-03-12 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666413', 'tblTempUsageDetail_20' ) start [2025-03-12 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666413', 'tblTempUsageDetail_20' ) end [2025-03-12 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:50:24] Production.INFO: ==22924== Releasing lock... [2025-03-12 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:50:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-12 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:51:05 [end_date_ymd] => 2025-03-12 19:51:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:51:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:51:17] Production.INFO: count ==2812 [2025-03-12 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:51:05 - End Time 2025-03-12 19:51:05 [2025-03-12 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666418', 'tblTempUsageDetail_20' ) start [2025-03-12 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666418', 'tblTempUsageDetail_20' ) end [2025-03-12 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666418', 'tblTempVendorCDR_20' ) start [2025-03-12 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666418', 'tblTempVendorCDR_20' ) end [2025-03-12 19:51:18] Production.INFO: ProcessCDR(1,14666418,1,1,2) [2025-03-12 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666418', 'tblTempUsageDetail_20' ) start [2025-03-12 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666418', 'tblTempUsageDetail_20' ) end [2025-03-12 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:51:22] Production.INFO: ==23021== Releasing lock... [2025-03-12 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:51:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-12 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:52:05 [end_date_ymd] => 2025-03-12 19:52:05 [RateCDR] => 1 ) [2025-03-12 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:52:05' and `end` < '2025-03-12 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:52:18] Production.INFO: count ==2788 [2025-03-12 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:52:05 - End Time 2025-03-12 19:52:05 [2025-03-12 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666423', 'tblTempUsageDetail_20' ) start [2025-03-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666423', 'tblTempUsageDetail_20' ) end [2025-03-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666423', 'tblTempVendorCDR_20' ) start [2025-03-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666423', 'tblTempVendorCDR_20' ) end [2025-03-12 19:52:19] Production.INFO: ProcessCDR(1,14666423,1,1,2) [2025-03-12 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666423', 'tblTempUsageDetail_20' ) start [2025-03-12 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666423', 'tblTempUsageDetail_20' ) end [2025-03-12 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:52:22] Production.INFO: ==23093== Releasing lock... [2025-03-12 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:52:22] Production.INFO: 49 MB #Memory Used# [2025-03-12 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:53:04 [end_date_ymd] => 2025-03-12 19:53:04 [RateCDR] => 1 ) [2025-03-12 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:53:04' and `end` < '2025-03-12 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:53:17] Production.INFO: count ==2784 [2025-03-12 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:53:04 - End Time 2025-03-12 19:53:04 [2025-03-12 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666428', 'tblTempUsageDetail_20' ) start [2025-03-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666428', 'tblTempUsageDetail_20' ) end [2025-03-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666428', 'tblTempVendorCDR_20' ) start [2025-03-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666428', 'tblTempVendorCDR_20' ) end [2025-03-12 19:53:18] Production.INFO: ProcessCDR(1,14666428,1,1,2) [2025-03-12 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666428', 'tblTempUsageDetail_20' ) start [2025-03-12 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666428', 'tblTempUsageDetail_20' ) end [2025-03-12 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:53:21] Production.INFO: ==23163== Releasing lock... [2025-03-12 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:53:21] Production.INFO: 49 MB #Memory Used# [2025-03-12 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:54:05 [end_date_ymd] => 2025-03-12 19:54:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 16:54:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 19:54:17] Production.INFO: count ==2783 [2025-03-12 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:54:05 - End Time 2025-03-12 19:54:05 [2025-03-12 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666433', 'tblTempUsageDetail_20' ) start [2025-03-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666433', 'tblTempUsageDetail_20' ) end [2025-03-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666433', 'tblTempVendorCDR_20' ) start [2025-03-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666433', 'tblTempVendorCDR_20' ) end [2025-03-12 19:54:18] Production.INFO: ProcessCDR(1,14666433,1,1,2) [2025-03-12 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666433', 'tblTempUsageDetail_20' ) start [2025-03-12 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666433', 'tblTempUsageDetail_20' ) end [2025-03-12 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:54:23] Production.INFO: ==23235== Releasing lock... [2025-03-12 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:54:23] Production.INFO: 49 MB #Memory Used# [2025-03-12 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:55:06 [end_date_ymd] => 2025-03-12 19:55:06 [RateCDR] => 1 ) [2025-03-12 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:55:06' and `end` < '2025-03-12 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:55:18] Production.INFO: count ==2773 [2025-03-12 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:55:06 - End Time 2025-03-12 19:55:06 [2025-03-12 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666438', 'tblTempUsageDetail_20' ) start [2025-03-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666438', 'tblTempUsageDetail_20' ) end [2025-03-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666438', 'tblTempVendorCDR_20' ) start [2025-03-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666438', 'tblTempVendorCDR_20' ) end [2025-03-12 19:55:19] Production.INFO: ProcessCDR(1,14666438,1,1,2) [2025-03-12 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666438', 'tblTempUsageDetail_20' ) start [2025-03-12 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666438', 'tblTempUsageDetail_20' ) end [2025-03-12 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:55:24] Production.INFO: ==23310== Releasing lock... [2025-03-12 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:55:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-12 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:56:05 [end_date_ymd] => 2025-03-12 19:56:05 [RateCDR] => 1 ) [2025-03-12 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:56:05' and `end` < '2025-03-12 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:56:17] Production.INFO: count ==2761 [2025-03-12 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 16:56:05 - End Time 2025-03-12 19:56:05 [2025-03-12 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666443', 'tblTempUsageDetail_20' ) start [2025-03-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666443', 'tblTempUsageDetail_20' ) end [2025-03-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666443', 'tblTempVendorCDR_20' ) start [2025-03-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666443', 'tblTempVendorCDR_20' ) end [2025-03-12 19:56:18] Production.INFO: ProcessCDR(1,14666443,1,1,2) [2025-03-12 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666443', 'tblTempUsageDetail_20' ) start [2025-03-12 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666443', 'tblTempUsageDetail_20' ) end [2025-03-12 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:56:23] Production.INFO: ==23385== Releasing lock... [2025-03-12 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:56:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-12 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:57:05 [end_date_ymd] => 2025-03-12 19:57:05 [RateCDR] => 1 ) [2025-03-12 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:57:05' and `end` < '2025-03-12 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:57:18] Production.INFO: count ==2739 [2025-03-12 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:57:05 - End Time 2025-03-12 19:57:05 [2025-03-12 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666448', 'tblTempUsageDetail_20' ) start [2025-03-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666448', 'tblTempUsageDetail_20' ) end [2025-03-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666448', 'tblTempVendorCDR_20' ) start [2025-03-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666448', 'tblTempVendorCDR_20' ) end [2025-03-12 19:57:19] Production.INFO: ProcessCDR(1,14666448,1,1,2) [2025-03-12 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666448', 'tblTempUsageDetail_20' ) start [2025-03-12 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666448', 'tblTempUsageDetail_20' ) end [2025-03-12 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:57:23] Production.INFO: ==23458== Releasing lock... [2025-03-12 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:57:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-12 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:58:06 [end_date_ymd] => 2025-03-12 19:58:06 [RateCDR] => 1 ) [2025-03-12 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:58:06' and `end` < '2025-03-12 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:58:18] Production.INFO: count ==2726 [2025-03-12 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:58:06 - End Time 2025-03-12 19:58:06 [2025-03-12 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666453', 'tblTempUsageDetail_20' ) start [2025-03-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666453', 'tblTempUsageDetail_20' ) end [2025-03-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666453', 'tblTempVendorCDR_20' ) start [2025-03-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666453', 'tblTempVendorCDR_20' ) end [2025-03-12 19:58:19] Production.INFO: ProcessCDR(1,14666453,1,1,2) [2025-03-12 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666453', 'tblTempUsageDetail_20' ) start [2025-03-12 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666453', 'tblTempUsageDetail_20' ) end [2025-03-12 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:58:23] Production.INFO: ==23532== Releasing lock... [2025-03-12 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-12 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 16:59:05 [end_date_ymd] => 2025-03-12 19:59:05 [RateCDR] => 1 ) [2025-03-12 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 16:59:05' and `end` < '2025-03-12 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 19:59:18] Production.INFO: count ==2711 [2025-03-12 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-12 16:59:05 - End Time 2025-03-12 19:59:05 [2025-03-12 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666458', 'tblTempUsageDetail_20' ) start [2025-03-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666458', 'tblTempUsageDetail_20' ) end [2025-03-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666458', 'tblTempVendorCDR_20' ) start [2025-03-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666458', 'tblTempVendorCDR_20' ) end [2025-03-12 19:59:19] Production.INFO: ProcessCDR(1,14666458,1,1,2) [2025-03-12 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666458', 'tblTempUsageDetail_20' ) start [2025-03-12 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666458', 'tblTempUsageDetail_20' ) end [2025-03-12 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 19:59:22] Production.INFO: ==23602== Releasing lock... [2025-03-12 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 19:59:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-12 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:00:05 [end_date_ymd] => 2025-03-12 20:00:05 [RateCDR] => 1 ) [2025-03-12 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:00:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:00:18] Production.INFO: count ==2700 [2025-03-12 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:00:05 - End Time 2025-03-12 20:00:05 [2025-03-12 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666463', 'tblTempUsageDetail_20' ) start [2025-03-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666463', 'tblTempUsageDetail_20' ) end [2025-03-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666463', 'tblTempVendorCDR_20' ) start [2025-03-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666463', 'tblTempVendorCDR_20' ) end [2025-03-12 20:00:19] Production.INFO: ProcessCDR(1,14666463,1,1,2) [2025-03-12 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666463', 'tblTempUsageDetail_20' ) start [2025-03-12 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666463', 'tblTempUsageDetail_20' ) end [2025-03-12 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:00:22] Production.INFO: ==23714== Releasing lock... [2025-03-12 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:00:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-12 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:01:05 [end_date_ymd] => 2025-03-12 20:01:05 [RateCDR] => 1 ) [2025-03-12 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:01:05' and `end` < '2025-03-12 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:01:18] Production.INFO: count ==2670 [2025-03-12 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:01:05 - End Time 2025-03-12 20:01:05 [2025-03-12 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666469', 'tblTempUsageDetail_20' ) start [2025-03-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666469', 'tblTempUsageDetail_20' ) end [2025-03-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666469', 'tblTempVendorCDR_20' ) start [2025-03-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666469', 'tblTempVendorCDR_20' ) end [2025-03-12 20:01:19] Production.INFO: ProcessCDR(1,14666469,1,1,2) [2025-03-12 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666469', 'tblTempUsageDetail_20' ) start [2025-03-12 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666469', 'tblTempUsageDetail_20' ) end [2025-03-12 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:01:22] Production.INFO: ==23838== Releasing lock... [2025-03-12 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:01:22] Production.INFO: 48 MB #Memory Used# [2025-03-12 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:02:05 [end_date_ymd] => 2025-03-12 20:02:05 [RateCDR] => 1 ) [2025-03-12 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:02:05' and `end` < '2025-03-12 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:02:17] Production.INFO: count ==2653 [2025-03-12 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:02:05 - End Time 2025-03-12 20:02:05 [2025-03-12 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666474', 'tblTempUsageDetail_20' ) start [2025-03-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666474', 'tblTempUsageDetail_20' ) end [2025-03-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666474', 'tblTempVendorCDR_20' ) start [2025-03-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666474', 'tblTempVendorCDR_20' ) end [2025-03-12 20:02:18] Production.INFO: ProcessCDR(1,14666474,1,1,2) [2025-03-12 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666474', 'tblTempUsageDetail_20' ) start [2025-03-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666474', 'tblTempUsageDetail_20' ) end [2025-03-12 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:02:23] Production.INFO: ==23915== Releasing lock... [2025-03-12 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:02:23] Production.INFO: 48 MB #Memory Used# [2025-03-12 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:03:05 [end_date_ymd] => 2025-03-12 20:03:05 [RateCDR] => 1 ) [2025-03-12 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:03:05' and `end` < '2025-03-12 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:03:17] Production.INFO: count ==2642 [2025-03-12 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:03:05 - End Time 2025-03-12 20:03:05 [2025-03-12 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666479', 'tblTempUsageDetail_20' ) start [2025-03-12 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666479', 'tblTempUsageDetail_20' ) end [2025-03-12 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666479', 'tblTempVendorCDR_20' ) start [2025-03-12 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666479', 'tblTempVendorCDR_20' ) end [2025-03-12 20:03:18] Production.INFO: ProcessCDR(1,14666479,1,1,2) [2025-03-12 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666479', 'tblTempUsageDetail_20' ) start [2025-03-12 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666479', 'tblTempUsageDetail_20' ) end [2025-03-12 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:03:23] Production.INFO: ==23989== Releasing lock... [2025-03-12 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:03:23] Production.INFO: 48 MB #Memory Used# [2025-03-12 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:04:05 [end_date_ymd] => 2025-03-12 20:04:05 [RateCDR] => 1 ) [2025-03-12 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:04:05' and `end` < '2025-03-12 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:04:17] Production.INFO: count ==2620 [2025-03-12 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:04:05 - End Time 2025-03-12 20:04:05 [2025-03-12 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666484', 'tblTempUsageDetail_20' ) start [2025-03-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666484', 'tblTempUsageDetail_20' ) end [2025-03-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666484', 'tblTempVendorCDR_20' ) start [2025-03-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666484', 'tblTempVendorCDR_20' ) end [2025-03-12 20:04:18] Production.INFO: ProcessCDR(1,14666484,1,1,2) [2025-03-12 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666484', 'tblTempUsageDetail_20' ) start [2025-03-12 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666484', 'tblTempUsageDetail_20' ) end [2025-03-12 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:04:21] Production.INFO: ==24066== Releasing lock... [2025-03-12 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:04:21] Production.INFO: 47.75 MB #Memory Used# [2025-03-12 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:05:05 [end_date_ymd] => 2025-03-12 20:05:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:05:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:05:18] Production.INFO: count ==2600 [2025-03-12 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:05:05 - End Time 2025-03-12 20:05:05 [2025-03-12 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666489', 'tblTempUsageDetail_20' ) start [2025-03-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666489', 'tblTempUsageDetail_20' ) end [2025-03-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666489', 'tblTempVendorCDR_20' ) start [2025-03-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666489', 'tblTempVendorCDR_20' ) end [2025-03-12 20:05:19] Production.INFO: ProcessCDR(1,14666489,1,1,2) [2025-03-12 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666489', 'tblTempUsageDetail_20' ) start [2025-03-12 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666489', 'tblTempUsageDetail_20' ) end [2025-03-12 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:05:22] Production.INFO: ==24141== Releasing lock... [2025-03-12 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:05:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-12 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:06:05 [end_date_ymd] => 2025-03-12 20:06:05 [RateCDR] => 1 ) [2025-03-12 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:06:05' and `end` < '2025-03-12 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:06:17] Production.INFO: count ==2573 [2025-03-12 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:06:05 - End Time 2025-03-12 20:06:05 [2025-03-12 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666494', 'tblTempUsageDetail_20' ) start [2025-03-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666494', 'tblTempUsageDetail_20' ) end [2025-03-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666494', 'tblTempVendorCDR_20' ) start [2025-03-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666494', 'tblTempVendorCDR_20' ) end [2025-03-12 20:06:18] Production.INFO: ProcessCDR(1,14666494,1,1,2) [2025-03-12 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666494', 'tblTempUsageDetail_20' ) start [2025-03-12 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666494', 'tblTempUsageDetail_20' ) end [2025-03-12 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:06:23] Production.INFO: ==24214== Releasing lock... [2025-03-12 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:06:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-12 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:07:05 [end_date_ymd] => 2025-03-12 20:07:05 [RateCDR] => 1 ) [2025-03-12 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:07:05' and `end` < '2025-03-12 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:07:18] Production.INFO: count ==2558 [2025-03-12 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:07:05 - End Time 2025-03-12 20:07:05 [2025-03-12 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666499', 'tblTempUsageDetail_20' ) start [2025-03-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666499', 'tblTempUsageDetail_20' ) end [2025-03-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666499', 'tblTempVendorCDR_20' ) start [2025-03-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666499', 'tblTempVendorCDR_20' ) end [2025-03-12 20:07:19] Production.INFO: ProcessCDR(1,14666499,1,1,2) [2025-03-12 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666499', 'tblTempUsageDetail_20' ) start [2025-03-12 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666499', 'tblTempUsageDetail_20' ) end [2025-03-12 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:07:22] Production.INFO: ==24289== Releasing lock... [2025-03-12 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:07:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-12 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:08:05 [end_date_ymd] => 2025-03-12 20:08:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:08:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:08:17] Production.INFO: count ==2542 [2025-03-12 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:08:05 - End Time 2025-03-12 20:08:05 [2025-03-12 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666504', 'tblTempUsageDetail_20' ) start [2025-03-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666504', 'tblTempUsageDetail_20' ) end [2025-03-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666504', 'tblTempVendorCDR_20' ) start [2025-03-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666504', 'tblTempVendorCDR_20' ) end [2025-03-12 20:08:18] Production.INFO: ProcessCDR(1,14666504,1,1,2) [2025-03-12 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666504', 'tblTempUsageDetail_20' ) start [2025-03-12 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666504', 'tblTempUsageDetail_20' ) end [2025-03-12 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:08:23] Production.INFO: ==24362== Releasing lock... [2025-03-12 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:08:23] Production.INFO: 47 MB #Memory Used# [2025-03-12 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:09:05 [end_date_ymd] => 2025-03-12 20:09:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:09:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:09:18] Production.INFO: count ==2533 [2025-03-12 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:09:05 - End Time 2025-03-12 20:09:05 [2025-03-12 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666509', 'tblTempUsageDetail_20' ) start [2025-03-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666509', 'tblTempUsageDetail_20' ) end [2025-03-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666509', 'tblTempVendorCDR_20' ) start [2025-03-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666509', 'tblTempVendorCDR_20' ) end [2025-03-12 20:09:19] Production.INFO: ProcessCDR(1,14666509,1,1,2) [2025-03-12 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666509', 'tblTempUsageDetail_20' ) start [2025-03-12 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666509', 'tblTempUsageDetail_20' ) end [2025-03-12 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:09:22] Production.INFO: ==24437== Releasing lock... [2025-03-12 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:09:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-12 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:10:06 [end_date_ymd] => 2025-03-12 20:10:06 [RateCDR] => 1 ) [2025-03-12 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:10:06' and `end` < '2025-03-12 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:10:18] Production.INFO: count ==2514 [2025-03-12 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:10:06 - End Time 2025-03-12 20:10:06 [2025-03-12 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666514', 'tblTempUsageDetail_20' ) start [2025-03-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666514', 'tblTempUsageDetail_20' ) end [2025-03-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666514', 'tblTempVendorCDR_20' ) start [2025-03-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666514', 'tblTempVendorCDR_20' ) end [2025-03-12 20:10:19] Production.INFO: ProcessCDR(1,14666514,1,1,2) [2025-03-12 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666514', 'tblTempUsageDetail_20' ) start [2025-03-12 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666514', 'tblTempUsageDetail_20' ) end [2025-03-12 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:10:22] Production.INFO: ==24509== Releasing lock... [2025-03-12 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:10:22] Production.INFO: 47 MB #Memory Used# [2025-03-12 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:11:05 [end_date_ymd] => 2025-03-12 20:11:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:11:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:11:18] Production.INFO: count ==2444 [2025-03-12 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:11:05 - End Time 2025-03-12 20:11:05 [2025-03-12 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666520', 'tblTempUsageDetail_20' ) start [2025-03-12 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666520', 'tblTempUsageDetail_20' ) end [2025-03-12 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666520', 'tblTempVendorCDR_20' ) start [2025-03-12 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666520', 'tblTempVendorCDR_20' ) end [2025-03-12 20:11:19] Production.INFO: ProcessCDR(1,14666520,1,1,2) [2025-03-12 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666520', 'tblTempUsageDetail_20' ) start [2025-03-12 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666520', 'tblTempUsageDetail_20' ) end [2025-03-12 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:11:23] Production.INFO: ==24585== Releasing lock... [2025-03-12 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:11:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-12 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:12:05 [end_date_ymd] => 2025-03-12 20:12:05 [RateCDR] => 1 ) [2025-03-12 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:12:05' and `end` < '2025-03-12 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:12:18] Production.INFO: count ==2418 [2025-03-12 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:12:05 - End Time 2025-03-12 20:12:05 [2025-03-12 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666525', 'tblTempUsageDetail_20' ) start [2025-03-12 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666525', 'tblTempUsageDetail_20' ) end [2025-03-12 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666525', 'tblTempVendorCDR_20' ) start [2025-03-12 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666525', 'tblTempVendorCDR_20' ) end [2025-03-12 20:12:18] Production.INFO: ProcessCDR(1,14666525,1,1,2) [2025-03-12 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666525', 'tblTempUsageDetail_20' ) start [2025-03-12 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666525', 'tblTempUsageDetail_20' ) end [2025-03-12 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:12:24] Production.INFO: ==24658== Releasing lock... [2025-03-12 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:12:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:13:05 [end_date_ymd] => 2025-03-12 20:13:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:13:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:13:18] Production.INFO: count ==2400 [2025-03-12 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:13:05 - End Time 2025-03-12 20:13:05 [2025-03-12 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666530', 'tblTempUsageDetail_20' ) start [2025-03-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666530', 'tblTempUsageDetail_20' ) end [2025-03-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666530', 'tblTempVendorCDR_20' ) start [2025-03-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666530', 'tblTempVendorCDR_20' ) end [2025-03-12 20:13:18] Production.INFO: ProcessCDR(1,14666530,1,1,2) [2025-03-12 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666530', 'tblTempUsageDetail_20' ) start [2025-03-12 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666530', 'tblTempUsageDetail_20' ) end [2025-03-12 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:13:22] Production.INFO: ==24732== Releasing lock... [2025-03-12 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:13:22] Production.INFO: 46 MB #Memory Used# [2025-03-12 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:14:06 [end_date_ymd] => 2025-03-12 20:14:06 [RateCDR] => 1 ) [2025-03-12 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:14:06' and `end` < '2025-03-12 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:14:19] Production.INFO: count ==2381 [2025-03-12 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:14:06 - End Time 2025-03-12 20:14:06 [2025-03-12 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666535', 'tblTempUsageDetail_20' ) start [2025-03-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666535', 'tblTempUsageDetail_20' ) end [2025-03-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666535', 'tblTempVendorCDR_20' ) start [2025-03-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666535', 'tblTempVendorCDR_20' ) end [2025-03-12 20:14:19] Production.INFO: ProcessCDR(1,14666535,1,1,2) [2025-03-12 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666535', 'tblTempUsageDetail_20' ) start [2025-03-12 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666535', 'tblTempUsageDetail_20' ) end [2025-03-12 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:14:23] Production.INFO: ==24805== Releasing lock... [2025-03-12 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:14:23] Production.INFO: 46 MB #Memory Used# [2025-03-12 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:15:05 [end_date_ymd] => 2025-03-12 20:15:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:15:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:15:17] Production.INFO: count ==2428 [2025-03-12 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:15:05 - End Time 2025-03-12 20:15:05 [2025-03-12 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666540', 'tblTempUsageDetail_20' ) start [2025-03-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666540', 'tblTempUsageDetail_20' ) end [2025-03-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666540', 'tblTempVendorCDR_20' ) start [2025-03-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666540', 'tblTempVendorCDR_20' ) end [2025-03-12 20:15:18] Production.INFO: ProcessCDR(1,14666540,1,1,2) [2025-03-12 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666540', 'tblTempUsageDetail_20' ) start [2025-03-12 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666540', 'tblTempUsageDetail_20' ) end [2025-03-12 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:15:23] Production.INFO: ==24876== Releasing lock... [2025-03-12 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:15:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:16:05 [end_date_ymd] => 2025-03-12 20:16:05 [RateCDR] => 1 ) [2025-03-12 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:16:05' and `end` < '2025-03-12 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:16:18] Production.INFO: count ==2421 [2025-03-12 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:16:05 - End Time 2025-03-12 20:16:05 [2025-03-12 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666545', 'tblTempUsageDetail_20' ) start [2025-03-12 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666545', 'tblTempUsageDetail_20' ) end [2025-03-12 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666545', 'tblTempVendorCDR_20' ) start [2025-03-12 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666545', 'tblTempVendorCDR_20' ) end [2025-03-12 20:16:19] Production.INFO: ProcessCDR(1,14666545,1,1,2) [2025-03-12 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666545', 'tblTempUsageDetail_20' ) start [2025-03-12 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666545', 'tblTempUsageDetail_20' ) end [2025-03-12 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:16:22] Production.INFO: ==24990== Releasing lock... [2025-03-12 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:16:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:17:05 [end_date_ymd] => 2025-03-12 20:17:05 [RateCDR] => 1 ) [2025-03-12 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:17:05' and `end` < '2025-03-12 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:17:17] Production.INFO: count ==2419 [2025-03-12 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:17:05 - End Time 2025-03-12 20:17:05 [2025-03-12 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666550', 'tblTempUsageDetail_20' ) start [2025-03-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666550', 'tblTempUsageDetail_20' ) end [2025-03-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666550', 'tblTempVendorCDR_20' ) start [2025-03-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666550', 'tblTempVendorCDR_20' ) end [2025-03-12 20:17:18] Production.INFO: ProcessCDR(1,14666550,1,1,2) [2025-03-12 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666550', 'tblTempUsageDetail_20' ) start [2025-03-12 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666550', 'tblTempUsageDetail_20' ) end [2025-03-12 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:17:21] Production.INFO: ==25065== Releasing lock... [2025-03-12 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:17:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:18:05 [end_date_ymd] => 2025-03-12 20:18:05 [RateCDR] => 1 ) [2025-03-12 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:18:05' and `end` < '2025-03-12 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:18:18] Production.INFO: count ==2415 [2025-03-12 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:18:05 - End Time 2025-03-12 20:18:05 [2025-03-12 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666555', 'tblTempUsageDetail_20' ) start [2025-03-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666555', 'tblTempUsageDetail_20' ) end [2025-03-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666555', 'tblTempVendorCDR_20' ) start [2025-03-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666555', 'tblTempVendorCDR_20' ) end [2025-03-12 20:18:19] Production.INFO: ProcessCDR(1,14666555,1,1,2) [2025-03-12 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666555', 'tblTempUsageDetail_20' ) start [2025-03-12 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666555', 'tblTempUsageDetail_20' ) end [2025-03-12 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:18:23] Production.INFO: ==25137== Releasing lock... [2025-03-12 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:18:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:19:05 [end_date_ymd] => 2025-03-12 20:19:05 [RateCDR] => 1 ) [2025-03-12 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:19:05' and `end` < '2025-03-12 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:19:18] Production.INFO: count ==2438 [2025-03-12 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:19:05 - End Time 2025-03-12 20:19:05 [2025-03-12 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666560', 'tblTempUsageDetail_20' ) start [2025-03-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666560', 'tblTempUsageDetail_20' ) end [2025-03-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666560', 'tblTempVendorCDR_20' ) start [2025-03-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666560', 'tblTempVendorCDR_20' ) end [2025-03-12 20:19:18] Production.INFO: ProcessCDR(1,14666560,1,1,2) [2025-03-12 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666560', 'tblTempUsageDetail_20' ) start [2025-03-12 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666560', 'tblTempUsageDetail_20' ) end [2025-03-12 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:19:22] Production.INFO: ==25210== Releasing lock... [2025-03-12 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:19:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:20:06 [end_date_ymd] => 2025-03-12 20:20:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:20:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:20:19] Production.INFO: count ==2430 [2025-03-12 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-12 17:20:06 - End Time 2025-03-12 20:20:06 [2025-03-12 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666566', 'tblTempUsageDetail_20' ) start [2025-03-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666566', 'tblTempUsageDetail_20' ) end [2025-03-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666566', 'tblTempVendorCDR_20' ) start [2025-03-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666566', 'tblTempVendorCDR_20' ) end [2025-03-12 20:20:20] Production.INFO: ProcessCDR(1,14666566,1,1,2) [2025-03-12 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666566', 'tblTempUsageDetail_20' ) start [2025-03-12 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666566', 'tblTempUsageDetail_20' ) end [2025-03-12 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:20:25] Production.INFO: ==25286== Releasing lock... [2025-03-12 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:20:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-12 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:21:05 [end_date_ymd] => 2025-03-12 20:21:05 [RateCDR] => 1 ) [2025-03-12 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:21:05' and `end` < '2025-03-12 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:21:17] Production.INFO: count ==2381 [2025-03-12 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:21:05 - End Time 2025-03-12 20:21:05 [2025-03-12 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666571', 'tblTempUsageDetail_20' ) start [2025-03-12 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666571', 'tblTempUsageDetail_20' ) end [2025-03-12 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666571', 'tblTempVendorCDR_20' ) start [2025-03-12 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666571', 'tblTempVendorCDR_20' ) end [2025-03-12 20:21:18] Production.INFO: ProcessCDR(1,14666571,1,1,2) [2025-03-12 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666571', 'tblTempUsageDetail_20' ) start [2025-03-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666571', 'tblTempUsageDetail_20' ) end [2025-03-12 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:21:23] Production.INFO: ==25366== Releasing lock... [2025-03-12 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:21:23] Production.INFO: 46 MB #Memory Used# [2025-03-12 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:22:05 [end_date_ymd] => 2025-03-12 20:22:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:22:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:22:18] Production.INFO: count ==2376 [2025-03-12 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:22:05 - End Time 2025-03-12 20:22:05 [2025-03-12 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666576', 'tblTempUsageDetail_20' ) start [2025-03-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666576', 'tblTempUsageDetail_20' ) end [2025-03-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666576', 'tblTempVendorCDR_20' ) start [2025-03-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666576', 'tblTempVendorCDR_20' ) end [2025-03-12 20:22:19] Production.INFO: ProcessCDR(1,14666576,1,1,2) [2025-03-12 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666576', 'tblTempUsageDetail_20' ) start [2025-03-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666576', 'tblTempUsageDetail_20' ) end [2025-03-12 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:22:22] Production.INFO: ==25439== Releasing lock... [2025-03-12 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:22:22] Production.INFO: 46 MB #Memory Used# [2025-03-12 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:23:05 [end_date_ymd] => 2025-03-12 20:23:05 [RateCDR] => 1 ) [2025-03-12 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:23:05' and `end` < '2025-03-12 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:23:17] Production.INFO: count ==2370 [2025-03-12 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:23:05 - End Time 2025-03-12 20:23:05 [2025-03-12 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666581', 'tblTempUsageDetail_20' ) start [2025-03-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666581', 'tblTempUsageDetail_20' ) end [2025-03-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666581', 'tblTempVendorCDR_20' ) start [2025-03-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666581', 'tblTempVendorCDR_20' ) end [2025-03-12 20:23:18] Production.INFO: ProcessCDR(1,14666581,1,1,2) [2025-03-12 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666581', 'tblTempUsageDetail_20' ) start [2025-03-12 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666581', 'tblTempUsageDetail_20' ) end [2025-03-12 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:23:23] Production.INFO: ==25516== Releasing lock... [2025-03-12 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:23:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-12 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:24:05 [end_date_ymd] => 2025-03-12 20:24:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:24:05' and `end` < '2025-03-12 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:24:17] Production.INFO: count ==2347 [2025-03-12 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:24:05 - End Time 2025-03-12 20:24:05 [2025-03-12 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666586', 'tblTempUsageDetail_20' ) start [2025-03-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666586', 'tblTempUsageDetail_20' ) end [2025-03-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666586', 'tblTempVendorCDR_20' ) start [2025-03-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666586', 'tblTempVendorCDR_20' ) end [2025-03-12 20:24:18] Production.INFO: ProcessCDR(1,14666586,1,1,2) [2025-03-12 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666586', 'tblTempUsageDetail_20' ) start [2025-03-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666586', 'tblTempUsageDetail_20' ) end [2025-03-12 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:24:22] Production.INFO: ==25587== Releasing lock... [2025-03-12 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:24:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-12 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:25:05 [end_date_ymd] => 2025-03-12 20:25:05 [RateCDR] => 1 ) [2025-03-12 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:25:05' and `end` < '2025-03-12 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:25:17] Production.INFO: count ==2332 [2025-03-12 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:25:05 - End Time 2025-03-12 20:25:05 [2025-03-12 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666591', 'tblTempUsageDetail_20' ) start [2025-03-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666591', 'tblTempUsageDetail_20' ) end [2025-03-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666591', 'tblTempVendorCDR_20' ) start [2025-03-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666591', 'tblTempVendorCDR_20' ) end [2025-03-12 20:25:18] Production.INFO: ProcessCDR(1,14666591,1,1,2) [2025-03-12 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666591', 'tblTempUsageDetail_20' ) start [2025-03-12 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666591', 'tblTempUsageDetail_20' ) end [2025-03-12 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:25:23] Production.INFO: ==25659== Releasing lock... [2025-03-12 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:25:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-12 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:26:05 [end_date_ymd] => 2025-03-12 20:26:05 [RateCDR] => 1 ) [2025-03-12 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:26:05' and `end` < '2025-03-12 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:26:18] Production.INFO: count ==2314 [2025-03-12 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:26:05 - End Time 2025-03-12 20:26:05 [2025-03-12 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666596', 'tblTempUsageDetail_20' ) start [2025-03-12 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666596', 'tblTempUsageDetail_20' ) end [2025-03-12 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666596', 'tblTempVendorCDR_20' ) start [2025-03-12 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666596', 'tblTempVendorCDR_20' ) end [2025-03-12 20:26:18] Production.INFO: ProcessCDR(1,14666596,1,1,2) [2025-03-12 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666596', 'tblTempUsageDetail_20' ) start [2025-03-12 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666596', 'tblTempUsageDetail_20' ) end [2025-03-12 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:26:24] Production.INFO: ==25735== Releasing lock... [2025-03-12 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:26:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-12 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:27:04 [end_date_ymd] => 2025-03-12 20:27:04 [RateCDR] => 1 ) [2025-03-12 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:27:04' and `end` < '2025-03-12 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:27:17] Production.INFO: count ==2303 [2025-03-12 20:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 17:27:04 - End Time 2025-03-12 20:27:04 [2025-03-12 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666601', 'tblTempUsageDetail_20' ) start [2025-03-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666601', 'tblTempUsageDetail_20' ) end [2025-03-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666601', 'tblTempVendorCDR_20' ) start [2025-03-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666601', 'tblTempVendorCDR_20' ) end [2025-03-12 20:27:18] Production.INFO: ProcessCDR(1,14666601,1,1,2) [2025-03-12 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666601', 'tblTempUsageDetail_20' ) start [2025-03-12 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666601', 'tblTempUsageDetail_20' ) end [2025-03-12 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:27:21] Production.INFO: ==25807== Releasing lock... [2025-03-12 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:27:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:28:05 [end_date_ymd] => 2025-03-12 20:28:05 [RateCDR] => 1 ) [2025-03-12 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:28:05' and `end` < '2025-03-12 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:28:18] Production.INFO: count ==2306 [2025-03-12 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:28:05 - End Time 2025-03-12 20:28:05 [2025-03-12 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666606', 'tblTempUsageDetail_20' ) start [2025-03-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666606', 'tblTempUsageDetail_20' ) end [2025-03-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666606', 'tblTempVendorCDR_20' ) start [2025-03-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666606', 'tblTempVendorCDR_20' ) end [2025-03-12 20:28:19] Production.INFO: ProcessCDR(1,14666606,1,1,2) [2025-03-12 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666606', 'tblTempUsageDetail_20' ) start [2025-03-12 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666606', 'tblTempUsageDetail_20' ) end [2025-03-12 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:28:22] Production.INFO: ==25877== Releasing lock... [2025-03-12 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:28:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:29:05 [end_date_ymd] => 2025-03-12 20:29:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:29:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:29:18] Production.INFO: count ==2322 [2025-03-12 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:29:05 - End Time 2025-03-12 20:29:05 [2025-03-12 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666611', 'tblTempUsageDetail_20' ) start [2025-03-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666611', 'tblTempUsageDetail_20' ) end [2025-03-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666611', 'tblTempVendorCDR_20' ) start [2025-03-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666611', 'tblTempVendorCDR_20' ) end [2025-03-12 20:29:19] Production.INFO: ProcessCDR(1,14666611,1,1,2) [2025-03-12 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666611', 'tblTempUsageDetail_20' ) start [2025-03-12 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666611', 'tblTempUsageDetail_20' ) end [2025-03-12 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:29:24] Production.INFO: ==25948== Releasing lock... [2025-03-12 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:29:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-12 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:30:06 [end_date_ymd] => 2025-03-12 20:30:06 [RateCDR] => 1 ) [2025-03-12 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:30:06' and `end` < '2025-03-12 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:30:19] Production.INFO: count ==2345 [2025-03-12 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-12 17:30:06 - End Time 2025-03-12 20:30:06 [2025-03-12 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666617', 'tblTempUsageDetail_20' ) start [2025-03-12 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666617', 'tblTempUsageDetail_20' ) end [2025-03-12 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666617', 'tblTempVendorCDR_20' ) start [2025-03-12 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666617', 'tblTempVendorCDR_20' ) end [2025-03-12 20:30:20] Production.INFO: ProcessCDR(1,14666617,1,1,2) [2025-03-12 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666617', 'tblTempUsageDetail_20' ) start [2025-03-12 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666617', 'tblTempUsageDetail_20' ) end [2025-03-12 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:30:25] Production.INFO: ==26029== Releasing lock... [2025-03-12 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:30:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-12 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:31:06 [end_date_ymd] => 2025-03-12 20:31:06 [RateCDR] => 1 ) [2025-03-12 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:31:06' and `end` < '2025-03-12 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:31:19] Production.INFO: count ==2313 [2025-03-12 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:31:06 - End Time 2025-03-12 20:31:06 [2025-03-12 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666622', 'tblTempUsageDetail_20' ) start [2025-03-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666622', 'tblTempUsageDetail_20' ) end [2025-03-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666622', 'tblTempVendorCDR_20' ) start [2025-03-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666622', 'tblTempVendorCDR_20' ) end [2025-03-12 20:31:19] Production.INFO: ProcessCDR(1,14666622,1,1,2) [2025-03-12 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666622', 'tblTempUsageDetail_20' ) start [2025-03-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666622', 'tblTempUsageDetail_20' ) end [2025-03-12 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:31:23] Production.INFO: ==26149== Releasing lock... [2025-03-12 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:31:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-12 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:32:05 [end_date_ymd] => 2025-03-12 20:32:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:32:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:32:18] Production.INFO: count ==2301 [2025-03-12 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:32:05 - End Time 2025-03-12 20:32:05 [2025-03-12 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666627', 'tblTempUsageDetail_20' ) start [2025-03-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666627', 'tblTempUsageDetail_20' ) end [2025-03-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666627', 'tblTempVendorCDR_20' ) start [2025-03-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666627', 'tblTempVendorCDR_20' ) end [2025-03-12 20:32:19] Production.INFO: ProcessCDR(1,14666627,1,1,2) [2025-03-12 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666627', 'tblTempUsageDetail_20' ) start [2025-03-12 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666627', 'tblTempUsageDetail_20' ) end [2025-03-12 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:32:24] Production.INFO: ==26220== Releasing lock... [2025-03-12 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:32:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:33:06 [end_date_ymd] => 2025-03-12 20:33:06 [RateCDR] => 1 ) [2025-03-12 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:33:06' and `end` < '2025-03-12 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:33:18] Production.INFO: count ==2282 [2025-03-12 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:33:06 - End Time 2025-03-12 20:33:06 [2025-03-12 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666632', 'tblTempUsageDetail_20' ) start [2025-03-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666632', 'tblTempUsageDetail_20' ) end [2025-03-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666632', 'tblTempVendorCDR_20' ) start [2025-03-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666632', 'tblTempVendorCDR_20' ) end [2025-03-12 20:33:19] Production.INFO: ProcessCDR(1,14666632,1,1,2) [2025-03-12 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666632', 'tblTempUsageDetail_20' ) start [2025-03-12 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666632', 'tblTempUsageDetail_20' ) end [2025-03-12 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:33:22] Production.INFO: ==26291== Releasing lock... [2025-03-12 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:33:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:34:05 [end_date_ymd] => 2025-03-12 20:34:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:34:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:34:18] Production.INFO: count ==2278 [2025-03-12 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:34:05 - End Time 2025-03-12 20:34:05 [2025-03-12 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666637', 'tblTempUsageDetail_20' ) start [2025-03-12 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666637', 'tblTempUsageDetail_20' ) end [2025-03-12 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666637', 'tblTempVendorCDR_20' ) start [2025-03-12 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666637', 'tblTempVendorCDR_20' ) end [2025-03-12 20:34:18] Production.INFO: ProcessCDR(1,14666637,1,1,2) [2025-03-12 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666637', 'tblTempUsageDetail_20' ) start [2025-03-12 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666637', 'tblTempUsageDetail_20' ) end [2025-03-12 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:34:22] Production.INFO: ==26366== Releasing lock... [2025-03-12 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:34:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:35:05 [end_date_ymd] => 2025-03-12 20:35:05 [RateCDR] => 1 ) [2025-03-12 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:35:05' and `end` < '2025-03-12 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:35:18] Production.INFO: count ==2274 [2025-03-12 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:35:05 - End Time 2025-03-12 20:35:05 [2025-03-12 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666642', 'tblTempUsageDetail_20' ) start [2025-03-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666642', 'tblTempUsageDetail_20' ) end [2025-03-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666642', 'tblTempVendorCDR_20' ) start [2025-03-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666642', 'tblTempVendorCDR_20' ) end [2025-03-12 20:35:19] Production.INFO: ProcessCDR(1,14666642,1,1,2) [2025-03-12 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666642', 'tblTempUsageDetail_20' ) start [2025-03-12 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666642', 'tblTempUsageDetail_20' ) end [2025-03-12 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:35:22] Production.INFO: ==26436== Releasing lock... [2025-03-12 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:35:22] Production.INFO: 45 MB #Memory Used# [2025-03-12 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:36:05 [end_date_ymd] => 2025-03-12 20:36:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:36:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:36:18] Production.INFO: count ==2271 [2025-03-12 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:36:05 - End Time 2025-03-12 20:36:05 [2025-03-12 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666647', 'tblTempUsageDetail_20' ) start [2025-03-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666647', 'tblTempUsageDetail_20' ) end [2025-03-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666647', 'tblTempVendorCDR_20' ) start [2025-03-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666647', 'tblTempVendorCDR_20' ) end [2025-03-12 20:36:18] Production.INFO: ProcessCDR(1,14666647,1,1,2) [2025-03-12 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666647', 'tblTempUsageDetail_20' ) start [2025-03-12 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666647', 'tblTempUsageDetail_20' ) end [2025-03-12 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:36:22] Production.INFO: ==26514== Releasing lock... [2025-03-12 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:36:22] Production.INFO: 45 MB #Memory Used# [2025-03-12 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:37:06 [end_date_ymd] => 2025-03-12 20:37:06 [RateCDR] => 1 ) [2025-03-12 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:37:06' and `end` < '2025-03-12 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:37:18] Production.INFO: count ==2269 [2025-03-12 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:37:06 - End Time 2025-03-12 20:37:06 [2025-03-12 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666652', 'tblTempUsageDetail_20' ) start [2025-03-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666652', 'tblTempUsageDetail_20' ) end [2025-03-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666652', 'tblTempVendorCDR_20' ) start [2025-03-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666652', 'tblTempVendorCDR_20' ) end [2025-03-12 20:37:19] Production.INFO: ProcessCDR(1,14666652,1,1,2) [2025-03-12 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666652', 'tblTempUsageDetail_20' ) start [2025-03-12 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666652', 'tblTempUsageDetail_20' ) end [2025-03-12 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:37:22] Production.INFO: ==26589== Releasing lock... [2025-03-12 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:37:22] Production.INFO: 45 MB #Memory Used# [2025-03-12 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:38:05 [end_date_ymd] => 2025-03-12 20:38:05 [RateCDR] => 1 ) [2025-03-12 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:38:05' and `end` < '2025-03-12 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:38:17] Production.INFO: count ==2268 [2025-03-12 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:38:05 - End Time 2025-03-12 20:38:05 [2025-03-12 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666657', 'tblTempUsageDetail_20' ) start [2025-03-12 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666657', 'tblTempUsageDetail_20' ) end [2025-03-12 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666657', 'tblTempVendorCDR_20' ) start [2025-03-12 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666657', 'tblTempVendorCDR_20' ) end [2025-03-12 20:38:18] Production.INFO: ProcessCDR(1,14666657,1,1,2) [2025-03-12 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666657', 'tblTempUsageDetail_20' ) start [2025-03-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666657', 'tblTempUsageDetail_20' ) end [2025-03-12 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:38:23] Production.INFO: ==26663== Releasing lock... [2025-03-12 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:38:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-12 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:39:06 [end_date_ymd] => 2025-03-12 20:39:06 [RateCDR] => 1 ) [2025-03-12 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:39:06' and `end` < '2025-03-12 20:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:39:18] Production.INFO: count ==2261 [2025-03-12 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:39:06 - End Time 2025-03-12 20:39:06 [2025-03-12 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666662', 'tblTempUsageDetail_20' ) start [2025-03-12 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666662', 'tblTempUsageDetail_20' ) end [2025-03-12 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666662', 'tblTempVendorCDR_20' ) start [2025-03-12 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666662', 'tblTempVendorCDR_20' ) end [2025-03-12 20:39:19] Production.INFO: ProcessCDR(1,14666662,1,1,2) [2025-03-12 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666662', 'tblTempUsageDetail_20' ) start [2025-03-12 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666662', 'tblTempUsageDetail_20' ) end [2025-03-12 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:39:22] Production.INFO: ==26741== Releasing lock... [2025-03-12 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:39:22] Production.INFO: 45 MB #Memory Used# [2025-03-12 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:40:06 [end_date_ymd] => 2025-03-12 20:40:06 [RateCDR] => 1 ) [2025-03-12 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:40:06' and `end` < '2025-03-12 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:40:19] Production.INFO: count ==2259 [2025-03-12 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:40:06 - End Time 2025-03-12 20:40:06 [2025-03-12 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666668', 'tblTempUsageDetail_20' ) start [2025-03-12 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666668', 'tblTempUsageDetail_20' ) end [2025-03-12 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666668', 'tblTempVendorCDR_20' ) start [2025-03-12 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666668', 'tblTempVendorCDR_20' ) end [2025-03-12 20:40:19] Production.INFO: ProcessCDR(1,14666668,1,1,2) [2025-03-12 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666668', 'tblTempUsageDetail_20' ) start [2025-03-12 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666668', 'tblTempUsageDetail_20' ) end [2025-03-12 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:40:25] Production.INFO: ==26817== Releasing lock... [2025-03-12 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:40:25] Production.INFO: 45 MB #Memory Used# [2025-03-12 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:41:05 [end_date_ymd] => 2025-03-12 20:41:05 [RateCDR] => 1 ) [2025-03-12 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:41:05' and `end` < '2025-03-12 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:41:18] Production.INFO: count ==2210 [2025-03-12 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:41:05 - End Time 2025-03-12 20:41:05 [2025-03-12 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666673', 'tblTempUsageDetail_20' ) start [2025-03-12 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666673', 'tblTempUsageDetail_20' ) end [2025-03-12 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666673', 'tblTempVendorCDR_20' ) start [2025-03-12 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666673', 'tblTempVendorCDR_20' ) end [2025-03-12 20:41:18] Production.INFO: ProcessCDR(1,14666673,1,1,2) [2025-03-12 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666673', 'tblTempUsageDetail_20' ) start [2025-03-12 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666673', 'tblTempUsageDetail_20' ) end [2025-03-12 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:41:23] Production.INFO: ==26901== Releasing lock... [2025-03-12 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:41:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-12 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:42:05 [end_date_ymd] => 2025-03-12 20:42:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:42:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:42:17] Production.INFO: count ==2178 [2025-03-12 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:42:05 - End Time 2025-03-12 20:42:05 [2025-03-12 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666678', 'tblTempUsageDetail_20' ) start [2025-03-12 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666678', 'tblTempUsageDetail_20' ) end [2025-03-12 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666678', 'tblTempVendorCDR_20' ) start [2025-03-12 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666678', 'tblTempVendorCDR_20' ) end [2025-03-12 20:42:18] Production.INFO: ProcessCDR(1,14666678,1,1,2) [2025-03-12 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666678', 'tblTempUsageDetail_20' ) start [2025-03-12 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666678', 'tblTempUsageDetail_20' ) end [2025-03-12 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:42:22] Production.INFO: ==26979== Releasing lock... [2025-03-12 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:42:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-12 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:43:06 [end_date_ymd] => 2025-03-12 20:43:06 [RateCDR] => 1 ) [2025-03-12 20:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:43:06' and `end` < '2025-03-12 20:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:43:18] Production.INFO: count ==2175 [2025-03-12 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:43:06 - End Time 2025-03-12 20:43:06 [2025-03-12 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666683', 'tblTempUsageDetail_20' ) start [2025-03-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666683', 'tblTempUsageDetail_20' ) end [2025-03-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666683', 'tblTempVendorCDR_20' ) start [2025-03-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666683', 'tblTempVendorCDR_20' ) end [2025-03-12 20:43:19] Production.INFO: ProcessCDR(1,14666683,1,1,2) [2025-03-12 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666683', 'tblTempUsageDetail_20' ) start [2025-03-12 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666683', 'tblTempUsageDetail_20' ) end [2025-03-12 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:43:22] Production.INFO: ==27056== Releasing lock... [2025-03-12 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:43:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-12 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:44:05 [end_date_ymd] => 2025-03-12 20:44:05 [RateCDR] => 1 ) [2025-03-12 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:44:05' and `end` < '2025-03-12 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:44:17] Production.INFO: count ==2172 [2025-03-12 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:44:05 - End Time 2025-03-12 20:44:05 [2025-03-12 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666688', 'tblTempUsageDetail_20' ) start [2025-03-12 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666688', 'tblTempUsageDetail_20' ) end [2025-03-12 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666688', 'tblTempVendorCDR_20' ) start [2025-03-12 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666688', 'tblTempVendorCDR_20' ) end [2025-03-12 20:44:18] Production.INFO: ProcessCDR(1,14666688,1,1,2) [2025-03-12 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666688', 'tblTempUsageDetail_20' ) start [2025-03-12 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666688', 'tblTempUsageDetail_20' ) end [2025-03-12 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:44:23] Production.INFO: ==27133== Releasing lock... [2025-03-12 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:44:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-12 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:45:05 [end_date_ymd] => 2025-03-12 20:45:05 [RateCDR] => 1 ) [2025-03-12 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:45:05' and `end` < '2025-03-12 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:45:17] Production.INFO: count ==2167 [2025-03-12 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:45:05 - End Time 2025-03-12 20:45:05 [2025-03-12 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666693', 'tblTempUsageDetail_20' ) start [2025-03-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666693', 'tblTempUsageDetail_20' ) end [2025-03-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666693', 'tblTempVendorCDR_20' ) start [2025-03-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666693', 'tblTempVendorCDR_20' ) end [2025-03-12 20:45:18] Production.INFO: ProcessCDR(1,14666693,1,1,2) [2025-03-12 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666693', 'tblTempUsageDetail_20' ) start [2025-03-12 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666693', 'tblTempUsageDetail_20' ) end [2025-03-12 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:45:21] Production.INFO: ==27209== Releasing lock... [2025-03-12 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:45:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-12 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:46:04 [end_date_ymd] => 2025-03-12 20:46:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:46:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:46:17] Production.INFO: count ==2157 [2025-03-12 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:46:04 - End Time 2025-03-12 20:46:04 [2025-03-12 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666698', 'tblTempUsageDetail_20' ) start [2025-03-12 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666698', 'tblTempUsageDetail_20' ) end [2025-03-12 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666698', 'tblTempVendorCDR_20' ) start [2025-03-12 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666698', 'tblTempVendorCDR_20' ) end [2025-03-12 20:46:18] Production.INFO: ProcessCDR(1,14666698,1,1,2) [2025-03-12 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666698', 'tblTempUsageDetail_20' ) start [2025-03-12 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666698', 'tblTempUsageDetail_20' ) end [2025-03-12 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:46:21] Production.INFO: ==27285== Releasing lock... [2025-03-12 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:46:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-12 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:47:06 [end_date_ymd] => 2025-03-12 20:47:06 [RateCDR] => 1 ) [2025-03-12 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:47:06' and `end` < '2025-03-12 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:47:18] Production.INFO: count ==2140 [2025-03-12 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:47:06 - End Time 2025-03-12 20:47:06 [2025-03-12 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666703', 'tblTempUsageDetail_20' ) start [2025-03-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666703', 'tblTempUsageDetail_20' ) end [2025-03-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666703', 'tblTempVendorCDR_20' ) start [2025-03-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666703', 'tblTempVendorCDR_20' ) end [2025-03-12 20:47:19] Production.INFO: ProcessCDR(1,14666703,1,1,2) [2025-03-12 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666703', 'tblTempUsageDetail_20' ) start [2025-03-12 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666703', 'tblTempUsageDetail_20' ) end [2025-03-12 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:47:22] Production.INFO: ==27403== Releasing lock... [2025-03-12 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:47:22] Production.INFO: 44 MB #Memory Used# [2025-03-12 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:48:05 [end_date_ymd] => 2025-03-12 20:48:05 [RateCDR] => 1 ) [2025-03-12 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:48:05' and `end` < '2025-03-12 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:48:17] Production.INFO: count ==2134 [2025-03-12 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:48:05 - End Time 2025-03-12 20:48:05 [2025-03-12 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666708', 'tblTempUsageDetail_20' ) start [2025-03-12 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666708', 'tblTempUsageDetail_20' ) end [2025-03-12 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666708', 'tblTempVendorCDR_20' ) start [2025-03-12 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666708', 'tblTempVendorCDR_20' ) end [2025-03-12 20:48:18] Production.INFO: ProcessCDR(1,14666708,1,1,2) [2025-03-12 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666708', 'tblTempUsageDetail_20' ) start [2025-03-12 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666708', 'tblTempUsageDetail_20' ) end [2025-03-12 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:48:21] Production.INFO: ==27481== Releasing lock... [2025-03-12 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:48:21] Production.INFO: 44 MB #Memory Used# [2025-03-12 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:49:05 [end_date_ymd] => 2025-03-12 20:49:05 [RateCDR] => 1 ) [2025-03-12 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:49:05' and `end` < '2025-03-12 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:49:17] Production.INFO: count ==2127 [2025-03-12 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:49:05 - End Time 2025-03-12 20:49:05 [2025-03-12 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666713', 'tblTempUsageDetail_20' ) start [2025-03-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666713', 'tblTempUsageDetail_20' ) end [2025-03-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666713', 'tblTempVendorCDR_20' ) start [2025-03-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666713', 'tblTempVendorCDR_20' ) end [2025-03-12 20:49:18] Production.INFO: ProcessCDR(1,14666713,1,1,2) [2025-03-12 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666713', 'tblTempUsageDetail_20' ) start [2025-03-12 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666713', 'tblTempUsageDetail_20' ) end [2025-03-12 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:49:23] Production.INFO: ==27560== Releasing lock... [2025-03-12 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:49:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-12 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:50:07 [end_date_ymd] => 2025-03-12 20:50:07 [RateCDR] => 1 ) [2025-03-12 20:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:50:07' and `end` < '2025-03-12 20:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:50:19] Production.INFO: count ==2123 [2025-03-12 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:50:07 - End Time 2025-03-12 20:50:07 [2025-03-12 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666719', 'tblTempUsageDetail_20' ) start [2025-03-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666719', 'tblTempUsageDetail_20' ) end [2025-03-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666719', 'tblTempVendorCDR_20' ) start [2025-03-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666719', 'tblTempVendorCDR_20' ) end [2025-03-12 20:50:19] Production.INFO: ProcessCDR(1,14666719,1,1,2) [2025-03-12 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666719', 'tblTempUsageDetail_20' ) start [2025-03-12 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666719', 'tblTempUsageDetail_20' ) end [2025-03-12 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:50:23] Production.INFO: ==27641== Releasing lock... [2025-03-12 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:50:23] Production.INFO: 44 MB #Memory Used# [2025-03-12 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:51:06 [end_date_ymd] => 2025-03-12 20:51:06 [RateCDR] => 1 ) [2025-03-12 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:51:06' and `end` < '2025-03-12 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:51:18] Production.INFO: count ==2059 [2025-03-12 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:51:06 - End Time 2025-03-12 20:51:06 [2025-03-12 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666724', 'tblTempUsageDetail_20' ) start [2025-03-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666724', 'tblTempUsageDetail_20' ) end [2025-03-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666724', 'tblTempVendorCDR_20' ) start [2025-03-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666724', 'tblTempVendorCDR_20' ) end [2025-03-12 20:51:19] Production.INFO: ProcessCDR(1,14666724,1,1,2) [2025-03-12 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666724', 'tblTempUsageDetail_20' ) start [2025-03-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666724', 'tblTempUsageDetail_20' ) end [2025-03-12 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:51:22] Production.INFO: ==27718== Releasing lock... [2025-03-12 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:51:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-12 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:52:06 [end_date_ymd] => 2025-03-12 20:52:06 [RateCDR] => 1 ) [2025-03-12 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:52:06' and `end` < '2025-03-12 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:52:18] Production.INFO: count ==2070 [2025-03-12 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:52:06 - End Time 2025-03-12 20:52:06 [2025-03-12 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666729', 'tblTempUsageDetail_20' ) start [2025-03-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666729', 'tblTempUsageDetail_20' ) end [2025-03-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666729', 'tblTempVendorCDR_20' ) start [2025-03-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666729', 'tblTempVendorCDR_20' ) end [2025-03-12 20:52:19] Production.INFO: ProcessCDR(1,14666729,1,1,2) [2025-03-12 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666729', 'tblTempUsageDetail_20' ) start [2025-03-12 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666729', 'tblTempUsageDetail_20' ) end [2025-03-12 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:52:24] Production.INFO: ==27793== Releasing lock... [2025-03-12 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:52:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-12 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:53:05 [end_date_ymd] => 2025-03-12 20:53:05 [RateCDR] => 1 ) [2025-03-12 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:53:05' and `end` < '2025-03-12 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:53:17] Production.INFO: count ==2067 [2025-03-12 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:53:05 - End Time 2025-03-12 20:53:05 [2025-03-12 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666734', 'tblTempUsageDetail_20' ) start [2025-03-12 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666734', 'tblTempUsageDetail_20' ) end [2025-03-12 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666734', 'tblTempVendorCDR_20' ) start [2025-03-12 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666734', 'tblTempVendorCDR_20' ) end [2025-03-12 20:53:18] Production.INFO: ProcessCDR(1,14666734,1,1,2) [2025-03-12 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666734', 'tblTempUsageDetail_20' ) start [2025-03-12 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666734', 'tblTempUsageDetail_20' ) end [2025-03-12 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:53:23] Production.INFO: ==27871== Releasing lock... [2025-03-12 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:54:06 [end_date_ymd] => 2025-03-12 20:54:06 [RateCDR] => 1 ) [2025-03-12 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:54:06' and `end` < '2025-03-12 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:54:18] Production.INFO: count ==2058 [2025-03-12 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:54:06 - End Time 2025-03-12 20:54:06 [2025-03-12 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666739', 'tblTempUsageDetail_20' ) start [2025-03-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666739', 'tblTempUsageDetail_20' ) end [2025-03-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666739', 'tblTempVendorCDR_20' ) start [2025-03-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666739', 'tblTempVendorCDR_20' ) end [2025-03-12 20:54:19] Production.INFO: ProcessCDR(1,14666739,1,1,2) [2025-03-12 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666739', 'tblTempUsageDetail_20' ) start [2025-03-12 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666739', 'tblTempUsageDetail_20' ) end [2025-03-12 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:54:22] Production.INFO: ==27947== Releasing lock... [2025-03-12 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:54:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-12 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:55:05 [end_date_ymd] => 2025-03-12 20:55:05 [RateCDR] => 1 ) [2025-03-12 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:55:05' and `end` < '2025-03-12 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:55:18] Production.INFO: count ==2052 [2025-03-12 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:55:05 - End Time 2025-03-12 20:55:05 [2025-03-12 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666744', 'tblTempUsageDetail_20' ) start [2025-03-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666744', 'tblTempUsageDetail_20' ) end [2025-03-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666744', 'tblTempVendorCDR_20' ) start [2025-03-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666744', 'tblTempVendorCDR_20' ) end [2025-03-12 20:55:18] Production.INFO: ProcessCDR(1,14666744,1,1,2) [2025-03-12 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666744', 'tblTempUsageDetail_20' ) start [2025-03-12 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666744', 'tblTempUsageDetail_20' ) end [2025-03-12 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:55:23] Production.INFO: ==28022== Releasing lock... [2025-03-12 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-12 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:56:05 [end_date_ymd] => 2025-03-12 20:56:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 17:56:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 20:56:18] Production.INFO: count ==2032 [2025-03-12 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:56:05 - End Time 2025-03-12 20:56:05 [2025-03-12 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666749', 'tblTempUsageDetail_20' ) start [2025-03-12 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666749', 'tblTempUsageDetail_20' ) end [2025-03-12 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666749', 'tblTempVendorCDR_20' ) start [2025-03-12 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666749', 'tblTempVendorCDR_20' ) end [2025-03-12 20:56:18] Production.INFO: ProcessCDR(1,14666749,1,1,2) [2025-03-12 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666749', 'tblTempUsageDetail_20' ) start [2025-03-12 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666749', 'tblTempUsageDetail_20' ) end [2025-03-12 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:56:22] Production.INFO: ==28098== Releasing lock... [2025-03-12 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:56:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:57:05 [end_date_ymd] => 2025-03-12 20:57:05 [RateCDR] => 1 ) [2025-03-12 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:57:05' and `end` < '2025-03-12 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:57:17] Production.INFO: count ==2022 [2025-03-12 20:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 17:57:05 - End Time 2025-03-12 20:57:05 [2025-03-12 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666754', 'tblTempUsageDetail_20' ) start [2025-03-12 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666754', 'tblTempUsageDetail_20' ) end [2025-03-12 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666754', 'tblTempVendorCDR_20' ) start [2025-03-12 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666754', 'tblTempVendorCDR_20' ) end [2025-03-12 20:57:17] Production.INFO: ProcessCDR(1,14666754,1,1,2) [2025-03-12 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666754', 'tblTempUsageDetail_20' ) start [2025-03-12 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666754', 'tblTempUsageDetail_20' ) end [2025-03-12 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:57:21] Production.INFO: ==28176== Releasing lock... [2025-03-12 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:57:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:58:06 [end_date_ymd] => 2025-03-12 20:58:06 [RateCDR] => 1 ) [2025-03-12 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:58:06' and `end` < '2025-03-12 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:58:18] Production.INFO: count ==1997 [2025-03-12 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-12 17:58:06 - End Time 2025-03-12 20:58:06 [2025-03-12 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666759', 'tblTempUsageDetail_20' ) start [2025-03-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666759', 'tblTempUsageDetail_20' ) end [2025-03-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666759', 'tblTempVendorCDR_20' ) start [2025-03-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666759', 'tblTempVendorCDR_20' ) end [2025-03-12 20:58:19] Production.INFO: ProcessCDR(1,14666759,1,1,2) [2025-03-12 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666759', 'tblTempUsageDetail_20' ) start [2025-03-12 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666759', 'tblTempUsageDetail_20' ) end [2025-03-12 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:58:22] Production.INFO: ==28257== Releasing lock... [2025-03-12 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:58:22] Production.INFO: 43 MB #Memory Used# [2025-03-12 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 17:59:05 [end_date_ymd] => 2025-03-12 20:59:05 [RateCDR] => 1 ) [2025-03-12 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 17:59:05' and `end` < '2025-03-12 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 20:59:17] Production.INFO: count ==1981 [2025-03-12 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-12 17:59:05 - End Time 2025-03-12 20:59:05 [2025-03-12 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666764', 'tblTempUsageDetail_20' ) start [2025-03-12 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666764', 'tblTempUsageDetail_20' ) end [2025-03-12 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666764', 'tblTempVendorCDR_20' ) start [2025-03-12 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666764', 'tblTempVendorCDR_20' ) end [2025-03-12 20:59:18] Production.INFO: ProcessCDR(1,14666764,1,1,2) [2025-03-12 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666764', 'tblTempUsageDetail_20' ) start [2025-03-12 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666764', 'tblTempUsageDetail_20' ) end [2025-03-12 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 20:59:21] Production.INFO: ==28339== Releasing lock... [2025-03-12 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 20:59:21] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:00:07 [end_date_ymd] => 2025-03-12 21:00:07 [RateCDR] => 1 ) [2025-03-12 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:00:07' and `end` < '2025-03-12 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:00:19] Production.INFO: count ==2003 [2025-03-12 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-12 18:00:07 - End Time 2025-03-12 21:00:07 [2025-03-12 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666770', 'tblTempUsageDetail_20' ) start [2025-03-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666770', 'tblTempUsageDetail_20' ) end [2025-03-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666770', 'tblTempVendorCDR_20' ) start [2025-03-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666770', 'tblTempVendorCDR_20' ) end [2025-03-12 21:00:20] Production.INFO: ProcessCDR(1,14666770,1,1,2) [2025-03-12 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666770', 'tblTempUsageDetail_20' ) start [2025-03-12 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666770', 'tblTempUsageDetail_20' ) end [2025-03-12 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:00:23] Production.INFO: ==28416== Releasing lock... [2025-03-12 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:00:23] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:01:05 [end_date_ymd] => 2025-03-12 21:01:05 [RateCDR] => 1 ) [2025-03-12 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:01:05' and `end` < '2025-03-12 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:01:17] Production.INFO: count ==1997 [2025-03-12 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:01:05 - End Time 2025-03-12 21:01:05 [2025-03-12 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666775', 'tblTempUsageDetail_20' ) start [2025-03-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666775', 'tblTempUsageDetail_20' ) end [2025-03-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666775', 'tblTempVendorCDR_20' ) start [2025-03-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666775', 'tblTempVendorCDR_20' ) end [2025-03-12 21:01:18] Production.INFO: ProcessCDR(1,14666775,1,1,2) [2025-03-12 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666775', 'tblTempUsageDetail_20' ) start [2025-03-12 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666775', 'tblTempUsageDetail_20' ) end [2025-03-12 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:01:23] Production.INFO: ==28507== Releasing lock... [2025-03-12 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:01:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:02:06 [end_date_ymd] => 2025-03-12 21:02:06 [RateCDR] => 1 ) [2025-03-12 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:02:06' and `end` < '2025-03-12 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:02:18] Production.INFO: count ==1995 [2025-03-12 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:02:06 - End Time 2025-03-12 21:02:06 [2025-03-12 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666780', 'tblTempUsageDetail_20' ) start [2025-03-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666780', 'tblTempUsageDetail_20' ) end [2025-03-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666780', 'tblTempVendorCDR_20' ) start [2025-03-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666780', 'tblTempVendorCDR_20' ) end [2025-03-12 21:02:19] Production.INFO: ProcessCDR(1,14666780,1,1,2) [2025-03-12 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666780', 'tblTempUsageDetail_20' ) start [2025-03-12 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666780', 'tblTempUsageDetail_20' ) end [2025-03-12 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:02:24] Production.INFO: ==28630== Releasing lock... [2025-03-12 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:02:24] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:03:05 [end_date_ymd] => 2025-03-12 21:03:05 [RateCDR] => 1 ) [2025-03-12 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:03:05' and `end` < '2025-03-12 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:03:17] Production.INFO: count ==1999 [2025-03-12 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:03:05 - End Time 2025-03-12 21:03:05 [2025-03-12 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666785', 'tblTempUsageDetail_20' ) start [2025-03-12 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666785', 'tblTempUsageDetail_20' ) end [2025-03-12 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666785', 'tblTempVendorCDR_20' ) start [2025-03-12 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666785', 'tblTempVendorCDR_20' ) end [2025-03-12 21:03:18] Production.INFO: ProcessCDR(1,14666785,1,1,2) [2025-03-12 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666785', 'tblTempUsageDetail_20' ) start [2025-03-12 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666785', 'tblTempUsageDetail_20' ) end [2025-03-12 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:03:21] Production.INFO: ==28704== Releasing lock... [2025-03-12 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:03:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:04:05 [end_date_ymd] => 2025-03-12 21:04:05 [RateCDR] => 1 ) [2025-03-12 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:04:05' and `end` < '2025-03-12 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:04:18] Production.INFO: count ==2005 [2025-03-12 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:04:05 - End Time 2025-03-12 21:04:05 [2025-03-12 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666790', 'tblTempUsageDetail_20' ) start [2025-03-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666790', 'tblTempUsageDetail_20' ) end [2025-03-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666790', 'tblTempVendorCDR_20' ) start [2025-03-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666790', 'tblTempVendorCDR_20' ) end [2025-03-12 21:04:18] Production.INFO: ProcessCDR(1,14666790,1,1,2) [2025-03-12 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666790', 'tblTempUsageDetail_20' ) start [2025-03-12 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666790', 'tblTempUsageDetail_20' ) end [2025-03-12 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:04:22] Production.INFO: ==28788== Releasing lock... [2025-03-12 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:04:22] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:05:05 [end_date_ymd] => 2025-03-12 21:05:05 [RateCDR] => 1 ) [2025-03-12 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:05:05' and `end` < '2025-03-12 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:05:18] Production.INFO: count ==1995 [2025-03-12 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:05:05 - End Time 2025-03-12 21:05:05 [2025-03-12 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666795', 'tblTempUsageDetail_20' ) start [2025-03-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666795', 'tblTempUsageDetail_20' ) end [2025-03-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666795', 'tblTempVendorCDR_20' ) start [2025-03-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666795', 'tblTempVendorCDR_20' ) end [2025-03-12 21:05:19] Production.INFO: ProcessCDR(1,14666795,1,1,2) [2025-03-12 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666795', 'tblTempUsageDetail_20' ) start [2025-03-12 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666795', 'tblTempUsageDetail_20' ) end [2025-03-12 21:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:05:24] Production.INFO: ==28861== Releasing lock... [2025-03-12 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:05:24] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:06:06 [end_date_ymd] => 2025-03-12 21:06:06 [RateCDR] => 1 ) [2025-03-12 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:06:06' and `end` < '2025-03-12 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:06:18] Production.INFO: count ==1996 [2025-03-12 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:06:06 - End Time 2025-03-12 21:06:06 [2025-03-12 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666800', 'tblTempUsageDetail_20' ) start [2025-03-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666800', 'tblTempUsageDetail_20' ) end [2025-03-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666800', 'tblTempVendorCDR_20' ) start [2025-03-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666800', 'tblTempVendorCDR_20' ) end [2025-03-12 21:06:19] Production.INFO: ProcessCDR(1,14666800,1,1,2) [2025-03-12 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666800', 'tblTempUsageDetail_20' ) start [2025-03-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666800', 'tblTempUsageDetail_20' ) end [2025-03-12 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:06:22] Production.INFO: ==28937== Releasing lock... [2025-03-12 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:06:22] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:07:05 [end_date_ymd] => 2025-03-12 21:07:05 [RateCDR] => 1 ) [2025-03-12 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:07:05' and `end` < '2025-03-12 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:07:18] Production.INFO: count ==2000 [2025-03-12 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:07:05 - End Time 2025-03-12 21:07:05 [2025-03-12 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666805', 'tblTempUsageDetail_20' ) start [2025-03-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666805', 'tblTempUsageDetail_20' ) end [2025-03-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666805', 'tblTempVendorCDR_20' ) start [2025-03-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666805', 'tblTempVendorCDR_20' ) end [2025-03-12 21:07:18] Production.INFO: ProcessCDR(1,14666805,1,1,2) [2025-03-12 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666805', 'tblTempUsageDetail_20' ) start [2025-03-12 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666805', 'tblTempUsageDetail_20' ) end [2025-03-12 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:07:22] Production.INFO: ==29013== Releasing lock... [2025-03-12 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:07:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:08:06 [end_date_ymd] => 2025-03-12 21:08:06 [RateCDR] => 1 ) [2025-03-12 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:08:06' and `end` < '2025-03-12 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:08:18] Production.INFO: count ==2003 [2025-03-12 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:08:06 - End Time 2025-03-12 21:08:06 [2025-03-12 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666810', 'tblTempUsageDetail_20' ) start [2025-03-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666810', 'tblTempUsageDetail_20' ) end [2025-03-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666810', 'tblTempVendorCDR_20' ) start [2025-03-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666810', 'tblTempVendorCDR_20' ) end [2025-03-12 21:08:19] Production.INFO: ProcessCDR(1,14666810,1,1,2) [2025-03-12 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666810', 'tblTempUsageDetail_20' ) start [2025-03-12 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666810', 'tblTempUsageDetail_20' ) end [2025-03-12 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:08:22] Production.INFO: ==29086== Releasing lock... [2025-03-12 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:08:22] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:09:05 [end_date_ymd] => 2025-03-12 21:09:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:09:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:09:18] Production.INFO: count ==2003 [2025-03-12 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:09:05 - End Time 2025-03-12 21:09:05 [2025-03-12 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666815', 'tblTempUsageDetail_20' ) start [2025-03-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666815', 'tblTempUsageDetail_20' ) end [2025-03-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666815', 'tblTempVendorCDR_20' ) start [2025-03-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666815', 'tblTempVendorCDR_20' ) end [2025-03-12 21:09:18] Production.INFO: ProcessCDR(1,14666815,1,1,2) [2025-03-12 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666815', 'tblTempUsageDetail_20' ) start [2025-03-12 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666815', 'tblTempUsageDetail_20' ) end [2025-03-12 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:09:22] Production.INFO: ==29164== Releasing lock... [2025-03-12 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:10:06 [end_date_ymd] => 2025-03-12 21:10:06 [RateCDR] => 1 ) [2025-03-12 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:10:06' and `end` < '2025-03-12 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:10:18] Production.INFO: count ==1996 [2025-03-12 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:10:06 - End Time 2025-03-12 21:10:06 [2025-03-12 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666821', 'tblTempUsageDetail_20' ) start [2025-03-12 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666821', 'tblTempUsageDetail_20' ) end [2025-03-12 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666821', 'tblTempVendorCDR_20' ) start [2025-03-12 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666821', 'tblTempVendorCDR_20' ) end [2025-03-12 21:10:19] Production.INFO: ProcessCDR(1,14666821,1,1,2) [2025-03-12 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666821', 'tblTempUsageDetail_20' ) start [2025-03-12 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666821', 'tblTempUsageDetail_20' ) end [2025-03-12 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:10:22] Production.INFO: ==29238== Releasing lock... [2025-03-12 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:10:22] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:11:05 [end_date_ymd] => 2025-03-12 21:11:05 [RateCDR] => 1 ) [2025-03-12 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:11:05' and `end` < '2025-03-12 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:11:17] Production.INFO: count ==1965 [2025-03-12 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:11:05 - End Time 2025-03-12 21:11:05 [2025-03-12 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666826', 'tblTempUsageDetail_20' ) start [2025-03-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666826', 'tblTempUsageDetail_20' ) end [2025-03-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666826', 'tblTempVendorCDR_20' ) start [2025-03-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666826', 'tblTempVendorCDR_20' ) end [2025-03-12 21:11:18] Production.INFO: ProcessCDR(1,14666826,1,1,2) [2025-03-12 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666826', 'tblTempUsageDetail_20' ) start [2025-03-12 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666826', 'tblTempUsageDetail_20' ) end [2025-03-12 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:11:21] Production.INFO: ==29319== Releasing lock... [2025-03-12 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:11:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:12:05 [end_date_ymd] => 2025-03-12 21:12:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:12:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:12:18] Production.INFO: count ==1969 [2025-03-12 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:12:05 - End Time 2025-03-12 21:12:05 [2025-03-12 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666831', 'tblTempUsageDetail_20' ) start [2025-03-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666831', 'tblTempUsageDetail_20' ) end [2025-03-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666831', 'tblTempVendorCDR_20' ) start [2025-03-12 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666831', 'tblTempVendorCDR_20' ) end [2025-03-12 21:12:19] Production.INFO: ProcessCDR(1,14666831,1,1,2) [2025-03-12 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666831', 'tblTempUsageDetail_20' ) start [2025-03-12 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666831', 'tblTempUsageDetail_20' ) end [2025-03-12 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:12:22] Production.INFO: ==29396== Releasing lock... [2025-03-12 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:12:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:13:05 [end_date_ymd] => 2025-03-12 21:13:05 [RateCDR] => 1 ) [2025-03-12 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:13:05' and `end` < '2025-03-12 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:13:17] Production.INFO: count ==1972 [2025-03-12 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:13:05 - End Time 2025-03-12 21:13:05 [2025-03-12 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666836', 'tblTempUsageDetail_20' ) start [2025-03-12 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666836', 'tblTempUsageDetail_20' ) end [2025-03-12 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666836', 'tblTempVendorCDR_20' ) start [2025-03-12 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666836', 'tblTempVendorCDR_20' ) end [2025-03-12 21:13:17] Production.INFO: ProcessCDR(1,14666836,1,1,2) [2025-03-12 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666836', 'tblTempUsageDetail_20' ) start [2025-03-12 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666836', 'tblTempUsageDetail_20' ) end [2025-03-12 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:13:21] Production.INFO: ==29466== Releasing lock... [2025-03-12 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:13:21] Production.INFO: 43 MB #Memory Used# [2025-03-12 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:14:05 [end_date_ymd] => 2025-03-12 21:14:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:14:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:14:18] Production.INFO: count ==1983 [2025-03-12 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:14:05 - End Time 2025-03-12 21:14:05 [2025-03-12 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666841', 'tblTempUsageDetail_20' ) start [2025-03-12 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666841', 'tblTempUsageDetail_20' ) end [2025-03-12 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666841', 'tblTempVendorCDR_20' ) start [2025-03-12 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666841', 'tblTempVendorCDR_20' ) end [2025-03-12 21:14:18] Production.INFO: ProcessCDR(1,14666841,1,1,2) [2025-03-12 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666841', 'tblTempUsageDetail_20' ) start [2025-03-12 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666841', 'tblTempUsageDetail_20' ) end [2025-03-12 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:14:21] Production.INFO: ==29542== Releasing lock... [2025-03-12 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:14:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-12 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:15:04 [end_date_ymd] => 2025-03-12 21:15:04 [RateCDR] => 1 ) [2025-03-12 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:15:04' and `end` < '2025-03-12 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:15:17] Production.INFO: count ==1960 [2025-03-12 21:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:15:04 - End Time 2025-03-12 21:15:04 [2025-03-12 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666846', 'tblTempUsageDetail_20' ) start [2025-03-12 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666846', 'tblTempUsageDetail_20' ) end [2025-03-12 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666846', 'tblTempVendorCDR_20' ) start [2025-03-12 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666846', 'tblTempVendorCDR_20' ) end [2025-03-12 21:15:18] Production.INFO: ProcessCDR(1,14666846,1,1,2) [2025-03-12 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666846', 'tblTempUsageDetail_20' ) start [2025-03-12 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666846', 'tblTempUsageDetail_20' ) end [2025-03-12 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:15:21] Production.INFO: ==29613== Releasing lock... [2025-03-12 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:15:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:16:05 [end_date_ymd] => 2025-03-12 21:16:05 [RateCDR] => 1 ) [2025-03-12 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:16:05' and `end` < '2025-03-12 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:16:18] Production.INFO: count ==1954 [2025-03-12 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:16:05 - End Time 2025-03-12 21:16:05 [2025-03-12 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666851', 'tblTempUsageDetail_20' ) start [2025-03-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666851', 'tblTempUsageDetail_20' ) end [2025-03-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666851', 'tblTempVendorCDR_20' ) start [2025-03-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666851', 'tblTempVendorCDR_20' ) end [2025-03-12 21:16:18] Production.INFO: ProcessCDR(1,14666851,1,1,2) [2025-03-12 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666851', 'tblTempUsageDetail_20' ) start [2025-03-12 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666851', 'tblTempUsageDetail_20' ) end [2025-03-12 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:16:22] Production.INFO: ==29683== Releasing lock... [2025-03-12 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:16:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:17:05 [end_date_ymd] => 2025-03-12 21:17:05 [RateCDR] => 1 ) [2025-03-12 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:17:05' and `end` < '2025-03-12 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:17:17] Production.INFO: count ==1952 [2025-03-12 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:17:05 - End Time 2025-03-12 21:17:05 [2025-03-12 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666856', 'tblTempUsageDetail_20' ) start [2025-03-12 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666856', 'tblTempUsageDetail_20' ) end [2025-03-12 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666856', 'tblTempVendorCDR_20' ) start [2025-03-12 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666856', 'tblTempVendorCDR_20' ) end [2025-03-12 21:17:18] Production.INFO: ProcessCDR(1,14666856,1,1,2) [2025-03-12 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666856', 'tblTempUsageDetail_20' ) start [2025-03-12 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666856', 'tblTempUsageDetail_20' ) end [2025-03-12 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:17:23] Production.INFO: ==29752== Releasing lock... [2025-03-12 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:18:05 [end_date_ymd] => 2025-03-12 21:18:05 [RateCDR] => 1 ) [2025-03-12 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:18:05' and `end` < '2025-03-12 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:18:18] Production.INFO: count ==1941 [2025-03-12 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:18:05 - End Time 2025-03-12 21:18:05 [2025-03-12 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666861', 'tblTempUsageDetail_20' ) start [2025-03-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666861', 'tblTempUsageDetail_20' ) end [2025-03-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666861', 'tblTempVendorCDR_20' ) start [2025-03-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666861', 'tblTempVendorCDR_20' ) end [2025-03-12 21:18:18] Production.INFO: ProcessCDR(1,14666861,1,1,2) [2025-03-12 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666861', 'tblTempUsageDetail_20' ) start [2025-03-12 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666861', 'tblTempUsageDetail_20' ) end [2025-03-12 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:18:23] Production.INFO: ==29875== Releasing lock... [2025-03-12 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:18:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:19:05 [end_date_ymd] => 2025-03-12 21:19:05 [RateCDR] => 1 ) [2025-03-12 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:19:05' and `end` < '2025-03-12 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:19:17] Production.INFO: count ==1943 [2025-03-12 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:19:05 - End Time 2025-03-12 21:19:05 [2025-03-12 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666866', 'tblTempUsageDetail_20' ) start [2025-03-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666866', 'tblTempUsageDetail_20' ) end [2025-03-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666866', 'tblTempVendorCDR_20' ) start [2025-03-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666866', 'tblTempVendorCDR_20' ) end [2025-03-12 21:19:18] Production.INFO: ProcessCDR(1,14666866,1,1,2) [2025-03-12 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666866', 'tblTempUsageDetail_20' ) start [2025-03-12 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666866', 'tblTempUsageDetail_20' ) end [2025-03-12 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:19:23] Production.INFO: ==29955== Releasing lock... [2025-03-12 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:19:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-12 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:20:06 [end_date_ymd] => 2025-03-12 21:20:06 [RateCDR] => 1 ) [2025-03-12 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:20:06' and `end` < '2025-03-12 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:20:18] Production.INFO: count ==1947 [2025-03-12 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:20:06 - End Time 2025-03-12 21:20:06 [2025-03-12 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666872', 'tblTempUsageDetail_20' ) start [2025-03-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666872', 'tblTempUsageDetail_20' ) end [2025-03-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666872', 'tblTempVendorCDR_20' ) start [2025-03-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666872', 'tblTempVendorCDR_20' ) end [2025-03-12 21:20:19] Production.INFO: ProcessCDR(1,14666872,1,1,2) [2025-03-12 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666872', 'tblTempUsageDetail_20' ) start [2025-03-12 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666872', 'tblTempUsageDetail_20' ) end [2025-03-12 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:20:24] Production.INFO: ==30031== Releasing lock... [2025-03-12 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:20:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-12 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:21:05 [end_date_ymd] => 2025-03-12 21:21:05 [RateCDR] => 1 ) [2025-03-12 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:21:05' and `end` < '2025-03-12 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:21:17] Production.INFO: count ==1878 [2025-03-12 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:21:05 - End Time 2025-03-12 21:21:05 [2025-03-12 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666877', 'tblTempUsageDetail_20' ) start [2025-03-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666877', 'tblTempUsageDetail_20' ) end [2025-03-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666877', 'tblTempVendorCDR_20' ) start [2025-03-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666877', 'tblTempVendorCDR_20' ) end [2025-03-12 21:21:18] Production.INFO: ProcessCDR(1,14666877,1,1,2) [2025-03-12 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666877', 'tblTempUsageDetail_20' ) start [2025-03-12 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666877', 'tblTempUsageDetail_20' ) end [2025-03-12 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:21:21] Production.INFO: ==30110== Releasing lock... [2025-03-12 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:21:21] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:22:06 [end_date_ymd] => 2025-03-12 21:22:06 [RateCDR] => 1 ) [2025-03-12 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:22:06' and `end` < '2025-03-12 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:22:18] Production.INFO: count ==1869 [2025-03-12 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:22:06 - End Time 2025-03-12 21:22:06 [2025-03-12 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666882', 'tblTempUsageDetail_20' ) start [2025-03-12 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666882', 'tblTempUsageDetail_20' ) end [2025-03-12 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666882', 'tblTempVendorCDR_20' ) start [2025-03-12 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666882', 'tblTempVendorCDR_20' ) end [2025-03-12 21:22:19] Production.INFO: ProcessCDR(1,14666882,1,1,2) [2025-03-12 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666882', 'tblTempUsageDetail_20' ) start [2025-03-12 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666882', 'tblTempUsageDetail_20' ) end [2025-03-12 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:22:24] Production.INFO: ==30182== Releasing lock... [2025-03-12 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:22:24] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:23:05 [end_date_ymd] => 2025-03-12 21:23:05 [RateCDR] => 1 ) [2025-03-12 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:23:05' and `end` < '2025-03-12 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:23:18] Production.INFO: count ==1864 [2025-03-12 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:23:05 - End Time 2025-03-12 21:23:05 [2025-03-12 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666887', 'tblTempUsageDetail_20' ) start [2025-03-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666887', 'tblTempUsageDetail_20' ) end [2025-03-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666887', 'tblTempVendorCDR_20' ) start [2025-03-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666887', 'tblTempVendorCDR_20' ) end [2025-03-12 21:23:19] Production.INFO: ProcessCDR(1,14666887,1,1,2) [2025-03-12 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666887', 'tblTempUsageDetail_20' ) start [2025-03-12 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666887', 'tblTempUsageDetail_20' ) end [2025-03-12 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:23:23] Production.INFO: ==30252== Releasing lock... [2025-03-12 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:23:23] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:24:05 [end_date_ymd] => 2025-03-12 21:24:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:24:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:24:17] Production.INFO: count ==1858 [2025-03-12 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:24:05 - End Time 2025-03-12 21:24:05 [2025-03-12 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666892', 'tblTempUsageDetail_20' ) start [2025-03-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666892', 'tblTempUsageDetail_20' ) end [2025-03-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666892', 'tblTempVendorCDR_20' ) start [2025-03-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666892', 'tblTempVendorCDR_20' ) end [2025-03-12 21:24:18] Production.INFO: ProcessCDR(1,14666892,1,1,2) [2025-03-12 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666892', 'tblTempUsageDetail_20' ) start [2025-03-12 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666892', 'tblTempUsageDetail_20' ) end [2025-03-12 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:24:21] Production.INFO: ==30325== Releasing lock... [2025-03-12 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:24:21] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:25:04 [end_date_ymd] => 2025-03-12 21:25:04 [RateCDR] => 1 ) [2025-03-12 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:25:04' and `end` < '2025-03-12 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:25:17] Production.INFO: count ==1837 [2025-03-12 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:25:04 - End Time 2025-03-12 21:25:04 [2025-03-12 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666897', 'tblTempUsageDetail_20' ) start [2025-03-12 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666897', 'tblTempUsageDetail_20' ) end [2025-03-12 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666897', 'tblTempVendorCDR_20' ) start [2025-03-12 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666897', 'tblTempVendorCDR_20' ) end [2025-03-12 21:25:17] Production.INFO: ProcessCDR(1,14666897,1,1,2) [2025-03-12 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666897', 'tblTempUsageDetail_20' ) start [2025-03-12 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666897', 'tblTempUsageDetail_20' ) end [2025-03-12 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:25:21] Production.INFO: ==30404== Releasing lock... [2025-03-12 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:25:21] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:26:06 [end_date_ymd] => 2025-03-12 21:26:06 [RateCDR] => 1 ) [2025-03-12 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:26:06' and `end` < '2025-03-12 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:26:18] Production.INFO: count ==1827 [2025-03-12 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:26:06 - End Time 2025-03-12 21:26:06 [2025-03-12 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666902', 'tblTempUsageDetail_20' ) start [2025-03-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666902', 'tblTempUsageDetail_20' ) end [2025-03-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666902', 'tblTempVendorCDR_20' ) start [2025-03-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666902', 'tblTempVendorCDR_20' ) end [2025-03-12 21:26:19] Production.INFO: ProcessCDR(1,14666902,1,1,2) [2025-03-12 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666902', 'tblTempUsageDetail_20' ) start [2025-03-12 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666902', 'tblTempUsageDetail_20' ) end [2025-03-12 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:26:22] Production.INFO: ==30481== Releasing lock... [2025-03-12 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:26:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:27:05 [end_date_ymd] => 2025-03-12 21:27:05 [RateCDR] => 1 ) [2025-03-12 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:27:05' and `end` < '2025-03-12 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:27:18] Production.INFO: count ==1821 [2025-03-12 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:27:05 - End Time 2025-03-12 21:27:05 [2025-03-12 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666907', 'tblTempUsageDetail_20' ) start [2025-03-12 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666907', 'tblTempUsageDetail_20' ) end [2025-03-12 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666907', 'tblTempVendorCDR_20' ) start [2025-03-12 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666907', 'tblTempVendorCDR_20' ) end [2025-03-12 21:27:18] Production.INFO: ProcessCDR(1,14666907,1,1,2) [2025-03-12 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666907', 'tblTempUsageDetail_20' ) start [2025-03-12 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666907', 'tblTempUsageDetail_20' ) end [2025-03-12 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:27:23] Production.INFO: ==30554== Releasing lock... [2025-03-12 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:27:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:28:05 [end_date_ymd] => 2025-03-12 21:28:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:28:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:28:18] Production.INFO: count ==1819 [2025-03-12 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:28:05 - End Time 2025-03-12 21:28:05 [2025-03-12 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666908', 'tblTempUsageDetail_20' ) start [2025-03-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666908', 'tblTempUsageDetail_20' ) end [2025-03-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666908', 'tblTempVendorCDR_20' ) start [2025-03-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666908', 'tblTempVendorCDR_20' ) end [2025-03-12 21:28:19] Production.INFO: ProcessCDR(1,14666908,1,1,2) [2025-03-12 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666908', 'tblTempUsageDetail_20' ) start [2025-03-12 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666908', 'tblTempUsageDetail_20' ) end [2025-03-12 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:28:24] Production.INFO: ==30627== Releasing lock... [2025-03-12 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:28:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:29:05 [end_date_ymd] => 2025-03-12 21:29:05 [RateCDR] => 1 ) [2025-03-12 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:29:05' and `end` < '2025-03-12 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:29:17] Production.INFO: count ==1818 [2025-03-12 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:29:05 - End Time 2025-03-12 21:29:05 [2025-03-12 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666917', 'tblTempUsageDetail_20' ) start [2025-03-12 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666917', 'tblTempUsageDetail_20' ) end [2025-03-12 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666917', 'tblTempVendorCDR_20' ) start [2025-03-12 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666917', 'tblTempVendorCDR_20' ) end [2025-03-12 21:29:18] Production.INFO: ProcessCDR(1,14666917,1,1,2) [2025-03-12 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666917', 'tblTempUsageDetail_20' ) start [2025-03-12 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666917', 'tblTempUsageDetail_20' ) end [2025-03-12 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:29:23] Production.INFO: ==30699== Releasing lock... [2025-03-12 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:29:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:30:06 [end_date_ymd] => 2025-03-12 21:30:06 [RateCDR] => 1 ) [2025-03-12 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:30:06' and `end` < '2025-03-12 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:30:19] Production.INFO: count ==1823 [2025-03-12 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:30:06 - End Time 2025-03-12 21:30:06 [2025-03-12 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666923', 'tblTempUsageDetail_20' ) start [2025-03-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666923', 'tblTempUsageDetail_20' ) end [2025-03-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666923', 'tblTempVendorCDR_20' ) start [2025-03-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666923', 'tblTempVendorCDR_20' ) end [2025-03-12 21:30:19] Production.INFO: ProcessCDR(1,14666923,1,1,2) [2025-03-12 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666923', 'tblTempUsageDetail_20' ) start [2025-03-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666923', 'tblTempUsageDetail_20' ) end [2025-03-12 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:30:23] Production.INFO: ==30774== Releasing lock... [2025-03-12 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:30:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:31:05 [end_date_ymd] => 2025-03-12 21:31:05 [RateCDR] => 1 ) [2025-03-12 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:31:05' and `end` < '2025-03-12 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:31:17] Production.INFO: count ==1796 [2025-03-12 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:31:05 - End Time 2025-03-12 21:31:05 [2025-03-12 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666928', 'tblTempUsageDetail_20' ) start [2025-03-12 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666928', 'tblTempUsageDetail_20' ) end [2025-03-12 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666928', 'tblTempVendorCDR_20' ) start [2025-03-12 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666928', 'tblTempVendorCDR_20' ) end [2025-03-12 21:31:18] Production.INFO: ProcessCDR(1,14666928,1,1,2) [2025-03-12 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666928', 'tblTempUsageDetail_20' ) start [2025-03-12 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666928', 'tblTempUsageDetail_20' ) end [2025-03-12 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:31:21] Production.INFO: ==30845== Releasing lock... [2025-03-12 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:31:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:32:06 [end_date_ymd] => 2025-03-12 21:32:06 [RateCDR] => 1 ) [2025-03-12 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:32:06' and `end` < '2025-03-12 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:32:18] Production.INFO: count ==1805 [2025-03-12 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:32:06 - End Time 2025-03-12 21:32:06 [2025-03-12 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666933', 'tblTempUsageDetail_20' ) start [2025-03-12 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666933', 'tblTempUsageDetail_20' ) end [2025-03-12 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666933', 'tblTempVendorCDR_20' ) start [2025-03-12 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666933', 'tblTempVendorCDR_20' ) end [2025-03-12 21:32:19] Production.INFO: ProcessCDR(1,14666933,1,1,2) [2025-03-12 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666933', 'tblTempUsageDetail_20' ) start [2025-03-12 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666933', 'tblTempUsageDetail_20' ) end [2025-03-12 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:32:24] Production.INFO: ==30919== Releasing lock... [2025-03-12 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:32:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:33:05 [end_date_ymd] => 2025-03-12 21:33:05 [RateCDR] => 1 ) [2025-03-12 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:33:05' and `end` < '2025-03-12 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:33:17] Production.INFO: count ==1812 [2025-03-12 21:33:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:33:05 - End Time 2025-03-12 21:33:05 [2025-03-12 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666938', 'tblTempUsageDetail_20' ) start [2025-03-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666938', 'tblTempUsageDetail_20' ) end [2025-03-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666938', 'tblTempVendorCDR_20' ) start [2025-03-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666938', 'tblTempVendorCDR_20' ) end [2025-03-12 21:33:18] Production.INFO: ProcessCDR(1,14666938,1,1,2) [2025-03-12 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666938', 'tblTempUsageDetail_20' ) start [2025-03-12 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666938', 'tblTempUsageDetail_20' ) end [2025-03-12 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:33:21] Production.INFO: ==31028== Releasing lock... [2025-03-12 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:33:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:34:05 [end_date_ymd] => 2025-03-12 21:34:05 [RateCDR] => 1 ) [2025-03-12 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:34:05' and `end` < '2025-03-12 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:34:18] Production.INFO: count ==1804 [2025-03-12 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:34:05 - End Time 2025-03-12 21:34:05 [2025-03-12 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666943', 'tblTempUsageDetail_20' ) start [2025-03-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666943', 'tblTempUsageDetail_20' ) end [2025-03-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666943', 'tblTempVendorCDR_20' ) start [2025-03-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666943', 'tblTempVendorCDR_20' ) end [2025-03-12 21:34:18] Production.INFO: ProcessCDR(1,14666943,1,1,2) [2025-03-12 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666943', 'tblTempUsageDetail_20' ) start [2025-03-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666943', 'tblTempUsageDetail_20' ) end [2025-03-12 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:34:22] Production.INFO: ==31102== Releasing lock... [2025-03-12 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:34:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:35:04 [end_date_ymd] => 2025-03-12 21:35:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:35:04' and `end` < '2025-03-12 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:35:17] Production.INFO: count ==1805 [2025-03-12 21:35:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:35:04 - End Time 2025-03-12 21:35:04 [2025-03-12 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666944', 'tblTempUsageDetail_20' ) start [2025-03-12 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666944', 'tblTempUsageDetail_20' ) end [2025-03-12 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666944', 'tblTempVendorCDR_20' ) start [2025-03-12 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666944', 'tblTempVendorCDR_20' ) end [2025-03-12 21:35:17] Production.INFO: ProcessCDR(1,14666944,1,1,2) [2025-03-12 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666944', 'tblTempUsageDetail_20' ) start [2025-03-12 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666944', 'tblTempUsageDetail_20' ) end [2025-03-12 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:35:21] Production.INFO: ==31177== Releasing lock... [2025-03-12 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:35:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:36:06 [end_date_ymd] => 2025-03-12 21:36:06 [RateCDR] => 1 ) [2025-03-12 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:36:06' and `end` < '2025-03-12 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:36:18] Production.INFO: count ==1807 [2025-03-12 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:36:06 - End Time 2025-03-12 21:36:06 [2025-03-12 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666953', 'tblTempUsageDetail_20' ) start [2025-03-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666953', 'tblTempUsageDetail_20' ) end [2025-03-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666953', 'tblTempVendorCDR_20' ) start [2025-03-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666953', 'tblTempVendorCDR_20' ) end [2025-03-12 21:36:19] Production.INFO: ProcessCDR(1,14666953,1,1,2) [2025-03-12 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666953', 'tblTempUsageDetail_20' ) start [2025-03-12 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666953', 'tblTempUsageDetail_20' ) end [2025-03-12 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:36:22] Production.INFO: ==31248== Releasing lock... [2025-03-12 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:36:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:37:05 [end_date_ymd] => 2025-03-12 21:37:05 [RateCDR] => 1 ) [2025-03-12 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:37:05' and `end` < '2025-03-12 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:37:17] Production.INFO: count ==1807 [2025-03-12 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:37:05 - End Time 2025-03-12 21:37:05 [2025-03-12 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666958', 'tblTempUsageDetail_20' ) start [2025-03-12 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666958', 'tblTempUsageDetail_20' ) end [2025-03-12 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666958', 'tblTempVendorCDR_20' ) start [2025-03-12 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666958', 'tblTempVendorCDR_20' ) end [2025-03-12 21:37:17] Production.INFO: ProcessCDR(1,14666958,1,1,2) [2025-03-12 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666958', 'tblTempUsageDetail_20' ) start [2025-03-12 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666958', 'tblTempUsageDetail_20' ) end [2025-03-12 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:37:21] Production.INFO: ==31321== Releasing lock... [2025-03-12 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:37:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:38:05 [end_date_ymd] => 2025-03-12 21:38:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:38:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:38:17] Production.INFO: count ==1795 [2025-03-12 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:38:05 - End Time 2025-03-12 21:38:05 [2025-03-12 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666963', 'tblTempUsageDetail_20' ) start [2025-03-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666963', 'tblTempUsageDetail_20' ) end [2025-03-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666963', 'tblTempVendorCDR_20' ) start [2025-03-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666963', 'tblTempVendorCDR_20' ) end [2025-03-12 21:38:18] Production.INFO: ProcessCDR(1,14666963,1,1,2) [2025-03-12 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666963', 'tblTempUsageDetail_20' ) start [2025-03-12 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666963', 'tblTempUsageDetail_20' ) end [2025-03-12 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:38:21] Production.INFO: ==31397== Releasing lock... [2025-03-12 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:38:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:39:04 [end_date_ymd] => 2025-03-12 21:39:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:39:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:39:17] Production.INFO: count ==1774 [2025-03-12 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:39:04 - End Time 2025-03-12 21:39:04 [2025-03-12 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666968', 'tblTempUsageDetail_20' ) start [2025-03-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666968', 'tblTempUsageDetail_20' ) end [2025-03-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666968', 'tblTempVendorCDR_20' ) start [2025-03-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666968', 'tblTempVendorCDR_20' ) end [2025-03-12 21:39:18] Production.INFO: ProcessCDR(1,14666968,1,1,2) [2025-03-12 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666968', 'tblTempUsageDetail_20' ) start [2025-03-12 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666968', 'tblTempUsageDetail_20' ) end [2025-03-12 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:39:23] Production.INFO: ==31476== Releasing lock... [2025-03-12 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:40:06 [end_date_ymd] => 2025-03-12 21:40:06 [RateCDR] => 1 ) [2025-03-12 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:40:06' and `end` < '2025-03-12 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:40:18] Production.INFO: count ==1777 [2025-03-12 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:40:06 - End Time 2025-03-12 21:40:06 [2025-03-12 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666974', 'tblTempUsageDetail_20' ) start [2025-03-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666974', 'tblTempUsageDetail_20' ) end [2025-03-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666974', 'tblTempVendorCDR_20' ) start [2025-03-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666974', 'tblTempVendorCDR_20' ) end [2025-03-12 21:40:19] Production.INFO: ProcessCDR(1,14666974,1,1,2) [2025-03-12 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666974', 'tblTempUsageDetail_20' ) start [2025-03-12 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666974', 'tblTempUsageDetail_20' ) end [2025-03-12 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:40:22] Production.INFO: ==31558== Releasing lock... [2025-03-12 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:40:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:41:05 [end_date_ymd] => 2025-03-12 21:41:05 [RateCDR] => 1 ) [2025-03-12 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:41:05' and `end` < '2025-03-12 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:41:17] Production.INFO: count ==1729 [2025-03-12 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:41:05 - End Time 2025-03-12 21:41:05 [2025-03-12 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666979', 'tblTempUsageDetail_20' ) start [2025-03-12 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666979', 'tblTempUsageDetail_20' ) end [2025-03-12 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666979', 'tblTempVendorCDR_20' ) start [2025-03-12 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666979', 'tblTempVendorCDR_20' ) end [2025-03-12 21:41:18] Production.INFO: ProcessCDR(1,14666979,1,1,2) [2025-03-12 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666979', 'tblTempUsageDetail_20' ) start [2025-03-12 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666979', 'tblTempUsageDetail_20' ) end [2025-03-12 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:41:21] Production.INFO: ==31635== Releasing lock... [2025-03-12 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:41:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:42:05 [end_date_ymd] => 2025-03-12 21:42:05 [RateCDR] => 1 ) [2025-03-12 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:42:05' and `end` < '2025-03-12 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:42:17] Production.INFO: count ==1743 [2025-03-12 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:42:05 - End Time 2025-03-12 21:42:05 [2025-03-12 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666984', 'tblTempUsageDetail_20' ) start [2025-03-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666984', 'tblTempUsageDetail_20' ) end [2025-03-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666984', 'tblTempVendorCDR_20' ) start [2025-03-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666984', 'tblTempVendorCDR_20' ) end [2025-03-12 21:42:18] Production.INFO: ProcessCDR(1,14666984,1,1,2) [2025-03-12 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666984', 'tblTempUsageDetail_20' ) start [2025-03-12 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666984', 'tblTempUsageDetail_20' ) end [2025-03-12 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:42:22] Production.INFO: ==31726== Releasing lock... [2025-03-12 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:42:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:43:05 [end_date_ymd] => 2025-03-12 21:43:05 [RateCDR] => 1 ) [2025-03-12 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:43:05' and `end` < '2025-03-12 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:43:18] Production.INFO: count ==1732 [2025-03-12 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:43:05 - End Time 2025-03-12 21:43:05 [2025-03-12 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666989', 'tblTempUsageDetail_20' ) start [2025-03-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666989', 'tblTempUsageDetail_20' ) end [2025-03-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666989', 'tblTempVendorCDR_20' ) start [2025-03-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666989', 'tblTempVendorCDR_20' ) end [2025-03-12 21:43:18] Production.INFO: ProcessCDR(1,14666989,1,1,2) [2025-03-12 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666989', 'tblTempUsageDetail_20' ) start [2025-03-12 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666989', 'tblTempUsageDetail_20' ) end [2025-03-12 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:43:22] Production.INFO: ==31822== Releasing lock... [2025-03-12 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:43:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:44:05 [end_date_ymd] => 2025-03-12 21:44:05 [RateCDR] => 1 ) [2025-03-12 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:44:05' and `end` < '2025-03-12 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:44:18] Production.INFO: count ==1757 [2025-03-12 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:44:05 - End Time 2025-03-12 21:44:05 [2025-03-12 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666994', 'tblTempUsageDetail_20' ) start [2025-03-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666994', 'tblTempUsageDetail_20' ) end [2025-03-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666994', 'tblTempVendorCDR_20' ) start [2025-03-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666994', 'tblTempVendorCDR_20' ) end [2025-03-12 21:44:18] Production.INFO: ProcessCDR(1,14666994,1,1,2) [2025-03-12 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666994', 'tblTempUsageDetail_20' ) start [2025-03-12 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666994', 'tblTempUsageDetail_20' ) end [2025-03-12 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:44:23] Production.INFO: ==31912== Releasing lock... [2025-03-12 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:45:05 [end_date_ymd] => 2025-03-12 21:45:05 [RateCDR] => 1 ) [2025-03-12 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:45:05' and `end` < '2025-03-12 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:45:18] Production.INFO: count ==1763 [2025-03-12 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:45:05 - End Time 2025-03-12 21:45:05 [2025-03-12 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666999', 'tblTempUsageDetail_20' ) start [2025-03-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14666999', 'tblTempUsageDetail_20' ) end [2025-03-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666999', 'tblTempVendorCDR_20' ) start [2025-03-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14666999', 'tblTempVendorCDR_20' ) end [2025-03-12 21:45:18] Production.INFO: ProcessCDR(1,14666999,1,1,2) [2025-03-12 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14666999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14666999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14666999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14666999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666999', 'tblTempUsageDetail_20' ) start [2025-03-12 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14666999', 'tblTempUsageDetail_20' ) end [2025-03-12 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:45:23] Production.INFO: ==32013== Releasing lock... [2025-03-12 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:45:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:46:06 [end_date_ymd] => 2025-03-12 21:46:06 [RateCDR] => 1 ) [2025-03-12 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:46:06' and `end` < '2025-03-12 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:46:18] Production.INFO: count ==1754 [2025-03-12 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:46:06 - End Time 2025-03-12 21:46:06 [2025-03-12 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667004', 'tblTempUsageDetail_20' ) start [2025-03-12 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667004', 'tblTempUsageDetail_20' ) end [2025-03-12 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667004', 'tblTempVendorCDR_20' ) start [2025-03-12 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667004', 'tblTempVendorCDR_20' ) end [2025-03-12 21:46:18] Production.INFO: ProcessCDR(1,14667004,1,1,2) [2025-03-12 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667004', 'tblTempUsageDetail_20' ) start [2025-03-12 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667004', 'tblTempUsageDetail_20' ) end [2025-03-12 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:46:22] Production.INFO: ==32114== Releasing lock... [2025-03-12 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:46:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:47:05 [end_date_ymd] => 2025-03-12 21:47:05 [RateCDR] => 1 ) [2025-03-12 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:47:05' and `end` < '2025-03-12 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:47:18] Production.INFO: count ==1745 [2025-03-12 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:47:05 - End Time 2025-03-12 21:47:05 [2025-03-12 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667009', 'tblTempUsageDetail_20' ) start [2025-03-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667009', 'tblTempUsageDetail_20' ) end [2025-03-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667009', 'tblTempVendorCDR_20' ) start [2025-03-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667009', 'tblTempVendorCDR_20' ) end [2025-03-12 21:47:18] Production.INFO: ProcessCDR(1,14667009,1,1,2) [2025-03-12 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667009', 'tblTempUsageDetail_20' ) start [2025-03-12 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667009', 'tblTempUsageDetail_20' ) end [2025-03-12 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:47:22] Production.INFO: ==32213== Releasing lock... [2025-03-12 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:47:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:48:06 [end_date_ymd] => 2025-03-12 21:48:06 [RateCDR] => 1 ) [2025-03-12 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:48:06' and `end` < '2025-03-12 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:48:19] Production.INFO: count ==1788 [2025-03-12 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:48:06 - End Time 2025-03-12 21:48:06 [2025-03-12 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667014', 'tblTempUsageDetail_20' ) start [2025-03-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667014', 'tblTempUsageDetail_20' ) end [2025-03-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667014', 'tblTempVendorCDR_20' ) start [2025-03-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667014', 'tblTempVendorCDR_20' ) end [2025-03-12 21:48:19] Production.INFO: ProcessCDR(1,14667014,1,1,2) [2025-03-12 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667014', 'tblTempUsageDetail_20' ) start [2025-03-12 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667014', 'tblTempUsageDetail_20' ) end [2025-03-12 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:48:23] Production.INFO: ==32308== Releasing lock... [2025-03-12 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:49:06 [end_date_ymd] => 2025-03-12 21:49:06 [RateCDR] => 1 ) [2025-03-12 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:49:06' and `end` < '2025-03-12 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:49:18] Production.INFO: count ==1787 [2025-03-12 21:49:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:49:06 - End Time 2025-03-12 21:49:06 [2025-03-12 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667019', 'tblTempUsageDetail_20' ) start [2025-03-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667019', 'tblTempUsageDetail_20' ) end [2025-03-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667019', 'tblTempVendorCDR_20' ) start [2025-03-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667019', 'tblTempVendorCDR_20' ) end [2025-03-12 21:49:19] Production.INFO: ProcessCDR(1,14667019,1,1,2) [2025-03-12 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667019', 'tblTempUsageDetail_20' ) start [2025-03-12 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667019', 'tblTempUsageDetail_20' ) end [2025-03-12 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:49:22] Production.INFO: ==32440== Releasing lock... [2025-03-12 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:49:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:50:06 [end_date_ymd] => 2025-03-12 21:50:06 [RateCDR] => 1 ) [2025-03-12 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:50:06' and `end` < '2025-03-12 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:50:19] Production.INFO: count ==1787 [2025-03-12 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:50:06 - End Time 2025-03-12 21:50:06 [2025-03-12 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667025', 'tblTempUsageDetail_20' ) start [2025-03-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667025', 'tblTempUsageDetail_20' ) end [2025-03-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667025', 'tblTempVendorCDR_20' ) start [2025-03-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667025', 'tblTempVendorCDR_20' ) end [2025-03-12 21:50:19] Production.INFO: ProcessCDR(1,14667025,1,1,2) [2025-03-12 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667025', 'tblTempUsageDetail_20' ) start [2025-03-12 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667025', 'tblTempUsageDetail_20' ) end [2025-03-12 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:50:24] Production.INFO: ==32542== Releasing lock... [2025-03-12 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:50:24] Production.INFO: 42 MB #Memory Used# [2025-03-12 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:51:06 [end_date_ymd] => 2025-03-12 21:51:06 [RateCDR] => 1 ) [2025-03-12 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:51:06' and `end` < '2025-03-12 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:51:18] Production.INFO: count ==1744 [2025-03-12 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:51:06 - End Time 2025-03-12 21:51:06 [2025-03-12 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667030', 'tblTempUsageDetail_20' ) start [2025-03-12 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667030', 'tblTempUsageDetail_20' ) end [2025-03-12 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667030', 'tblTempVendorCDR_20' ) start [2025-03-12 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667030', 'tblTempVendorCDR_20' ) end [2025-03-12 21:51:19] Production.INFO: ProcessCDR(1,14667030,1,1,2) [2025-03-12 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667030', 'tblTempUsageDetail_20' ) start [2025-03-12 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667030', 'tblTempUsageDetail_20' ) end [2025-03-12 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:51:22] Production.INFO: ==32638== Releasing lock... [2025-03-12 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:51:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:52:06 [end_date_ymd] => 2025-03-12 21:52:06 [RateCDR] => 1 ) [2025-03-12 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:52:06' and `end` < '2025-03-12 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:52:18] Production.INFO: count ==1741 [2025-03-12 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:52:06 - End Time 2025-03-12 21:52:06 [2025-03-12 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667035', 'tblTempUsageDetail_20' ) start [2025-03-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667035', 'tblTempUsageDetail_20' ) end [2025-03-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667035', 'tblTempVendorCDR_20' ) start [2025-03-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667035', 'tblTempVendorCDR_20' ) end [2025-03-12 21:52:19] Production.INFO: ProcessCDR(1,14667035,1,1,2) [2025-03-12 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667035', 'tblTempUsageDetail_20' ) start [2025-03-12 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667035', 'tblTempUsageDetail_20' ) end [2025-03-12 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:52:22] Production.INFO: ==32742== Releasing lock... [2025-03-12 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:52:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-12 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:53:06 [end_date_ymd] => 2025-03-12 21:53:06 [RateCDR] => 1 ) [2025-03-12 21:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:53:06' and `end` < '2025-03-12 21:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:53:18] Production.INFO: count ==1736 [2025-03-12 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:53:06 - End Time 2025-03-12 21:53:06 [2025-03-12 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667040', 'tblTempUsageDetail_20' ) start [2025-03-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667040', 'tblTempUsageDetail_20' ) end [2025-03-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667040', 'tblTempVendorCDR_20' ) start [2025-03-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667040', 'tblTempVendorCDR_20' ) end [2025-03-12 21:53:19] Production.INFO: ProcessCDR(1,14667040,1,1,2) [2025-03-12 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667040', 'tblTempUsageDetail_20' ) start [2025-03-12 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667040', 'tblTempUsageDetail_20' ) end [2025-03-12 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:53:24] Production.INFO: ==395== Releasing lock... [2025-03-12 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:53:24] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:54:05 [end_date_ymd] => 2025-03-12 21:54:05 [RateCDR] => 1 ) [2025-03-12 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:54:05' and `end` < '2025-03-12 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:54:17] Production.INFO: count ==1739 [2025-03-12 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:54:05 - End Time 2025-03-12 21:54:05 [2025-03-12 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667045', 'tblTempUsageDetail_20' ) start [2025-03-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667045', 'tblTempUsageDetail_20' ) end [2025-03-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667045', 'tblTempVendorCDR_20' ) start [2025-03-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667045', 'tblTempVendorCDR_20' ) end [2025-03-12 21:54:18] Production.INFO: ProcessCDR(1,14667045,1,1,2) [2025-03-12 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667045', 'tblTempUsageDetail_20' ) start [2025-03-12 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667045', 'tblTempUsageDetail_20' ) end [2025-03-12 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:54:21] Production.INFO: ==494== Releasing lock... [2025-03-12 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:54:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:55:06 [end_date_ymd] => 2025-03-12 21:55:06 [RateCDR] => 1 ) [2025-03-12 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:55:06' and `end` < '2025-03-12 21:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:55:18] Production.INFO: count ==1728 [2025-03-12 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:55:06 - End Time 2025-03-12 21:55:06 [2025-03-12 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667050', 'tblTempUsageDetail_20' ) start [2025-03-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667050', 'tblTempUsageDetail_20' ) end [2025-03-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667050', 'tblTempVendorCDR_20' ) start [2025-03-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667050', 'tblTempVendorCDR_20' ) end [2025-03-12 21:55:19] Production.INFO: ProcessCDR(1,14667050,1,1,2) [2025-03-12 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667050', 'tblTempUsageDetail_20' ) start [2025-03-12 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667050', 'tblTempUsageDetail_20' ) end [2025-03-12 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:55:22] Production.INFO: ==595== Releasing lock... [2025-03-12 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:55:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:56:05 [end_date_ymd] => 2025-03-12 21:56:05 [RateCDR] => 1 ) [2025-03-12 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:56:05' and `end` < '2025-03-12 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:56:17] Production.INFO: count ==1725 [2025-03-12 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 18:56:05 - End Time 2025-03-12 21:56:05 [2025-03-12 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667055', 'tblTempUsageDetail_20' ) start [2025-03-12 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667055', 'tblTempUsageDetail_20' ) end [2025-03-12 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667055', 'tblTempVendorCDR_20' ) start [2025-03-12 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667055', 'tblTempVendorCDR_20' ) end [2025-03-12 21:56:18] Production.INFO: ProcessCDR(1,14667055,1,1,2) [2025-03-12 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667055', 'tblTempUsageDetail_20' ) start [2025-03-12 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667055', 'tblTempUsageDetail_20' ) end [2025-03-12 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:56:21] Production.INFO: ==717== Releasing lock... [2025-03-12 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:56:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:57:06 [end_date_ymd] => 2025-03-12 21:57:06 [RateCDR] => 1 ) [2025-03-12 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:57:06' and `end` < '2025-03-12 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:57:18] Production.INFO: count ==1725 [2025-03-12 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-12 18:57:06 - End Time 2025-03-12 21:57:06 [2025-03-12 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667060', 'tblTempUsageDetail_20' ) start [2025-03-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667060', 'tblTempUsageDetail_20' ) end [2025-03-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667060', 'tblTempVendorCDR_20' ) start [2025-03-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667060', 'tblTempVendorCDR_20' ) end [2025-03-12 21:57:19] Production.INFO: ProcessCDR(1,14667060,1,1,2) [2025-03-12 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667060', 'tblTempUsageDetail_20' ) start [2025-03-12 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667060', 'tblTempUsageDetail_20' ) end [2025-03-12 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:57:22] Production.INFO: ==820== Releasing lock... [2025-03-12 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:57:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:58:04 [end_date_ymd] => 2025-03-12 21:58:04 [RateCDR] => 1 ) [2025-03-12 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 18:58:04' and `end` < '2025-03-12 21:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 21:58:17] Production.INFO: count ==1728 [2025-03-12 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:58:04 - End Time 2025-03-12 21:58:04 [2025-03-12 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667065', 'tblTempUsageDetail_20' ) start [2025-03-12 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667065', 'tblTempUsageDetail_20' ) end [2025-03-12 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667065', 'tblTempVendorCDR_20' ) start [2025-03-12 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667065', 'tblTempVendorCDR_20' ) end [2025-03-12 21:58:18] Production.INFO: ProcessCDR(1,14667065,1,1,2) [2025-03-12 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667065', 'tblTempUsageDetail_20' ) start [2025-03-12 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667065', 'tblTempUsageDetail_20' ) end [2025-03-12 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:58:21] Production.INFO: ==912== Releasing lock... [2025-03-12 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:58:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 18:59:04 [end_date_ymd] => 2025-03-12 21:59:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 18:59:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 21:59:17] Production.INFO: count ==1726 [2025-03-12 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 18:59:04 - End Time 2025-03-12 21:59:04 [2025-03-12 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667069', 'tblTempUsageDetail_20' ) start [2025-03-12 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667069', 'tblTempUsageDetail_20' ) end [2025-03-12 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667069', 'tblTempVendorCDR_20' ) start [2025-03-12 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667069', 'tblTempVendorCDR_20' ) end [2025-03-12 21:59:17] Production.INFO: ProcessCDR(1,14667069,1,1,2) [2025-03-12 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667069', 'tblTempUsageDetail_20' ) start [2025-03-12 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667069', 'tblTempUsageDetail_20' ) end [2025-03-12 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 21:59:21] Production.INFO: ==1011== Releasing lock... [2025-03-12 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 21:59:21] Production.INFO: 41 MB #Memory Used# [2025-03-12 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:00:06 [end_date_ymd] => 2025-03-12 22:00:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:00:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:00:18] Production.INFO: count ==1813 [2025-03-12 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:00:06 - End Time 2025-03-12 22:00:06 [2025-03-12 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667076', 'tblTempUsageDetail_20' ) start [2025-03-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667076', 'tblTempUsageDetail_20' ) end [2025-03-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667076', 'tblTempVendorCDR_20' ) start [2025-03-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667076', 'tblTempVendorCDR_20' ) end [2025-03-12 22:00:19] Production.INFO: ProcessCDR(1,14667076,1,1,2) [2025-03-12 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667076', 'tblTempUsageDetail_20' ) start [2025-03-12 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667076', 'tblTempUsageDetail_20' ) end [2025-03-12 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:00:22] Production.INFO: ==1111== Releasing lock... [2025-03-12 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:00:22] Production.INFO: 42 MB #Memory Used# [2025-03-12 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:01:05 [end_date_ymd] => 2025-03-12 22:01:05 [RateCDR] => 1 ) [2025-03-12 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:01:05' and `end` < '2025-03-12 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:01:18] Production.INFO: count ==1796 [2025-03-12 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:01:05 - End Time 2025-03-12 22:01:05 [2025-03-12 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667081', 'tblTempUsageDetail_20' ) start [2025-03-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667081', 'tblTempUsageDetail_20' ) end [2025-03-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667081', 'tblTempVendorCDR_20' ) start [2025-03-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667081', 'tblTempVendorCDR_20' ) end [2025-03-12 22:01:18] Production.INFO: ProcessCDR(1,14667081,1,1,2) [2025-03-12 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667081', 'tblTempUsageDetail_20' ) start [2025-03-12 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667081', 'tblTempUsageDetail_20' ) end [2025-03-12 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:01:22] Production.INFO: ==1225== Releasing lock... [2025-03-12 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:01:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:02:06 [end_date_ymd] => 2025-03-12 22:02:06 [RateCDR] => 1 ) [2025-03-12 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:02:06' and `end` < '2025-03-12 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:02:18] Production.INFO: count ==1796 [2025-03-12 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:02:06 - End Time 2025-03-12 22:02:06 [2025-03-12 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667086', 'tblTempUsageDetail_20' ) start [2025-03-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667086', 'tblTempUsageDetail_20' ) end [2025-03-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667086', 'tblTempVendorCDR_20' ) start [2025-03-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667086', 'tblTempVendorCDR_20' ) end [2025-03-12 22:02:19] Production.INFO: ProcessCDR(1,14667086,1,1,2) [2025-03-12 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667086', 'tblTempUsageDetail_20' ) start [2025-03-12 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667086', 'tblTempUsageDetail_20' ) end [2025-03-12 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:02:22] Production.INFO: ==1335== Releasing lock... [2025-03-12 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-12 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:03:05 [end_date_ymd] => 2025-03-12 22:03:05 [RateCDR] => 1 ) [2025-03-12 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:03:05' and `end` < '2025-03-12 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:03:17] Production.INFO: count ==1774 [2025-03-12 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:03:05 - End Time 2025-03-12 22:03:05 [2025-03-12 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667091', 'tblTempUsageDetail_20' ) start [2025-03-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667091', 'tblTempUsageDetail_20' ) end [2025-03-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667091', 'tblTempVendorCDR_20' ) start [2025-03-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667091', 'tblTempVendorCDR_20' ) end [2025-03-12 22:03:18] Production.INFO: ProcessCDR(1,14667091,1,1,2) [2025-03-12 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667091', 'tblTempUsageDetail_20' ) start [2025-03-12 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667091', 'tblTempUsageDetail_20' ) end [2025-03-12 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:03:21] Production.INFO: ==1427== Releasing lock... [2025-03-12 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:03:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:04:05 [end_date_ymd] => 2025-03-12 22:04:05 [RateCDR] => 1 ) [2025-03-12 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:04:05' and `end` < '2025-03-12 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:04:17] Production.INFO: count ==1767 [2025-03-12 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:04:05 - End Time 2025-03-12 22:04:05 [2025-03-12 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667096', 'tblTempUsageDetail_20' ) start [2025-03-12 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667096', 'tblTempUsageDetail_20' ) end [2025-03-12 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667096', 'tblTempVendorCDR_20' ) start [2025-03-12 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667096', 'tblTempVendorCDR_20' ) end [2025-03-12 22:04:18] Production.INFO: ProcessCDR(1,14667096,1,1,2) [2025-03-12 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667096', 'tblTempUsageDetail_20' ) start [2025-03-12 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667096', 'tblTempUsageDetail_20' ) end [2025-03-12 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:04:22] Production.INFO: ==1596== Releasing lock... [2025-03-12 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:05:05 [end_date_ymd] => 2025-03-12 22:05:05 [RateCDR] => 1 ) [2025-03-12 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:05:05' and `end` < '2025-03-12 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:05:17] Production.INFO: count ==1764 [2025-03-12 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:05:05 - End Time 2025-03-12 22:05:05 [2025-03-12 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667101', 'tblTempUsageDetail_20' ) start [2025-03-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667101', 'tblTempUsageDetail_20' ) end [2025-03-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667101', 'tblTempVendorCDR_20' ) start [2025-03-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667101', 'tblTempVendorCDR_20' ) end [2025-03-12 22:05:18] Production.INFO: ProcessCDR(1,14667101,1,1,2) [2025-03-12 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667101', 'tblTempUsageDetail_20' ) start [2025-03-12 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667101', 'tblTempUsageDetail_20' ) end [2025-03-12 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:05:21] Production.INFO: ==1696== Releasing lock... [2025-03-12 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:05:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-12 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:06:05 [end_date_ymd] => 2025-03-12 22:06:05 [RateCDR] => 1 ) [2025-03-12 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:06:05' and `end` < '2025-03-12 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:06:18] Production.INFO: count ==1756 [2025-03-12 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:06:05 - End Time 2025-03-12 22:06:05 [2025-03-12 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667106', 'tblTempUsageDetail_20' ) start [2025-03-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667106', 'tblTempUsageDetail_20' ) end [2025-03-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667106', 'tblTempVendorCDR_20' ) start [2025-03-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667106', 'tblTempVendorCDR_20' ) end [2025-03-12 22:06:18] Production.INFO: ProcessCDR(1,14667106,1,1,2) [2025-03-12 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667106', 'tblTempUsageDetail_20' ) start [2025-03-12 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667106', 'tblTempUsageDetail_20' ) end [2025-03-12 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:06:22] Production.INFO: ==1798== Releasing lock... [2025-03-12 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:07:05 [end_date_ymd] => 2025-03-12 22:07:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:07:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:07:17] Production.INFO: count ==1749 [2025-03-12 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:07:05 - End Time 2025-03-12 22:07:05 [2025-03-12 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667111', 'tblTempUsageDetail_20' ) start [2025-03-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667111', 'tblTempUsageDetail_20' ) end [2025-03-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667111', 'tblTempVendorCDR_20' ) start [2025-03-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667111', 'tblTempVendorCDR_20' ) end [2025-03-12 22:07:18] Production.INFO: ProcessCDR(1,14667111,1,1,2) [2025-03-12 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667111', 'tblTempUsageDetail_20' ) start [2025-03-12 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667111', 'tblTempUsageDetail_20' ) end [2025-03-12 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:07:23] Production.INFO: ==1897== Releasing lock... [2025-03-12 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:08:05 [end_date_ymd] => 2025-03-12 22:08:05 [RateCDR] => 1 ) [2025-03-12 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:08:05' and `end` < '2025-03-12 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:08:18] Production.INFO: count ==1748 [2025-03-12 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:08:05 - End Time 2025-03-12 22:08:05 [2025-03-12 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667116', 'tblTempUsageDetail_20' ) start [2025-03-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667116', 'tblTempUsageDetail_20' ) end [2025-03-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667116', 'tblTempVendorCDR_20' ) start [2025-03-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667116', 'tblTempVendorCDR_20' ) end [2025-03-12 22:08:18] Production.INFO: ProcessCDR(1,14667116,1,1,2) [2025-03-12 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667116', 'tblTempUsageDetail_20' ) start [2025-03-12 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667116', 'tblTempUsageDetail_20' ) end [2025-03-12 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:08:23] Production.INFO: ==1987== Releasing lock... [2025-03-12 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:08:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:09:04 [end_date_ymd] => 2025-03-12 22:09:04 [RateCDR] => 1 ) [2025-03-12 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:09:04' and `end` < '2025-03-12 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:09:17] Production.INFO: count ==1748 [2025-03-12 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:09:04 - End Time 2025-03-12 22:09:04 [2025-03-12 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667121', 'tblTempUsageDetail_20' ) start [2025-03-12 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667121', 'tblTempUsageDetail_20' ) end [2025-03-12 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667121', 'tblTempVendorCDR_20' ) start [2025-03-12 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667121', 'tblTempVendorCDR_20' ) end [2025-03-12 22:09:17] Production.INFO: ProcessCDR(1,14667121,1,1,2) [2025-03-12 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667121', 'tblTempUsageDetail_20' ) start [2025-03-12 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667121', 'tblTempUsageDetail_20' ) end [2025-03-12 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:09:22] Production.INFO: ==2083== Releasing lock... [2025-03-12 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-12 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:10:06 [end_date_ymd] => 2025-03-12 22:10:06 [RateCDR] => 1 ) [2025-03-12 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:10:06' and `end` < '2025-03-12 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:10:18] Production.INFO: count ==1745 [2025-03-12 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:10:06 - End Time 2025-03-12 22:10:06 [2025-03-12 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667127', 'tblTempUsageDetail_20' ) start [2025-03-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667127', 'tblTempUsageDetail_20' ) end [2025-03-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667127', 'tblTempVendorCDR_20' ) start [2025-03-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667127', 'tblTempVendorCDR_20' ) end [2025-03-12 22:10:19] Production.INFO: ProcessCDR(1,14667127,1,1,2) [2025-03-12 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667127', 'tblTempUsageDetail_20' ) start [2025-03-12 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667127', 'tblTempUsageDetail_20' ) end [2025-03-12 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:10:22] Production.INFO: ==2177== Releasing lock... [2025-03-12 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:10:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:11:05 [end_date_ymd] => 2025-03-12 22:11:05 [RateCDR] => 1 ) [2025-03-12 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:11:05' and `end` < '2025-03-12 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:11:17] Production.INFO: count ==1700 [2025-03-12 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:11:05 - End Time 2025-03-12 22:11:05 [2025-03-12 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667132', 'tblTempUsageDetail_20' ) start [2025-03-12 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667132', 'tblTempUsageDetail_20' ) end [2025-03-12 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667132', 'tblTempVendorCDR_20' ) start [2025-03-12 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667132', 'tblTempVendorCDR_20' ) end [2025-03-12 22:11:17] Production.INFO: ProcessCDR(1,14667132,1,1,2) [2025-03-12 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667132', 'tblTempUsageDetail_20' ) start [2025-03-12 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667132', 'tblTempUsageDetail_20' ) end [2025-03-12 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:11:21] Production.INFO: ==2255== Releasing lock... [2025-03-12 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:11:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-12 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:12:05 [end_date_ymd] => 2025-03-12 22:12:05 [RateCDR] => 1 ) [2025-03-12 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:12:05' and `end` < '2025-03-12 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:12:18] Production.INFO: count ==1701 [2025-03-12 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:12:05 - End Time 2025-03-12 22:12:05 [2025-03-12 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667137', 'tblTempUsageDetail_20' ) start [2025-03-12 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667137', 'tblTempUsageDetail_20' ) end [2025-03-12 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667137', 'tblTempVendorCDR_20' ) start [2025-03-12 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667137', 'tblTempVendorCDR_20' ) end [2025-03-12 22:12:18] Production.INFO: ProcessCDR(1,14667137,1,1,2) [2025-03-12 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667137', 'tblTempUsageDetail_20' ) start [2025-03-12 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667137', 'tblTempUsageDetail_20' ) end [2025-03-12 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:12:22] Production.INFO: ==2338== Releasing lock... [2025-03-12 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-12 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:13:05 [end_date_ymd] => 2025-03-12 22:13:05 [RateCDR] => 1 ) [2025-03-12 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:13:05' and `end` < '2025-03-12 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:13:17] Production.INFO: count ==1700 [2025-03-12 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:13:05 - End Time 2025-03-12 22:13:05 [2025-03-12 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667142', 'tblTempUsageDetail_20' ) start [2025-03-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667142', 'tblTempUsageDetail_20' ) end [2025-03-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667142', 'tblTempVendorCDR_20' ) start [2025-03-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667142', 'tblTempVendorCDR_20' ) end [2025-03-12 22:13:18] Production.INFO: ProcessCDR(1,14667142,1,1,2) [2025-03-12 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667142', 'tblTempUsageDetail_20' ) start [2025-03-12 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667142', 'tblTempUsageDetail_20' ) end [2025-03-12 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:13:21] Production.INFO: ==2433== Releasing lock... [2025-03-12 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:13:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-12 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:14:06 [end_date_ymd] => 2025-03-12 22:14:06 [RateCDR] => 1 ) [2025-03-12 22:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:14:06' and `end` < '2025-03-12 22:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:14:18] Production.INFO: count ==1694 [2025-03-12 22:14:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:14:06 - End Time 2025-03-12 22:14:06 [2025-03-12 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667147', 'tblTempUsageDetail_20' ) start [2025-03-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667147', 'tblTempUsageDetail_20' ) end [2025-03-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667147', 'tblTempVendorCDR_20' ) start [2025-03-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667147', 'tblTempVendorCDR_20' ) end [2025-03-12 22:14:19] Production.INFO: ProcessCDR(1,14667147,1,1,2) [2025-03-12 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667147', 'tblTempUsageDetail_20' ) start [2025-03-12 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667147', 'tblTempUsageDetail_20' ) end [2025-03-12 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:14:22] Production.INFO: ==2525== Releasing lock... [2025-03-12 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:14:22] Production.INFO: 41 MB #Memory Used# [2025-03-12 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:15:04 [end_date_ymd] => 2025-03-12 22:15:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:15:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:15:17] Production.INFO: count ==1683 [2025-03-12 22:15:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:15:04 - End Time 2025-03-12 22:15:04 [2025-03-12 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667152', 'tblTempUsageDetail_20' ) start [2025-03-12 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667152', 'tblTempUsageDetail_20' ) end [2025-03-12 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667152', 'tblTempVendorCDR_20' ) start [2025-03-12 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667152', 'tblTempVendorCDR_20' ) end [2025-03-12 22:15:17] Production.INFO: ProcessCDR(1,14667152,1,1,2) [2025-03-12 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667152', 'tblTempUsageDetail_20' ) start [2025-03-12 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667152', 'tblTempUsageDetail_20' ) end [2025-03-12 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:15:21] Production.INFO: ==2623== Releasing lock... [2025-03-12 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-12 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:16:06 [end_date_ymd] => 2025-03-12 22:16:06 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:16:06' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:16:18] Production.INFO: count ==1666 [2025-03-12 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:16:06 - End Time 2025-03-12 22:16:06 [2025-03-12 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667157', 'tblTempUsageDetail_20' ) start [2025-03-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667157', 'tblTempUsageDetail_20' ) end [2025-03-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667157', 'tblTempVendorCDR_20' ) start [2025-03-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667157', 'tblTempVendorCDR_20' ) end [2025-03-12 22:16:18] Production.INFO: ProcessCDR(1,14667157,1,1,2) [2025-03-12 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667157', 'tblTempUsageDetail_20' ) start [2025-03-12 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667157', 'tblTempUsageDetail_20' ) end [2025-03-12 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:16:23] Production.INFO: ==2718== Releasing lock... [2025-03-12 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:16:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-12 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:17:05 [end_date_ymd] => 2025-03-12 22:17:05 [RateCDR] => 1 ) [2025-03-12 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:17:05' and `end` < '2025-03-12 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:17:17] Production.INFO: count ==1650 [2025-03-12 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:17:05 - End Time 2025-03-12 22:17:05 [2025-03-12 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667162', 'tblTempUsageDetail_20' ) start [2025-03-12 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667162', 'tblTempUsageDetail_20' ) end [2025-03-12 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667162', 'tblTempVendorCDR_20' ) start [2025-03-12 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667162', 'tblTempVendorCDR_20' ) end [2025-03-12 22:17:18] Production.INFO: ProcessCDR(1,14667162,1,1,2) [2025-03-12 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667162', 'tblTempUsageDetail_20' ) start [2025-03-12 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667162', 'tblTempUsageDetail_20' ) end [2025-03-12 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:17:22] Production.INFO: ==2815== Releasing lock... [2025-03-12 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-12 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:18:05 [end_date_ymd] => 2025-03-12 22:18:05 [RateCDR] => 1 ) [2025-03-12 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:18:05' and `end` < '2025-03-12 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:18:17] Production.INFO: count ==1648 [2025-03-12 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:18:05 - End Time 2025-03-12 22:18:05 [2025-03-12 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667167', 'tblTempUsageDetail_20' ) start [2025-03-12 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667167', 'tblTempUsageDetail_20' ) end [2025-03-12 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667167', 'tblTempVendorCDR_20' ) start [2025-03-12 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667167', 'tblTempVendorCDR_20' ) end [2025-03-12 22:18:18] Production.INFO: ProcessCDR(1,14667167,1,1,2) [2025-03-12 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667167', 'tblTempUsageDetail_20' ) start [2025-03-12 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667167', 'tblTempUsageDetail_20' ) end [2025-03-12 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:18:21] Production.INFO: ==2909== Releasing lock... [2025-03-12 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:18:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-12 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:19:04 [end_date_ymd] => 2025-03-12 22:19:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:19:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:19:16] Production.INFO: count ==1631 [2025-03-12 22:19:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:19:04 - End Time 2025-03-12 22:19:04 [2025-03-12 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667172', 'tblTempUsageDetail_20' ) start [2025-03-12 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667172', 'tblTempUsageDetail_20' ) end [2025-03-12 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667172', 'tblTempVendorCDR_20' ) start [2025-03-12 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667172', 'tblTempVendorCDR_20' ) end [2025-03-12 22:19:17] Production.INFO: ProcessCDR(1,14667172,1,1,2) [2025-03-12 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667172', 'tblTempUsageDetail_20' ) start [2025-03-12 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667172', 'tblTempUsageDetail_20' ) end [2025-03-12 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:19:21] Production.INFO: ==3054== Releasing lock... [2025-03-12 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:19:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-12 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:20:06 [end_date_ymd] => 2025-03-12 22:20:06 [RateCDR] => 1 ) [2025-03-12 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:20:06' and `end` < '2025-03-12 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:20:18] Production.INFO: count ==1609 [2025-03-12 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:20:06 - End Time 2025-03-12 22:20:06 [2025-03-12 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667178', 'tblTempUsageDetail_20' ) start [2025-03-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667178', 'tblTempUsageDetail_20' ) end [2025-03-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667178', 'tblTempVendorCDR_20' ) start [2025-03-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667178', 'tblTempVendorCDR_20' ) end [2025-03-12 22:20:19] Production.INFO: ProcessCDR(1,14667178,1,1,2) [2025-03-12 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667178', 'tblTempUsageDetail_20' ) start [2025-03-12 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667178', 'tblTempUsageDetail_20' ) end [2025-03-12 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:20:22] Production.INFO: ==3155== Releasing lock... [2025-03-12 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:20:22] Production.INFO: 40 MB #Memory Used# [2025-03-12 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:21:05 [end_date_ymd] => 2025-03-12 22:21:05 [RateCDR] => 1 ) [2025-03-12 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:21:05' and `end` < '2025-03-12 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:21:17] Production.INFO: count ==1507 [2025-03-12 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:21:05 - End Time 2025-03-12 22:21:05 [2025-03-12 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667183', 'tblTempUsageDetail_20' ) start [2025-03-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667183', 'tblTempUsageDetail_20' ) end [2025-03-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667183', 'tblTempVendorCDR_20' ) start [2025-03-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667183', 'tblTempVendorCDR_20' ) end [2025-03-12 22:21:18] Production.INFO: ProcessCDR(1,14667183,1,1,2) [2025-03-12 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667183', 'tblTempUsageDetail_20' ) start [2025-03-12 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667183', 'tblTempUsageDetail_20' ) end [2025-03-12 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:21:21] Production.INFO: ==3234== Releasing lock... [2025-03-12 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:21:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-12 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:22:05 [end_date_ymd] => 2025-03-12 22:22:05 [RateCDR] => 1 ) [2025-03-12 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:22:05' and `end` < '2025-03-12 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:22:17] Production.INFO: count ==1491 [2025-03-12 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:22:05 - End Time 2025-03-12 22:22:05 [2025-03-12 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667188', 'tblTempUsageDetail_20' ) start [2025-03-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667188', 'tblTempUsageDetail_20' ) end [2025-03-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667188', 'tblTempVendorCDR_20' ) start [2025-03-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667188', 'tblTempVendorCDR_20' ) end [2025-03-12 22:22:18] Production.INFO: ProcessCDR(1,14667188,1,1,2) [2025-03-12 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667188', 'tblTempUsageDetail_20' ) start [2025-03-12 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667188', 'tblTempUsageDetail_20' ) end [2025-03-12 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:22:21] Production.INFO: ==3308== Releasing lock... [2025-03-12 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:22:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-12 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:23:06 [end_date_ymd] => 2025-03-12 22:23:06 [RateCDR] => 1 ) [2025-03-12 22:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:23:06' and `end` < '2025-03-12 22:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:23:18] Production.INFO: count ==1476 [2025-03-12 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:23:06 - End Time 2025-03-12 22:23:06 [2025-03-12 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667193', 'tblTempUsageDetail_20' ) start [2025-03-12 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667193', 'tblTempUsageDetail_20' ) end [2025-03-12 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667193', 'tblTempVendorCDR_20' ) start [2025-03-12 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667193', 'tblTempVendorCDR_20' ) end [2025-03-12 22:23:18] Production.INFO: ProcessCDR(1,14667193,1,1,2) [2025-03-12 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667193', 'tblTempUsageDetail_20' ) start [2025-03-12 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667193', 'tblTempUsageDetail_20' ) end [2025-03-12 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:23:21] Production.INFO: ==3381== Releasing lock... [2025-03-12 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:23:21] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:24:05 [end_date_ymd] => 2025-03-12 22:24:05 [RateCDR] => 1 ) [2025-03-12 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:24:05' and `end` < '2025-03-12 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:24:18] Production.INFO: count ==1454 [2025-03-12 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:24:05 - End Time 2025-03-12 22:24:05 [2025-03-12 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667198', 'tblTempUsageDetail_20' ) start [2025-03-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667198', 'tblTempUsageDetail_20' ) end [2025-03-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667198', 'tblTempVendorCDR_20' ) start [2025-03-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667198', 'tblTempVendorCDR_20' ) end [2025-03-12 22:24:18] Production.INFO: ProcessCDR(1,14667198,1,1,2) [2025-03-12 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667198', 'tblTempUsageDetail_20' ) start [2025-03-12 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667198', 'tblTempUsageDetail_20' ) end [2025-03-12 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:24:23] Production.INFO: ==3450== Releasing lock... [2025-03-12 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:24:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-12 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:25:05 [end_date_ymd] => 2025-03-12 22:25:05 [RateCDR] => 1 ) [2025-03-12 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:25:05' and `end` < '2025-03-12 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:25:18] Production.INFO: count ==1449 [2025-03-12 22:25:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:25:05 - End Time 2025-03-12 22:25:05 [2025-03-12 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667203', 'tblTempUsageDetail_20' ) start [2025-03-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667203', 'tblTempUsageDetail_20' ) end [2025-03-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667203', 'tblTempVendorCDR_20' ) start [2025-03-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667203', 'tblTempVendorCDR_20' ) end [2025-03-12 22:25:19] Production.INFO: ProcessCDR(1,14667203,1,1,2) [2025-03-12 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667203', 'tblTempUsageDetail_20' ) start [2025-03-12 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667203', 'tblTempUsageDetail_20' ) end [2025-03-12 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:25:22] Production.INFO: ==3521== Releasing lock... [2025-03-12 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:25:22] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:26:06 [end_date_ymd] => 2025-03-12 22:26:06 [RateCDR] => 1 ) [2025-03-12 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:26:06' and `end` < '2025-03-12 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:26:18] Production.INFO: count ==1443 [2025-03-12 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:26:06 - End Time 2025-03-12 22:26:06 [2025-03-12 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667208', 'tblTempUsageDetail_20' ) start [2025-03-12 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667208', 'tblTempUsageDetail_20' ) end [2025-03-12 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667208', 'tblTempVendorCDR_20' ) start [2025-03-12 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667208', 'tblTempVendorCDR_20' ) end [2025-03-12 22:26:18] Production.INFO: ProcessCDR(1,14667208,1,1,2) [2025-03-12 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667208', 'tblTempUsageDetail_20' ) start [2025-03-12 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667208', 'tblTempUsageDetail_20' ) end [2025-03-12 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:26:22] Production.INFO: ==3595== Releasing lock... [2025-03-12 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-12 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:27:05 [end_date_ymd] => 2025-03-12 22:27:05 [RateCDR] => 1 ) [2025-03-12 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:27:05' and `end` < '2025-03-12 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:27:18] Production.INFO: count ==1438 [2025-03-12 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:27:05 - End Time 2025-03-12 22:27:05 [2025-03-12 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667213', 'tblTempUsageDetail_20' ) start [2025-03-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667213', 'tblTempUsageDetail_20' ) end [2025-03-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667213', 'tblTempVendorCDR_20' ) start [2025-03-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667213', 'tblTempVendorCDR_20' ) end [2025-03-12 22:27:18] Production.INFO: ProcessCDR(1,14667213,1,1,2) [2025-03-12 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667213', 'tblTempUsageDetail_20' ) start [2025-03-12 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667213', 'tblTempUsageDetail_20' ) end [2025-03-12 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:27:22] Production.INFO: ==3670== Releasing lock... [2025-03-12 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:27:22] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:28:05 [end_date_ymd] => 2025-03-12 22:28:05 [RateCDR] => 1 ) [2025-03-12 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:28:05' and `end` < '2025-03-12 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:28:17] Production.INFO: count ==1438 [2025-03-12 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:28:05 - End Time 2025-03-12 22:28:05 [2025-03-12 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667218', 'tblTempUsageDetail_20' ) start [2025-03-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667218', 'tblTempUsageDetail_20' ) end [2025-03-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667218', 'tblTempVendorCDR_20' ) start [2025-03-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667218', 'tblTempVendorCDR_20' ) end [2025-03-12 22:28:18] Production.INFO: ProcessCDR(1,14667218,1,1,2) [2025-03-12 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667218', 'tblTempUsageDetail_20' ) start [2025-03-12 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667218', 'tblTempUsageDetail_20' ) end [2025-03-12 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:28:21] Production.INFO: ==3745== Releasing lock... [2025-03-12 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:28:21] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:29:05 [end_date_ymd] => 2025-03-12 22:29:05 [RateCDR] => 1 ) [2025-03-12 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:29:05' and `end` < '2025-03-12 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:29:17] Production.INFO: count ==1437 [2025-03-12 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:29:05 - End Time 2025-03-12 22:29:05 [2025-03-12 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667223', 'tblTempUsageDetail_20' ) start [2025-03-12 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667223', 'tblTempUsageDetail_20' ) end [2025-03-12 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667223', 'tblTempVendorCDR_20' ) start [2025-03-12 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667223', 'tblTempVendorCDR_20' ) end [2025-03-12 22:29:18] Production.INFO: ProcessCDR(1,14667223,1,1,2) [2025-03-12 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667223', 'tblTempUsageDetail_20' ) start [2025-03-12 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667223', 'tblTempUsageDetail_20' ) end [2025-03-12 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:29:21] Production.INFO: ==3817== Releasing lock... [2025-03-12 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:29:21] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:30:06 [end_date_ymd] => 2025-03-12 22:30:06 [RateCDR] => 1 ) [2025-03-12 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:30:06' and `end` < '2025-03-12 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:30:19] Production.INFO: count ==1437 [2025-03-12 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:30:06 - End Time 2025-03-12 22:30:06 [2025-03-12 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667229', 'tblTempUsageDetail_20' ) start [2025-03-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667229', 'tblTempUsageDetail_20' ) end [2025-03-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667229', 'tblTempVendorCDR_20' ) start [2025-03-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667229', 'tblTempVendorCDR_20' ) end [2025-03-12 22:30:19] Production.INFO: ProcessCDR(1,14667229,1,1,2) [2025-03-12 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667229', 'tblTempUsageDetail_20' ) start [2025-03-12 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667229', 'tblTempUsageDetail_20' ) end [2025-03-12 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:30:22] Production.INFO: ==3893== Releasing lock... [2025-03-12 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:30:22] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:31:06 [end_date_ymd] => 2025-03-12 22:31:06 [RateCDR] => 1 ) [2025-03-12 22:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:31:06' and `end` < '2025-03-12 22:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:31:18] Production.INFO: count ==1403 [2025-03-12 22:31:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:31:06 - End Time 2025-03-12 22:31:06 [2025-03-12 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667234', 'tblTempUsageDetail_20' ) start [2025-03-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667234', 'tblTempUsageDetail_20' ) end [2025-03-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667234', 'tblTempVendorCDR_20' ) start [2025-03-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667234', 'tblTempVendorCDR_20' ) end [2025-03-12 22:31:19] Production.INFO: ProcessCDR(1,14667234,1,1,2) [2025-03-12 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667234', 'tblTempUsageDetail_20' ) start [2025-03-12 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667234', 'tblTempUsageDetail_20' ) end [2025-03-12 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:31:22] Production.INFO: ==3965== Releasing lock... [2025-03-12 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:32:05 [end_date_ymd] => 2025-03-12 22:32:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:32:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:32:18] Production.INFO: count ==1402 [2025-03-12 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:32:05 - End Time 2025-03-12 22:32:05 [2025-03-12 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667239', 'tblTempUsageDetail_20' ) start [2025-03-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667239', 'tblTempUsageDetail_20' ) end [2025-03-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667239', 'tblTempVendorCDR_20' ) start [2025-03-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667239', 'tblTempVendorCDR_20' ) end [2025-03-12 22:32:18] Production.INFO: ProcessCDR(1,14667239,1,1,2) [2025-03-12 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667239', 'tblTempUsageDetail_20' ) start [2025-03-12 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667239', 'tblTempUsageDetail_20' ) end [2025-03-12 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:32:21] Production.INFO: ==4042== Releasing lock... [2025-03-12 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:32:21] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:33:05 [end_date_ymd] => 2025-03-12 22:33:05 [RateCDR] => 1 ) [2025-03-12 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:33:05' and `end` < '2025-03-12 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:33:18] Production.INFO: count ==1403 [2025-03-12 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:33:05 - End Time 2025-03-12 22:33:05 [2025-03-12 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667244', 'tblTempUsageDetail_20' ) start [2025-03-12 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667244', 'tblTempUsageDetail_20' ) end [2025-03-12 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667244', 'tblTempVendorCDR_20' ) start [2025-03-12 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667244', 'tblTempVendorCDR_20' ) end [2025-03-12 22:33:18] Production.INFO: ProcessCDR(1,14667244,1,1,2) [2025-03-12 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667244', 'tblTempUsageDetail_20' ) start [2025-03-12 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667244', 'tblTempUsageDetail_20' ) end [2025-03-12 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:33:23] Production.INFO: ==4121== Releasing lock... [2025-03-12 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:33:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:34:05 [end_date_ymd] => 2025-03-12 22:34:05 [RateCDR] => 1 ) [2025-03-12 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:34:05' and `end` < '2025-03-12 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:34:17] Production.INFO: count ==1404 [2025-03-12 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:34:05 - End Time 2025-03-12 22:34:05 [2025-03-12 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667249', 'tblTempUsageDetail_20' ) start [2025-03-12 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667249', 'tblTempUsageDetail_20' ) end [2025-03-12 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667249', 'tblTempVendorCDR_20' ) start [2025-03-12 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667249', 'tblTempVendorCDR_20' ) end [2025-03-12 22:34:18] Production.INFO: ProcessCDR(1,14667249,1,1,2) [2025-03-12 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667249', 'tblTempUsageDetail_20' ) start [2025-03-12 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667249', 'tblTempUsageDetail_20' ) end [2025-03-12 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:34:23] Production.INFO: ==4196== Releasing lock... [2025-03-12 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:34:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:35:06 [end_date_ymd] => 2025-03-12 22:35:06 [RateCDR] => 1 ) [2025-03-12 22:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:35:06' and `end` < '2025-03-12 22:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:35:18] Production.INFO: count ==1402 [2025-03-12 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:35:06 - End Time 2025-03-12 22:35:06 [2025-03-12 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667254', 'tblTempUsageDetail_20' ) start [2025-03-12 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667254', 'tblTempUsageDetail_20' ) end [2025-03-12 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667254', 'tblTempVendorCDR_20' ) start [2025-03-12 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667254', 'tblTempVendorCDR_20' ) end [2025-03-12 22:35:18] Production.INFO: ProcessCDR(1,14667254,1,1,2) [2025-03-12 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667254', 'tblTempUsageDetail_20' ) start [2025-03-12 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667254', 'tblTempUsageDetail_20' ) end [2025-03-12 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:35:22] Production.INFO: ==4309== Releasing lock... [2025-03-12 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:35:22] Production.INFO: 39 MB #Memory Used# [2025-03-12 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:36:05 [end_date_ymd] => 2025-03-12 22:36:05 [RateCDR] => 1 ) [2025-03-12 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:36:05' and `end` < '2025-03-12 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:36:17] Production.INFO: count ==1406 [2025-03-12 22:36:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:36:05 - End Time 2025-03-12 22:36:05 [2025-03-12 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667259', 'tblTempUsageDetail_20' ) start [2025-03-12 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667259', 'tblTempUsageDetail_20' ) end [2025-03-12 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667259', 'tblTempVendorCDR_20' ) start [2025-03-12 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667259', 'tblTempVendorCDR_20' ) end [2025-03-12 22:36:17] Production.INFO: ProcessCDR(1,14667259,1,1,2) [2025-03-12 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667259', 'tblTempUsageDetail_20' ) start [2025-03-12 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667259', 'tblTempUsageDetail_20' ) end [2025-03-12 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:36:22] Production.INFO: ==4383== Releasing lock... [2025-03-12 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:36:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:37:05 [end_date_ymd] => 2025-03-12 22:37:05 [RateCDR] => 1 ) [2025-03-12 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:37:05' and `end` < '2025-03-12 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:37:18] Production.INFO: count ==1408 [2025-03-12 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:37:05 - End Time 2025-03-12 22:37:05 [2025-03-12 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667264', 'tblTempUsageDetail_20' ) start [2025-03-12 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667264', 'tblTempUsageDetail_20' ) end [2025-03-12 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667264', 'tblTempVendorCDR_20' ) start [2025-03-12 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667264', 'tblTempVendorCDR_20' ) end [2025-03-12 22:37:18] Production.INFO: ProcessCDR(1,14667264,1,1,2) [2025-03-12 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667264', 'tblTempUsageDetail_20' ) start [2025-03-12 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667264', 'tblTempUsageDetail_20' ) end [2025-03-12 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:37:23] Production.INFO: ==4455== Releasing lock... [2025-03-12 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:37:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:38:05 [end_date_ymd] => 2025-03-12 22:38:05 [RateCDR] => 1 ) [2025-03-12 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:38:05' and `end` < '2025-03-12 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:38:17] Production.INFO: count ==1408 [2025-03-12 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:38:05 - End Time 2025-03-12 22:38:05 [2025-03-12 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667269', 'tblTempUsageDetail_20' ) start [2025-03-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667269', 'tblTempUsageDetail_20' ) end [2025-03-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667269', 'tblTempVendorCDR_20' ) start [2025-03-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667269', 'tblTempVendorCDR_20' ) end [2025-03-12 22:38:18] Production.INFO: ProcessCDR(1,14667269,1,1,2) [2025-03-12 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667269', 'tblTempUsageDetail_20' ) start [2025-03-12 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667269', 'tblTempUsageDetail_20' ) end [2025-03-12 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:38:21] Production.INFO: ==4532== Releasing lock... [2025-03-12 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:39:05 [end_date_ymd] => 2025-03-12 22:39:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:39:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:39:17] Production.INFO: count ==1408 [2025-03-12 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:39:05 - End Time 2025-03-12 22:39:05 [2025-03-12 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667274', 'tblTempUsageDetail_20' ) start [2025-03-12 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667274', 'tblTempUsageDetail_20' ) end [2025-03-12 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667274', 'tblTempVendorCDR_20' ) start [2025-03-12 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667274', 'tblTempVendorCDR_20' ) end [2025-03-12 22:39:18] Production.INFO: ProcessCDR(1,14667274,1,1,2) [2025-03-12 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667274', 'tblTempUsageDetail_20' ) start [2025-03-12 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667274', 'tblTempUsageDetail_20' ) end [2025-03-12 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:39:21] Production.INFO: ==4611== Releasing lock... [2025-03-12 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:40:05 [end_date_ymd] => 2025-03-12 22:40:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:40:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:40:18] Production.INFO: count ==1408 [2025-03-12 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:40:05 - End Time 2025-03-12 22:40:05 [2025-03-12 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667280', 'tblTempUsageDetail_20' ) start [2025-03-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667280', 'tblTempUsageDetail_20' ) end [2025-03-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667280', 'tblTempVendorCDR_20' ) start [2025-03-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667280', 'tblTempVendorCDR_20' ) end [2025-03-12 22:40:19] Production.INFO: ProcessCDR(1,14667280,1,1,2) [2025-03-12 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667280', 'tblTempUsageDetail_20' ) start [2025-03-12 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667280', 'tblTempUsageDetail_20' ) end [2025-03-12 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:40:22] Production.INFO: ==4684== Releasing lock... [2025-03-12 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:40:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:41:05 [end_date_ymd] => 2025-03-12 22:41:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:41:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:41:17] Production.INFO: count ==1374 [2025-03-12 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:41:05 - End Time 2025-03-12 22:41:05 [2025-03-12 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667285', 'tblTempUsageDetail_20' ) start [2025-03-12 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667285', 'tblTempUsageDetail_20' ) end [2025-03-12 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667285', 'tblTempVendorCDR_20' ) start [2025-03-12 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667285', 'tblTempVendorCDR_20' ) end [2025-03-12 22:41:17] Production.INFO: ProcessCDR(1,14667285,1,1,2) [2025-03-12 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667285', 'tblTempUsageDetail_20' ) start [2025-03-12 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667285', 'tblTempUsageDetail_20' ) end [2025-03-12 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:41:21] Production.INFO: ==4760== Releasing lock... [2025-03-12 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:41:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:42:05 [end_date_ymd] => 2025-03-12 22:42:05 [RateCDR] => 1 ) [2025-03-12 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:42:05' and `end` < '2025-03-12 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:42:18] Production.INFO: count ==1373 [2025-03-12 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:42:05 - End Time 2025-03-12 22:42:05 [2025-03-12 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667290', 'tblTempUsageDetail_20' ) start [2025-03-12 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667290', 'tblTempUsageDetail_20' ) end [2025-03-12 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667290', 'tblTempVendorCDR_20' ) start [2025-03-12 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667290', 'tblTempVendorCDR_20' ) end [2025-03-12 22:42:18] Production.INFO: ProcessCDR(1,14667290,1,1,2) [2025-03-12 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667290', 'tblTempUsageDetail_20' ) start [2025-03-12 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667290', 'tblTempUsageDetail_20' ) end [2025-03-12 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:42:22] Production.INFO: ==4833== Releasing lock... [2025-03-12 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:43:05 [end_date_ymd] => 2025-03-12 22:43:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:43:05' and `end` < '2025-03-12 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:43:18] Production.INFO: count ==1378 [2025-03-12 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:43:05 - End Time 2025-03-12 22:43:05 [2025-03-12 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667295', 'tblTempUsageDetail_20' ) start [2025-03-12 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667295', 'tblTempUsageDetail_20' ) end [2025-03-12 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667295', 'tblTempVendorCDR_20' ) start [2025-03-12 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667295', 'tblTempVendorCDR_20' ) end [2025-03-12 22:43:18] Production.INFO: ProcessCDR(1,14667295,1,1,2) [2025-03-12 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667295', 'tblTempUsageDetail_20' ) start [2025-03-12 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667295', 'tblTempUsageDetail_20' ) end [2025-03-12 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:43:21] Production.INFO: ==4915== Releasing lock... [2025-03-12 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:43:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:44:05 [end_date_ymd] => 2025-03-12 22:44:05 [RateCDR] => 1 ) [2025-03-12 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:44:05' and `end` < '2025-03-12 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:44:17] Production.INFO: count ==1376 [2025-03-12 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:44:05 - End Time 2025-03-12 22:44:05 [2025-03-12 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667300', 'tblTempUsageDetail_20' ) start [2025-03-12 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667300', 'tblTempUsageDetail_20' ) end [2025-03-12 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667300', 'tblTempVendorCDR_20' ) start [2025-03-12 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667300', 'tblTempVendorCDR_20' ) end [2025-03-12 22:44:18] Production.INFO: ProcessCDR(1,14667300,1,1,2) [2025-03-12 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667300', 'tblTempUsageDetail_20' ) start [2025-03-12 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667300', 'tblTempUsageDetail_20' ) end [2025-03-12 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:44:21] Production.INFO: ==4988== Releasing lock... [2025-03-12 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:44:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:45:05 [end_date_ymd] => 2025-03-12 22:45:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:45:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:45:17] Production.INFO: count ==1371 [2025-03-12 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:45:05 - End Time 2025-03-12 22:45:05 [2025-03-12 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667305', 'tblTempUsageDetail_20' ) start [2025-03-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667305', 'tblTempUsageDetail_20' ) end [2025-03-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667305', 'tblTempVendorCDR_20' ) start [2025-03-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667305', 'tblTempVendorCDR_20' ) end [2025-03-12 22:45:18] Production.INFO: ProcessCDR(1,14667305,1,1,2) [2025-03-12 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667305', 'tblTempUsageDetail_20' ) start [2025-03-12 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667305', 'tblTempUsageDetail_20' ) end [2025-03-12 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:45:21] Production.INFO: ==5063== Releasing lock... [2025-03-12 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:46:06 [end_date_ymd] => 2025-03-12 22:46:06 [RateCDR] => 1 ) [2025-03-12 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:46:06' and `end` < '2025-03-12 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:46:18] Production.INFO: count ==1370 [2025-03-12 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:46:06 - End Time 2025-03-12 22:46:06 [2025-03-12 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667310', 'tblTempUsageDetail_20' ) start [2025-03-12 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667310', 'tblTempUsageDetail_20' ) end [2025-03-12 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667310', 'tblTempVendorCDR_20' ) start [2025-03-12 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667310', 'tblTempVendorCDR_20' ) end [2025-03-12 22:46:18] Production.INFO: ProcessCDR(1,14667310,1,1,2) [2025-03-12 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667310', 'tblTempUsageDetail_20' ) start [2025-03-12 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667310', 'tblTempUsageDetail_20' ) end [2025-03-12 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:46:22] Production.INFO: ==5137== Releasing lock... [2025-03-12 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:46:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:47:05 [end_date_ymd] => 2025-03-12 22:47:05 [RateCDR] => 1 ) [2025-03-12 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:47:05' and `end` < '2025-03-12 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:47:17] Production.INFO: count ==1372 [2025-03-12 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:47:05 - End Time 2025-03-12 22:47:05 [2025-03-12 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667315', 'tblTempUsageDetail_20' ) start [2025-03-12 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667315', 'tblTempUsageDetail_20' ) end [2025-03-12 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667315', 'tblTempVendorCDR_20' ) start [2025-03-12 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667315', 'tblTempVendorCDR_20' ) end [2025-03-12 22:47:17] Production.INFO: ProcessCDR(1,14667315,1,1,2) [2025-03-12 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667315', 'tblTempUsageDetail_20' ) start [2025-03-12 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667315', 'tblTempUsageDetail_20' ) end [2025-03-12 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:47:21] Production.INFO: ==5211== Releasing lock... [2025-03-12 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:48:06 [end_date_ymd] => 2025-03-12 22:48:06 [RateCDR] => 1 ) [2025-03-12 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:48:06' and `end` < '2025-03-12 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:48:18] Production.INFO: count ==1373 [2025-03-12 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:48:06 - End Time 2025-03-12 22:48:06 [2025-03-12 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667320', 'tblTempUsageDetail_20' ) start [2025-03-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667320', 'tblTempUsageDetail_20' ) end [2025-03-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667320', 'tblTempVendorCDR_20' ) start [2025-03-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667320', 'tblTempVendorCDR_20' ) end [2025-03-12 22:48:19] Production.INFO: ProcessCDR(1,14667320,1,1,2) [2025-03-12 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667320', 'tblTempUsageDetail_20' ) start [2025-03-12 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667320', 'tblTempUsageDetail_20' ) end [2025-03-12 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:48:22] Production.INFO: ==5289== Releasing lock... [2025-03-12 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:48:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-12 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:49:05 [end_date_ymd] => 2025-03-12 22:49:05 [RateCDR] => 1 ) [2025-03-12 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:49:05' and `end` < '2025-03-12 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:49:17] Production.INFO: count ==1371 [2025-03-12 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:49:05 - End Time 2025-03-12 22:49:05 [2025-03-12 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667325', 'tblTempUsageDetail_20' ) start [2025-03-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667325', 'tblTempUsageDetail_20' ) end [2025-03-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667325', 'tblTempVendorCDR_20' ) start [2025-03-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667325', 'tblTempVendorCDR_20' ) end [2025-03-12 22:49:18] Production.INFO: ProcessCDR(1,14667325,1,1,2) [2025-03-12 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667325', 'tblTempUsageDetail_20' ) start [2025-03-12 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667325', 'tblTempUsageDetail_20' ) end [2025-03-12 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:49:21] Production.INFO: ==5364== Releasing lock... [2025-03-12 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:49:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:50:06 [end_date_ymd] => 2025-03-12 22:50:06 [RateCDR] => 1 ) [2025-03-12 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:50:06' and `end` < '2025-03-12 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:50:18] Production.INFO: count ==1369 [2025-03-12 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-12 19:50:06 - End Time 2025-03-12 22:50:06 [2025-03-12 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667331', 'tblTempUsageDetail_20' ) start [2025-03-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667331', 'tblTempUsageDetail_20' ) end [2025-03-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667331', 'tblTempVendorCDR_20' ) start [2025-03-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667331', 'tblTempVendorCDR_20' ) end [2025-03-12 22:50:19] Production.INFO: ProcessCDR(1,14667331,1,1,2) [2025-03-12 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667331', 'tblTempUsageDetail_20' ) start [2025-03-12 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667331', 'tblTempUsageDetail_20' ) end [2025-03-12 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:50:23] Production.INFO: ==5480== Releasing lock... [2025-03-12 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:50:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:51:05 [end_date_ymd] => 2025-03-12 22:51:05 [RateCDR] => 1 ) [2025-03-12 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:51:05' and `end` < '2025-03-12 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:51:17] Production.INFO: count ==1360 [2025-03-12 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:51:05 - End Time 2025-03-12 22:51:05 [2025-03-12 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667336', 'tblTempUsageDetail_20' ) start [2025-03-12 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667336', 'tblTempUsageDetail_20' ) end [2025-03-12 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667336', 'tblTempVendorCDR_20' ) start [2025-03-12 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667336', 'tblTempVendorCDR_20' ) end [2025-03-12 22:51:17] Production.INFO: ProcessCDR(1,14667336,1,1,2) [2025-03-12 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667336', 'tblTempUsageDetail_20' ) start [2025-03-12 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667336', 'tblTempUsageDetail_20' ) end [2025-03-12 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:51:21] Production.INFO: ==5560== Releasing lock... [2025-03-12 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:52:05 [end_date_ymd] => 2025-03-12 22:52:05 [RateCDR] => 1 ) [2025-03-12 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:52:05' and `end` < '2025-03-12 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:52:17] Production.INFO: count ==1360 [2025-03-12 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:52:05 - End Time 2025-03-12 22:52:05 [2025-03-12 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667341', 'tblTempUsageDetail_20' ) start [2025-03-12 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667341', 'tblTempUsageDetail_20' ) end [2025-03-12 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667341', 'tblTempVendorCDR_20' ) start [2025-03-12 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667341', 'tblTempVendorCDR_20' ) end [2025-03-12 22:52:18] Production.INFO: ProcessCDR(1,14667341,1,1,2) [2025-03-12 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667341', 'tblTempUsageDetail_20' ) start [2025-03-12 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667341', 'tblTempUsageDetail_20' ) end [2025-03-12 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:52:23] Production.INFO: ==5634== Releasing lock... [2025-03-12 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:52:23] Production.INFO: 38 MB #Memory Used# [2025-03-12 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:53:05 [end_date_ymd] => 2025-03-12 22:53:05 [RateCDR] => 1 ) [2025-03-12 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:53:05' and `end` < '2025-03-12 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:53:17] Production.INFO: count ==1365 [2025-03-12 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:53:05 - End Time 2025-03-12 22:53:05 [2025-03-12 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667346', 'tblTempUsageDetail_20' ) start [2025-03-12 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667346', 'tblTempUsageDetail_20' ) end [2025-03-12 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667346', 'tblTempVendorCDR_20' ) start [2025-03-12 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667346', 'tblTempVendorCDR_20' ) end [2025-03-12 22:53:17] Production.INFO: ProcessCDR(1,14667346,1,1,2) [2025-03-12 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667346', 'tblTempUsageDetail_20' ) start [2025-03-12 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667346', 'tblTempUsageDetail_20' ) end [2025-03-12 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:53:21] Production.INFO: ==5709== Releasing lock... [2025-03-12 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:54:05 [end_date_ymd] => 2025-03-12 22:54:05 [RateCDR] => 1 ) [2025-03-12 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:54:05' and `end` < '2025-03-12 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:54:18] Production.INFO: count ==1371 [2025-03-12 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:54:05 - End Time 2025-03-12 22:54:05 [2025-03-12 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667351', 'tblTempUsageDetail_20' ) start [2025-03-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667351', 'tblTempUsageDetail_20' ) end [2025-03-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667351', 'tblTempVendorCDR_20' ) start [2025-03-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667351', 'tblTempVendorCDR_20' ) end [2025-03-12 22:54:18] Production.INFO: ProcessCDR(1,14667351,1,1,2) [2025-03-12 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667351', 'tblTempUsageDetail_20' ) start [2025-03-12 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667351', 'tblTempUsageDetail_20' ) end [2025-03-12 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:54:23] Production.INFO: ==5787== Releasing lock... [2025-03-12 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:54:23] Production.INFO: 38 MB #Memory Used# [2025-03-12 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:55:05 [end_date_ymd] => 2025-03-12 22:55:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 19:55:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 22:55:17] Production.INFO: count ==1371 [2025-03-12 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:55:05 - End Time 2025-03-12 22:55:05 [2025-03-12 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667356', 'tblTempUsageDetail_20' ) start [2025-03-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667356', 'tblTempUsageDetail_20' ) end [2025-03-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667356', 'tblTempVendorCDR_20' ) start [2025-03-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667356', 'tblTempVendorCDR_20' ) end [2025-03-12 22:55:18] Production.INFO: ProcessCDR(1,14667356,1,1,2) [2025-03-12 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667356', 'tblTempUsageDetail_20' ) start [2025-03-12 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667356', 'tblTempUsageDetail_20' ) end [2025-03-12 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:55:21] Production.INFO: ==5863== Releasing lock... [2025-03-12 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:55:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:56:05 [end_date_ymd] => 2025-03-12 22:56:05 [RateCDR] => 1 ) [2025-03-12 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:56:05' and `end` < '2025-03-12 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:56:18] Production.INFO: count ==1369 [2025-03-12 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:56:05 - End Time 2025-03-12 22:56:05 [2025-03-12 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667361', 'tblTempUsageDetail_20' ) start [2025-03-12 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667361', 'tblTempUsageDetail_20' ) end [2025-03-12 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667361', 'tblTempVendorCDR_20' ) start [2025-03-12 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667361', 'tblTempVendorCDR_20' ) end [2025-03-12 22:56:18] Production.INFO: ProcessCDR(1,14667361,1,1,2) [2025-03-12 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667361', 'tblTempUsageDetail_20' ) start [2025-03-12 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667361', 'tblTempUsageDetail_20' ) end [2025-03-12 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:56:22] Production.INFO: ==5944== Releasing lock... [2025-03-12 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:57:05 [end_date_ymd] => 2025-03-12 22:57:05 [RateCDR] => 1 ) [2025-03-12 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:57:05' and `end` < '2025-03-12 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:57:17] Production.INFO: count ==1367 [2025-03-12 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:57:05 - End Time 2025-03-12 22:57:05 [2025-03-12 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667366', 'tblTempUsageDetail_20' ) start [2025-03-12 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667366', 'tblTempUsageDetail_20' ) end [2025-03-12 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667366', 'tblTempVendorCDR_20' ) start [2025-03-12 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667366', 'tblTempVendorCDR_20' ) end [2025-03-12 22:57:17] Production.INFO: ProcessCDR(1,14667366,1,1,2) [2025-03-12 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667366', 'tblTempUsageDetail_20' ) start [2025-03-12 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667366', 'tblTempUsageDetail_20' ) end [2025-03-12 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:57:21] Production.INFO: ==6029== Releasing lock... [2025-03-12 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:57:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:58:06 [end_date_ymd] => 2025-03-12 22:58:06 [RateCDR] => 1 ) [2025-03-12 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:58:06' and `end` < '2025-03-12 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:58:18] Production.INFO: count ==1370 [2025-03-12 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 19:58:06 - End Time 2025-03-12 22:58:06 [2025-03-12 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667371', 'tblTempUsageDetail_20' ) start [2025-03-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667371', 'tblTempUsageDetail_20' ) end [2025-03-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667371', 'tblTempVendorCDR_20' ) start [2025-03-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667371', 'tblTempVendorCDR_20' ) end [2025-03-12 22:58:19] Production.INFO: ProcessCDR(1,14667371,1,1,2) [2025-03-12 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667371', 'tblTempUsageDetail_20' ) start [2025-03-12 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667371', 'tblTempUsageDetail_20' ) end [2025-03-12 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:58:22] Production.INFO: ==6140== Releasing lock... [2025-03-12 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 19:59:05 [end_date_ymd] => 2025-03-12 22:59:05 [RateCDR] => 1 ) [2025-03-12 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 19:59:05' and `end` < '2025-03-12 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 22:59:17] Production.INFO: count ==1374 [2025-03-12 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 19:59:05 - End Time 2025-03-12 22:59:05 [2025-03-12 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667376', 'tblTempUsageDetail_20' ) start [2025-03-12 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667376', 'tblTempUsageDetail_20' ) end [2025-03-12 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667376', 'tblTempVendorCDR_20' ) start [2025-03-12 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667376', 'tblTempVendorCDR_20' ) end [2025-03-12 22:59:17] Production.INFO: ProcessCDR(1,14667376,1,1,2) [2025-03-12 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667376', 'tblTempUsageDetail_20' ) start [2025-03-12 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667376', 'tblTempUsageDetail_20' ) end [2025-03-12 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 22:59:22] Production.INFO: ==6236== Releasing lock... [2025-03-12 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 22:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:00:06 [end_date_ymd] => 2025-03-12 23:00:06 [RateCDR] => 1 ) [2025-03-12 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:00:06' and `end` < '2025-03-12 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:00:18] Production.INFO: count ==1375 [2025-03-12 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:00:06 - End Time 2025-03-12 23:00:06 [2025-03-12 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667382', 'tblTempUsageDetail_20' ) start [2025-03-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667382', 'tblTempUsageDetail_20' ) end [2025-03-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667382', 'tblTempVendorCDR_20' ) start [2025-03-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667382', 'tblTempVendorCDR_20' ) end [2025-03-12 23:00:19] Production.INFO: ProcessCDR(1,14667382,1,1,2) [2025-03-12 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667382', 'tblTempUsageDetail_20' ) start [2025-03-12 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667382', 'tblTempUsageDetail_20' ) end [2025-03-12 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:00:25] Production.INFO: ==6343== Releasing lock... [2025-03-12 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:00:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:01:05 [end_date_ymd] => 2025-03-12 23:01:05 [RateCDR] => 1 ) [2025-03-12 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:01:05' and `end` < '2025-03-12 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:01:18] Production.INFO: count ==1359 [2025-03-12 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:01:05 - End Time 2025-03-12 23:01:05 [2025-03-12 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667387', 'tblTempUsageDetail_20' ) start [2025-03-12 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667387', 'tblTempUsageDetail_20' ) end [2025-03-12 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667387', 'tblTempVendorCDR_20' ) start [2025-03-12 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667387', 'tblTempVendorCDR_20' ) end [2025-03-12 23:01:18] Production.INFO: ProcessCDR(1,14667387,1,1,2) [2025-03-12 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667387', 'tblTempUsageDetail_20' ) start [2025-03-12 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667387', 'tblTempUsageDetail_20' ) end [2025-03-12 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:01:21] Production.INFO: ==6457== Releasing lock... [2025-03-12 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:01:21] Production.INFO: 38 MB #Memory Used# [2025-03-12 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:02:05 [end_date_ymd] => 2025-03-12 23:02:05 [RateCDR] => 1 ) [2025-03-12 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:02:05' and `end` < '2025-03-12 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:02:17] Production.INFO: count ==1349 [2025-03-12 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:02:05 - End Time 2025-03-12 23:02:05 [2025-03-12 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667392', 'tblTempUsageDetail_20' ) start [2025-03-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667392', 'tblTempUsageDetail_20' ) end [2025-03-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667392', 'tblTempVendorCDR_20' ) start [2025-03-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667392', 'tblTempVendorCDR_20' ) end [2025-03-12 23:02:18] Production.INFO: ProcessCDR(1,14667392,1,1,2) [2025-03-12 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667392', 'tblTempUsageDetail_20' ) start [2025-03-12 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667392', 'tblTempUsageDetail_20' ) end [2025-03-12 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:02:23] Production.INFO: ==6635== Releasing lock... [2025-03-12 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:02:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:03:05 [end_date_ymd] => 2025-03-12 23:03:05 [RateCDR] => 1 ) [2025-03-12 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:03:05' and `end` < '2025-03-12 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:03:18] Production.INFO: count ==1349 [2025-03-12 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:03:05 - End Time 2025-03-12 23:03:05 [2025-03-12 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667397', 'tblTempUsageDetail_20' ) start [2025-03-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667397', 'tblTempUsageDetail_20' ) end [2025-03-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667397', 'tblTempVendorCDR_20' ) start [2025-03-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667397', 'tblTempVendorCDR_20' ) end [2025-03-12 23:03:18] Production.INFO: ProcessCDR(1,14667397,1,1,2) [2025-03-12 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667397', 'tblTempUsageDetail_20' ) start [2025-03-12 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667397', 'tblTempUsageDetail_20' ) end [2025-03-12 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:03:23] Production.INFO: ==6735== Releasing lock... [2025-03-12 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-12 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:04:04 [end_date_ymd] => 2025-03-12 23:04:04 [RateCDR] => 1 ) [2025-03-12 23:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:04:04' and `end` < '2025-03-12 23:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:04:17] Production.INFO: count ==1342 [2025-03-12 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:04:04 - End Time 2025-03-12 23:04:04 [2025-03-12 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667402', 'tblTempUsageDetail_20' ) start [2025-03-12 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667402', 'tblTempUsageDetail_20' ) end [2025-03-12 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667402', 'tblTempVendorCDR_20' ) start [2025-03-12 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667402', 'tblTempVendorCDR_20' ) end [2025-03-12 23:04:17] Production.INFO: ProcessCDR(1,14667402,1,1,2) [2025-03-12 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667402', 'tblTempUsageDetail_20' ) start [2025-03-12 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667402', 'tblTempUsageDetail_20' ) end [2025-03-12 23:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:04:20] Production.INFO: ==6833== Releasing lock... [2025-03-12 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:04:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:05:05 [end_date_ymd] => 2025-03-12 23:05:05 [RateCDR] => 1 ) [2025-03-12 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:05:05' and `end` < '2025-03-12 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:05:18] Production.INFO: count ==1335 [2025-03-12 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:05:05 - End Time 2025-03-12 23:05:05 [2025-03-12 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667407', 'tblTempUsageDetail_20' ) start [2025-03-12 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667407', 'tblTempUsageDetail_20' ) end [2025-03-12 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667407', 'tblTempVendorCDR_20' ) start [2025-03-12 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667407', 'tblTempVendorCDR_20' ) end [2025-03-12 23:05:18] Production.INFO: ProcessCDR(1,14667407,1,1,2) [2025-03-12 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667407', 'tblTempUsageDetail_20' ) start [2025-03-12 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667407', 'tblTempUsageDetail_20' ) end [2025-03-12 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:05:22] Production.INFO: ==7017== Releasing lock... [2025-03-12 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:05:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:06:05 [end_date_ymd] => 2025-03-12 23:06:05 [RateCDR] => 1 ) [2025-03-12 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:06:05' and `end` < '2025-03-12 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:06:17] Production.INFO: count ==1331 [2025-03-12 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:06:05 - End Time 2025-03-12 23:06:05 [2025-03-12 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667412', 'tblTempUsageDetail_20' ) start [2025-03-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667412', 'tblTempUsageDetail_20' ) end [2025-03-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667412', 'tblTempVendorCDR_20' ) start [2025-03-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667412', 'tblTempVendorCDR_20' ) end [2025-03-12 23:06:18] Production.INFO: ProcessCDR(1,14667412,1,1,2) [2025-03-12 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667412', 'tblTempUsageDetail_20' ) start [2025-03-12 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667412', 'tblTempUsageDetail_20' ) end [2025-03-12 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:06:23] Production.INFO: ==7153== Releasing lock... [2025-03-12 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:06:23] Production.INFO: 38 MB #Memory Used# [2025-03-12 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:07:05 [end_date_ymd] => 2025-03-12 23:07:05 [RateCDR] => 1 ) [2025-03-12 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:07:05' and `end` < '2025-03-12 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:07:17] Production.INFO: count ==1331 [2025-03-12 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:07:05 - End Time 2025-03-12 23:07:05 [2025-03-12 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667417', 'tblTempUsageDetail_20' ) start [2025-03-12 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667417', 'tblTempUsageDetail_20' ) end [2025-03-12 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667417', 'tblTempVendorCDR_20' ) start [2025-03-12 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667417', 'tblTempVendorCDR_20' ) end [2025-03-12 23:07:18] Production.INFO: ProcessCDR(1,14667417,1,1,2) [2025-03-12 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667417', 'tblTempUsageDetail_20' ) start [2025-03-12 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667417', 'tblTempUsageDetail_20' ) end [2025-03-12 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:07:21] Production.INFO: ==7255== Releasing lock... [2025-03-12 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:07:21] Production.INFO: 38 MB #Memory Used# [2025-03-12 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:08:05 [end_date_ymd] => 2025-03-12 23:08:05 [RateCDR] => 1 ) [2025-03-12 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:08:05' and `end` < '2025-03-12 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:08:17] Production.INFO: count ==1329 [2025-03-12 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:08:05 - End Time 2025-03-12 23:08:05 [2025-03-12 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667422', 'tblTempUsageDetail_20' ) start [2025-03-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667422', 'tblTempUsageDetail_20' ) end [2025-03-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667422', 'tblTempVendorCDR_20' ) start [2025-03-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667422', 'tblTempVendorCDR_20' ) end [2025-03-12 23:08:18] Production.INFO: ProcessCDR(1,14667422,1,1,2) [2025-03-12 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667422', 'tblTempUsageDetail_20' ) start [2025-03-12 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667422', 'tblTempUsageDetail_20' ) end [2025-03-12 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:08:21] Production.INFO: ==7394== Releasing lock... [2025-03-12 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:08:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:09:05 [end_date_ymd] => 2025-03-12 23:09:05 [RateCDR] => 1 ) [2025-03-12 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:09:05' and `end` < '2025-03-12 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:09:18] Production.INFO: count ==1330 [2025-03-12 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:09:05 - End Time 2025-03-12 23:09:05 [2025-03-12 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667427', 'tblTempUsageDetail_20' ) start [2025-03-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667427', 'tblTempUsageDetail_20' ) end [2025-03-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667427', 'tblTempVendorCDR_20' ) start [2025-03-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667427', 'tblTempVendorCDR_20' ) end [2025-03-12 23:09:18] Production.INFO: ProcessCDR(1,14667427,1,1,2) [2025-03-12 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667427', 'tblTempUsageDetail_20' ) start [2025-03-12 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667427', 'tblTempUsageDetail_20' ) end [2025-03-12 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:09:23] Production.INFO: ==7532== Releasing lock... [2025-03-12 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:09:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:10:06 [end_date_ymd] => 2025-03-12 23:10:06 [RateCDR] => 1 ) [2025-03-12 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:10:06' and `end` < '2025-03-12 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:10:18] Production.INFO: count ==1336 [2025-03-12 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:10:06 - End Time 2025-03-12 23:10:06 [2025-03-12 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667432', 'tblTempUsageDetail_20' ) start [2025-03-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667432', 'tblTempUsageDetail_20' ) end [2025-03-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667432', 'tblTempVendorCDR_20' ) start [2025-03-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667432', 'tblTempVendorCDR_20' ) end [2025-03-12 23:10:19] Production.INFO: ProcessCDR(1,14667432,1,1,2) [2025-03-12 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667432', 'tblTempUsageDetail_20' ) start [2025-03-12 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667432', 'tblTempUsageDetail_20' ) end [2025-03-12 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:10:22] Production.INFO: ==7633== Releasing lock... [2025-03-12 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:10:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-12 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:11:05 [end_date_ymd] => 2025-03-12 23:11:05 [RateCDR] => 1 ) [2025-03-12 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:11:05' and `end` < '2025-03-12 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:11:17] Production.INFO: count ==1305 [2025-03-12 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:11:05 - End Time 2025-03-12 23:11:05 [2025-03-12 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667438', 'tblTempUsageDetail_20' ) start [2025-03-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667438', 'tblTempUsageDetail_20' ) end [2025-03-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667438', 'tblTempVendorCDR_20' ) start [2025-03-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667438', 'tblTempVendorCDR_20' ) end [2025-03-12 23:11:18] Production.INFO: ProcessCDR(1,14667438,1,1,2) [2025-03-12 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667438', 'tblTempUsageDetail_20' ) start [2025-03-12 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667438', 'tblTempUsageDetail_20' ) end [2025-03-12 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:11:21] Production.INFO: ==7738== Releasing lock... [2025-03-12 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:11:21] Production.INFO: 38 MB #Memory Used# [2025-03-12 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:12:05 [end_date_ymd] => 2025-03-12 23:12:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:12:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:12:17] Production.INFO: count ==1240 [2025-03-12 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:12:05 - End Time 2025-03-12 23:12:05 [2025-03-12 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667443', 'tblTempUsageDetail_20' ) start [2025-03-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667443', 'tblTempUsageDetail_20' ) end [2025-03-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667443', 'tblTempVendorCDR_20' ) start [2025-03-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667443', 'tblTempVendorCDR_20' ) end [2025-03-12 23:12:18] Production.INFO: ProcessCDR(1,14667443,1,1,2) [2025-03-12 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667443', 'tblTempUsageDetail_20' ) start [2025-03-12 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667443', 'tblTempUsageDetail_20' ) end [2025-03-12 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:12:21] Production.INFO: ==7919== Releasing lock... [2025-03-12 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:12:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:13:05 [end_date_ymd] => 2025-03-12 23:13:05 [RateCDR] => 1 ) [2025-03-12 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:13:05' and `end` < '2025-03-12 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:13:18] Production.INFO: count ==1230 [2025-03-12 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:13:05 - End Time 2025-03-12 23:13:05 [2025-03-12 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667448', 'tblTempUsageDetail_20' ) start [2025-03-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667448', 'tblTempUsageDetail_20' ) end [2025-03-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667448', 'tblTempVendorCDR_20' ) start [2025-03-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667448', 'tblTempVendorCDR_20' ) end [2025-03-12 23:13:18] Production.INFO: ProcessCDR(1,14667448,1,1,2) [2025-03-12 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667448', 'tblTempUsageDetail_20' ) start [2025-03-12 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667448', 'tblTempUsageDetail_20' ) end [2025-03-12 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:13:22] Production.INFO: ==8019== Releasing lock... [2025-03-12 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:14:05 [end_date_ymd] => 2025-03-12 23:14:05 [RateCDR] => 1 ) [2025-03-12 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:14:05' and `end` < '2025-03-12 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:14:18] Production.INFO: count ==1218 [2025-03-12 23:14:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:14:05 - End Time 2025-03-12 23:14:05 [2025-03-12 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667453', 'tblTempUsageDetail_20' ) start [2025-03-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667453', 'tblTempUsageDetail_20' ) end [2025-03-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667453', 'tblTempVendorCDR_20' ) start [2025-03-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667453', 'tblTempVendorCDR_20' ) end [2025-03-12 23:14:19] Production.INFO: ProcessCDR(1,14667453,1,1,2) [2025-03-12 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667453', 'tblTempUsageDetail_20' ) start [2025-03-12 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667453', 'tblTempUsageDetail_20' ) end [2025-03-12 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:14:22] Production.INFO: ==8126== Releasing lock... [2025-03-12 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:15:05 [end_date_ymd] => 2025-03-12 23:15:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:15:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:15:17] Production.INFO: count ==1216 [2025-03-12 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:15:05 - End Time 2025-03-12 23:15:05 [2025-03-12 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667458', 'tblTempUsageDetail_20' ) start [2025-03-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667458', 'tblTempUsageDetail_20' ) end [2025-03-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667458', 'tblTempVendorCDR_20' ) start [2025-03-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667458', 'tblTempVendorCDR_20' ) end [2025-03-12 23:15:18] Production.INFO: ProcessCDR(1,14667458,1,1,2) [2025-03-12 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667458', 'tblTempUsageDetail_20' ) start [2025-03-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667458', 'tblTempUsageDetail_20' ) end [2025-03-12 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:15:21] Production.INFO: ==8270== Releasing lock... [2025-03-12 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:16:06 [end_date_ymd] => 2025-03-12 23:16:06 [RateCDR] => 1 ) [2025-03-12 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:16:06' and `end` < '2025-03-12 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:16:18] Production.INFO: count ==1216 [2025-03-12 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:16:06 - End Time 2025-03-12 23:16:06 [2025-03-12 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667463', 'tblTempUsageDetail_20' ) start [2025-03-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667463', 'tblTempUsageDetail_20' ) end [2025-03-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667463', 'tblTempVendorCDR_20' ) start [2025-03-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667463', 'tblTempVendorCDR_20' ) end [2025-03-12 23:16:19] Production.INFO: ProcessCDR(1,14667463,1,1,2) [2025-03-12 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667463', 'tblTempUsageDetail_20' ) start [2025-03-12 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667463', 'tblTempUsageDetail_20' ) end [2025-03-12 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:16:23] Production.INFO: ==8405== Releasing lock... [2025-03-12 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:17:05 [end_date_ymd] => 2025-03-12 23:17:05 [RateCDR] => 1 ) [2025-03-12 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:17:05' and `end` < '2025-03-12 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:17:17] Production.INFO: count ==1216 [2025-03-12 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:17:05 - End Time 2025-03-12 23:17:05 [2025-03-12 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667468', 'tblTempUsageDetail_20' ) start [2025-03-12 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667468', 'tblTempUsageDetail_20' ) end [2025-03-12 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667468', 'tblTempVendorCDR_20' ) start [2025-03-12 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667468', 'tblTempVendorCDR_20' ) end [2025-03-12 23:17:18] Production.INFO: ProcessCDR(1,14667468,1,1,2) [2025-03-12 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667468', 'tblTempUsageDetail_20' ) start [2025-03-12 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667468', 'tblTempUsageDetail_20' ) end [2025-03-12 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:17:21] Production.INFO: ==8508== Releasing lock... [2025-03-12 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:18:05 [end_date_ymd] => 2025-03-12 23:18:05 [RateCDR] => 1 ) [2025-03-12 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:18:05' and `end` < '2025-03-12 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:18:18] Production.INFO: count ==1215 [2025-03-12 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:18:05 - End Time 2025-03-12 23:18:05 [2025-03-12 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667473', 'tblTempUsageDetail_20' ) start [2025-03-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667473', 'tblTempUsageDetail_20' ) end [2025-03-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667473', 'tblTempVendorCDR_20' ) start [2025-03-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667473', 'tblTempVendorCDR_20' ) end [2025-03-12 23:18:18] Production.INFO: ProcessCDR(1,14667473,1,1,2) [2025-03-12 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667473', 'tblTempUsageDetail_20' ) start [2025-03-12 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667473', 'tblTempUsageDetail_20' ) end [2025-03-12 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:18:21] Production.INFO: ==8609== Releasing lock... [2025-03-12 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:18:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:19:05 [end_date_ymd] => 2025-03-12 23:19:05 [RateCDR] => 1 ) [2025-03-12 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:19:05' and `end` < '2025-03-12 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:19:17] Production.INFO: count ==1213 [2025-03-12 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:19:05 - End Time 2025-03-12 23:19:05 [2025-03-12 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667478', 'tblTempUsageDetail_20' ) start [2025-03-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667478', 'tblTempUsageDetail_20' ) end [2025-03-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667478', 'tblTempVendorCDR_20' ) start [2025-03-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667478', 'tblTempVendorCDR_20' ) end [2025-03-12 23:19:18] Production.INFO: ProcessCDR(1,14667478,1,1,2) [2025-03-12 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667478', 'tblTempUsageDetail_20' ) start [2025-03-12 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667478', 'tblTempUsageDetail_20' ) end [2025-03-12 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:19:21] Production.INFO: ==8708== Releasing lock... [2025-03-12 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:20:07 [end_date_ymd] => 2025-03-12 23:20:07 [RateCDR] => 1 ) [2025-03-12 23:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:20:07' and `end` < '2025-03-12 23:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:20:19] Production.INFO: count ==1214 [2025-03-12 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:20:07 - End Time 2025-03-12 23:20:07 [2025-03-12 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667484', 'tblTempUsageDetail_20' ) start [2025-03-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667484', 'tblTempUsageDetail_20' ) end [2025-03-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667484', 'tblTempVendorCDR_20' ) start [2025-03-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667484', 'tblTempVendorCDR_20' ) end [2025-03-12 23:20:19] Production.INFO: ProcessCDR(1,14667484,1,1,2) [2025-03-12 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667484', 'tblTempUsageDetail_20' ) start [2025-03-12 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667484', 'tblTempUsageDetail_20' ) end [2025-03-12 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:20:24] Production.INFO: ==8811== Releasing lock... [2025-03-12 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:21:05 [end_date_ymd] => 2025-03-12 23:21:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:21:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:21:18] Production.INFO: count ==1248 [2025-03-12 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:21:05 - End Time 2025-03-12 23:21:05 [2025-03-12 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667489', 'tblTempUsageDetail_20' ) start [2025-03-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667489', 'tblTempUsageDetail_20' ) end [2025-03-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667489', 'tblTempVendorCDR_20' ) start [2025-03-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667489', 'tblTempVendorCDR_20' ) end [2025-03-12 23:21:18] Production.INFO: ProcessCDR(1,14667489,1,1,2) [2025-03-12 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667489', 'tblTempUsageDetail_20' ) start [2025-03-12 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667489', 'tblTempUsageDetail_20' ) end [2025-03-12 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:21:23] Production.INFO: ==8935== Releasing lock... [2025-03-12 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:21:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-12 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:22:05 [end_date_ymd] => 2025-03-12 23:22:05 [RateCDR] => 1 ) [2025-03-12 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:22:05' and `end` < '2025-03-12 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:22:18] Production.INFO: count ==1245 [2025-03-12 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:22:05 - End Time 2025-03-12 23:22:05 [2025-03-12 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667494', 'tblTempUsageDetail_20' ) start [2025-03-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667494', 'tblTempUsageDetail_20' ) end [2025-03-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667494', 'tblTempVendorCDR_20' ) start [2025-03-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667494', 'tblTempVendorCDR_20' ) end [2025-03-12 23:22:18] Production.INFO: ProcessCDR(1,14667494,1,1,2) [2025-03-12 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667494', 'tblTempUsageDetail_20' ) start [2025-03-12 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667494', 'tblTempUsageDetail_20' ) end [2025-03-12 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:22:21] Production.INFO: ==9015== Releasing lock... [2025-03-12 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:22:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:23:05 [end_date_ymd] => 2025-03-12 23:23:05 [RateCDR] => 1 ) [2025-03-12 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:23:05' and `end` < '2025-03-12 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:23:17] Production.INFO: count ==1241 [2025-03-12 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:23:05 - End Time 2025-03-12 23:23:05 [2025-03-12 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667499', 'tblTempUsageDetail_20' ) start [2025-03-12 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667499', 'tblTempUsageDetail_20' ) end [2025-03-12 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667499', 'tblTempVendorCDR_20' ) start [2025-03-12 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667499', 'tblTempVendorCDR_20' ) end [2025-03-12 23:23:17] Production.INFO: ProcessCDR(1,14667499,1,1,2) [2025-03-12 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667499', 'tblTempUsageDetail_20' ) start [2025-03-12 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667499', 'tblTempUsageDetail_20' ) end [2025-03-12 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:23:20] Production.INFO: ==9093== Releasing lock... [2025-03-12 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:23:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:24:05 [end_date_ymd] => 2025-03-12 23:24:05 [RateCDR] => 1 ) [2025-03-12 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:24:05' and `end` < '2025-03-12 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:24:17] Production.INFO: count ==1241 [2025-03-12 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:24:05 - End Time 2025-03-12 23:24:05 [2025-03-12 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667504', 'tblTempUsageDetail_20' ) start [2025-03-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667504', 'tblTempUsageDetail_20' ) end [2025-03-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667504', 'tblTempVendorCDR_20' ) start [2025-03-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667504', 'tblTempVendorCDR_20' ) end [2025-03-12 23:24:18] Production.INFO: ProcessCDR(1,14667504,1,1,2) [2025-03-12 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667504', 'tblTempUsageDetail_20' ) start [2025-03-12 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667504', 'tblTempUsageDetail_20' ) end [2025-03-12 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:24:21] Production.INFO: ==9170== Releasing lock... [2025-03-12 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:24:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:25:05 [end_date_ymd] => 2025-03-12 23:25:05 [RateCDR] => 1 ) [2025-03-12 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:25:05' and `end` < '2025-03-12 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:25:18] Production.INFO: count ==1237 [2025-03-12 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:25:05 - End Time 2025-03-12 23:25:05 [2025-03-12 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667509', 'tblTempUsageDetail_20' ) start [2025-03-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667509', 'tblTempUsageDetail_20' ) end [2025-03-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667509', 'tblTempVendorCDR_20' ) start [2025-03-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667509', 'tblTempVendorCDR_20' ) end [2025-03-12 23:25:18] Production.INFO: ProcessCDR(1,14667509,1,1,2) [2025-03-12 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667509', 'tblTempUsageDetail_20' ) start [2025-03-12 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667509', 'tblTempUsageDetail_20' ) end [2025-03-12 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:25:21] Production.INFO: ==9254== Releasing lock... [2025-03-12 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:25:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:26:05 [end_date_ymd] => 2025-03-12 23:26:05 [RateCDR] => 1 ) [2025-03-12 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:26:05' and `end` < '2025-03-12 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:26:17] Production.INFO: count ==1234 [2025-03-12 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:26:05 - End Time 2025-03-12 23:26:05 [2025-03-12 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667514', 'tblTempUsageDetail_20' ) start [2025-03-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667514', 'tblTempUsageDetail_20' ) end [2025-03-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667514', 'tblTempVendorCDR_20' ) start [2025-03-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667514', 'tblTempVendorCDR_20' ) end [2025-03-12 23:26:18] Production.INFO: ProcessCDR(1,14667514,1,1,2) [2025-03-12 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667514', 'tblTempUsageDetail_20' ) start [2025-03-12 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667514', 'tblTempUsageDetail_20' ) end [2025-03-12 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:26:21] Production.INFO: ==9333== Releasing lock... [2025-03-12 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:27:05 [end_date_ymd] => 2025-03-12 23:27:05 [RateCDR] => 1 ) [2025-03-12 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:27:05' and `end` < '2025-03-12 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:27:17] Production.INFO: count ==1222 [2025-03-12 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:27:05 - End Time 2025-03-12 23:27:05 [2025-03-12 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667519', 'tblTempUsageDetail_20' ) start [2025-03-12 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667519', 'tblTempUsageDetail_20' ) end [2025-03-12 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667519', 'tblTempVendorCDR_20' ) start [2025-03-12 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667519', 'tblTempVendorCDR_20' ) end [2025-03-12 23:27:17] Production.INFO: ProcessCDR(1,14667519,1,1,2) [2025-03-12 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667519', 'tblTempUsageDetail_20' ) start [2025-03-12 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667519', 'tblTempUsageDetail_20' ) end [2025-03-12 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:27:20] Production.INFO: ==9415== Releasing lock... [2025-03-12 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:27:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-12 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:28:05 [end_date_ymd] => 2025-03-12 23:28:05 [RateCDR] => 1 ) [2025-03-12 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:28:05' and `end` < '2025-03-12 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:28:18] Production.INFO: count ==1205 [2025-03-12 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:28:05 - End Time 2025-03-12 23:28:05 [2025-03-12 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667524', 'tblTempUsageDetail_20' ) start [2025-03-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667524', 'tblTempUsageDetail_20' ) end [2025-03-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667524', 'tblTempVendorCDR_20' ) start [2025-03-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667524', 'tblTempVendorCDR_20' ) end [2025-03-12 23:28:18] Production.INFO: ProcessCDR(1,14667524,1,1,2) [2025-03-12 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667524', 'tblTempUsageDetail_20' ) start [2025-03-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667524', 'tblTempUsageDetail_20' ) end [2025-03-12 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:28:21] Production.INFO: ==9494== Releasing lock... [2025-03-12 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:28:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-12 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:29:05 [end_date_ymd] => 2025-03-12 23:29:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:29:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:29:17] Production.INFO: count ==1189 [2025-03-12 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:29:05 - End Time 2025-03-12 23:29:05 [2025-03-12 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667529', 'tblTempUsageDetail_20' ) start [2025-03-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667529', 'tblTempUsageDetail_20' ) end [2025-03-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667529', 'tblTempVendorCDR_20' ) start [2025-03-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667529', 'tblTempVendorCDR_20' ) end [2025-03-12 23:29:18] Production.INFO: ProcessCDR(1,14667529,1,1,2) [2025-03-12 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667529', 'tblTempUsageDetail_20' ) start [2025-03-12 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667529', 'tblTempUsageDetail_20' ) end [2025-03-12 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:29:21] Production.INFO: ==9578== Releasing lock... [2025-03-12 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:29:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:30:06 [end_date_ymd] => 2025-03-12 23:30:06 [RateCDR] => 1 ) [2025-03-12 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:30:06' and `end` < '2025-03-12 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:30:19] Production.INFO: count ==1178 [2025-03-12 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:30:06 - End Time 2025-03-12 23:30:06 [2025-03-12 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667535', 'tblTempUsageDetail_20' ) start [2025-03-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667535', 'tblTempUsageDetail_20' ) end [2025-03-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667535', 'tblTempVendorCDR_20' ) start [2025-03-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667535', 'tblTempVendorCDR_20' ) end [2025-03-12 23:30:19] Production.INFO: ProcessCDR(1,14667535,1,1,2) [2025-03-12 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667535', 'tblTempUsageDetail_20' ) start [2025-03-12 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667535', 'tblTempUsageDetail_20' ) end [2025-03-12 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:30:22] Production.INFO: ==9653== Releasing lock... [2025-03-12 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:31:06 [end_date_ymd] => 2025-03-12 23:31:06 [RateCDR] => 1 ) [2025-03-12 23:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:31:06' and `end` < '2025-03-12 23:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:31:18] Production.INFO: count ==1180 [2025-03-12 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:31:06 - End Time 2025-03-12 23:31:06 [2025-03-12 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667540', 'tblTempUsageDetail_20' ) start [2025-03-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667540', 'tblTempUsageDetail_20' ) end [2025-03-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667540', 'tblTempVendorCDR_20' ) start [2025-03-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667540', 'tblTempVendorCDR_20' ) end [2025-03-12 23:31:18] Production.INFO: ProcessCDR(1,14667540,1,1,2) [2025-03-12 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667540', 'tblTempUsageDetail_20' ) start [2025-03-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667540', 'tblTempUsageDetail_20' ) end [2025-03-12 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:31:22] Production.INFO: ==9733== Releasing lock... [2025-03-12 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:32:05 [end_date_ymd] => 2025-03-12 23:32:05 [RateCDR] => 1 ) [2025-03-12 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:32:05' and `end` < '2025-03-12 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:32:17] Production.INFO: count ==1178 [2025-03-12 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:32:05 - End Time 2025-03-12 23:32:05 [2025-03-12 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667545', 'tblTempUsageDetail_20' ) start [2025-03-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667545', 'tblTempUsageDetail_20' ) end [2025-03-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667545', 'tblTempVendorCDR_20' ) start [2025-03-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667545', 'tblTempVendorCDR_20' ) end [2025-03-12 23:32:18] Production.INFO: ProcessCDR(1,14667545,1,1,2) [2025-03-12 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667545', 'tblTempUsageDetail_20' ) start [2025-03-12 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667545', 'tblTempUsageDetail_20' ) end [2025-03-12 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:32:21] Production.INFO: ==9809== Releasing lock... [2025-03-12 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:33:06 [end_date_ymd] => 2025-03-12 23:33:06 [RateCDR] => 1 ) [2025-03-12 23:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:33:06' and `end` < '2025-03-12 23:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:33:18] Production.INFO: count ==1178 [2025-03-12 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:33:06 - End Time 2025-03-12 23:33:06 [2025-03-12 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667550', 'tblTempUsageDetail_20' ) start [2025-03-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667550', 'tblTempUsageDetail_20' ) end [2025-03-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667550', 'tblTempVendorCDR_20' ) start [2025-03-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667550', 'tblTempVendorCDR_20' ) end [2025-03-12 23:33:18] Production.INFO: ProcessCDR(1,14667550,1,1,2) [2025-03-12 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667550', 'tblTempUsageDetail_20' ) start [2025-03-12 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667550', 'tblTempUsageDetail_20' ) end [2025-03-12 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:33:21] Production.INFO: ==9884== Releasing lock... [2025-03-12 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:33:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:34:05 [end_date_ymd] => 2025-03-12 23:34:05 [RateCDR] => 1 ) [2025-03-12 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:34:05' and `end` < '2025-03-12 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:34:17] Production.INFO: count ==1177 [2025-03-12 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:34:05 - End Time 2025-03-12 23:34:05 [2025-03-12 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667555', 'tblTempUsageDetail_20' ) start [2025-03-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667555', 'tblTempUsageDetail_20' ) end [2025-03-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667555', 'tblTempVendorCDR_20' ) start [2025-03-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667555', 'tblTempVendorCDR_20' ) end [2025-03-12 23:34:18] Production.INFO: ProcessCDR(1,14667555,1,1,2) [2025-03-12 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667555', 'tblTempUsageDetail_20' ) start [2025-03-12 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667555', 'tblTempUsageDetail_20' ) end [2025-03-12 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:34:21] Production.INFO: ==9956== Releasing lock... [2025-03-12 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:34:21] Production.INFO: 37 MB #Memory Used# [2025-03-12 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:35:05 [end_date_ymd] => 2025-03-12 23:35:05 [RateCDR] => 1 ) [2025-03-12 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:35:05' and `end` < '2025-03-12 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:35:17] Production.INFO: count ==1174 [2025-03-12 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:35:05 - End Time 2025-03-12 23:35:05 [2025-03-12 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667560', 'tblTempUsageDetail_20' ) start [2025-03-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667560', 'tblTempUsageDetail_20' ) end [2025-03-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667560', 'tblTempVendorCDR_20' ) start [2025-03-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667560', 'tblTempVendorCDR_20' ) end [2025-03-12 23:35:18] Production.INFO: ProcessCDR(1,14667560,1,1,2) [2025-03-12 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667560', 'tblTempUsageDetail_20' ) start [2025-03-12 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667560', 'tblTempUsageDetail_20' ) end [2025-03-12 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:35:21] Production.INFO: ==10027== Releasing lock... [2025-03-12 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:36:05 [end_date_ymd] => 2025-03-12 23:36:05 [RateCDR] => 1 ) [2025-03-12 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:36:05' and `end` < '2025-03-12 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:36:17] Production.INFO: count ==1175 [2025-03-12 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:36:05 - End Time 2025-03-12 23:36:05 [2025-03-12 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667565', 'tblTempUsageDetail_20' ) start [2025-03-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667565', 'tblTempUsageDetail_20' ) end [2025-03-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667565', 'tblTempVendorCDR_20' ) start [2025-03-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667565', 'tblTempVendorCDR_20' ) end [2025-03-12 23:36:18] Production.INFO: ProcessCDR(1,14667565,1,1,2) [2025-03-12 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667565', 'tblTempUsageDetail_20' ) start [2025-03-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667565', 'tblTempUsageDetail_20' ) end [2025-03-12 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:36:22] Production.INFO: ==10103== Releasing lock... [2025-03-12 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:36:22] Production.INFO: 37 MB #Memory Used# [2025-03-12 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:37:05 [end_date_ymd] => 2025-03-12 23:37:05 [RateCDR] => 1 ) [2025-03-12 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:37:05' and `end` < '2025-03-12 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:37:18] Production.INFO: count ==1183 [2025-03-12 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:37:05 - End Time 2025-03-12 23:37:05 [2025-03-12 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667570', 'tblTempUsageDetail_20' ) start [2025-03-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667570', 'tblTempUsageDetail_20' ) end [2025-03-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667570', 'tblTempVendorCDR_20' ) start [2025-03-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667570', 'tblTempVendorCDR_20' ) end [2025-03-12 23:37:18] Production.INFO: ProcessCDR(1,14667570,1,1,2) [2025-03-12 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667570', 'tblTempUsageDetail_20' ) start [2025-03-12 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667570', 'tblTempUsageDetail_20' ) end [2025-03-12 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:37:23] Production.INFO: ==10218== Releasing lock... [2025-03-12 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:38:04 [end_date_ymd] => 2025-03-12 23:38:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:38:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:38:17] Production.INFO: count ==1177 [2025-03-12 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:38:04 - End Time 2025-03-12 23:38:04 [2025-03-12 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667575', 'tblTempUsageDetail_20' ) start [2025-03-12 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667575', 'tblTempUsageDetail_20' ) end [2025-03-12 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667575', 'tblTempVendorCDR_20' ) start [2025-03-12 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667575', 'tblTempVendorCDR_20' ) end [2025-03-12 23:38:17] Production.INFO: ProcessCDR(1,14667575,1,1,2) [2025-03-12 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667575', 'tblTempUsageDetail_20' ) start [2025-03-12 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667575', 'tblTempUsageDetail_20' ) end [2025-03-12 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:38:20] Production.INFO: ==10292== Releasing lock... [2025-03-12 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:38:20] Production.INFO: 37 MB #Memory Used# [2025-03-12 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:39:05 [end_date_ymd] => 2025-03-12 23:39:05 [RateCDR] => 1 ) [2025-03-12 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:39:05' and `end` < '2025-03-12 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:39:17] Production.INFO: count ==1178 [2025-03-12 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:39:05 - End Time 2025-03-12 23:39:05 [2025-03-12 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667580', 'tblTempUsageDetail_20' ) start [2025-03-12 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667580', 'tblTempUsageDetail_20' ) end [2025-03-12 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667580', 'tblTempVendorCDR_20' ) start [2025-03-12 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667580', 'tblTempVendorCDR_20' ) end [2025-03-12 23:39:17] Production.INFO: ProcessCDR(1,14667580,1,1,2) [2025-03-12 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667580', 'tblTempUsageDetail_20' ) start [2025-03-12 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667580', 'tblTempUsageDetail_20' ) end [2025-03-12 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:39:21] Production.INFO: ==10370== Releasing lock... [2025-03-12 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:39:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-12 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:40:05 [end_date_ymd] => 2025-03-12 23:40:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:40:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:40:18] Production.INFO: count ==1172 [2025-03-12 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:40:05 - End Time 2025-03-12 23:40:05 [2025-03-12 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667586', 'tblTempUsageDetail_20' ) start [2025-03-12 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667586', 'tblTempUsageDetail_20' ) end [2025-03-12 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667586', 'tblTempVendorCDR_20' ) start [2025-03-12 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667586', 'tblTempVendorCDR_20' ) end [2025-03-12 23:40:18] Production.INFO: ProcessCDR(1,14667586,1,1,2) [2025-03-12 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667586', 'tblTempUsageDetail_20' ) start [2025-03-12 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667586', 'tblTempUsageDetail_20' ) end [2025-03-12 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:40:23] Production.INFO: ==10445== Releasing lock... [2025-03-12 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:40:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:41:05 [end_date_ymd] => 2025-03-12 23:41:05 [RateCDR] => 1 ) [2025-03-12 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:41:05' and `end` < '2025-03-12 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:41:17] Production.INFO: count ==1140 [2025-03-12 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:41:05 - End Time 2025-03-12 23:41:05 [2025-03-12 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667591', 'tblTempUsageDetail_20' ) start [2025-03-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667591', 'tblTempUsageDetail_20' ) end [2025-03-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667591', 'tblTempVendorCDR_20' ) start [2025-03-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667591', 'tblTempVendorCDR_20' ) end [2025-03-12 23:41:18] Production.INFO: ProcessCDR(1,14667591,1,1,2) [2025-03-12 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667591', 'tblTempUsageDetail_20' ) start [2025-03-12 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667591', 'tblTempUsageDetail_20' ) end [2025-03-12 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:41:21] Production.INFO: ==10521== Releasing lock... [2025-03-12 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:41:21] Production.INFO: 37 MB #Memory Used# [2025-03-12 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:42:06 [end_date_ymd] => 2025-03-12 23:42:06 [RateCDR] => 1 ) [2025-03-12 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:42:06' and `end` < '2025-03-12 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:42:18] Production.INFO: count ==1139 [2025-03-12 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:42:06 - End Time 2025-03-12 23:42:06 [2025-03-12 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667596', 'tblTempUsageDetail_20' ) start [2025-03-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667596', 'tblTempUsageDetail_20' ) end [2025-03-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667596', 'tblTempVendorCDR_20' ) start [2025-03-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667596', 'tblTempVendorCDR_20' ) end [2025-03-12 23:42:18] Production.INFO: ProcessCDR(1,14667596,1,1,2) [2025-03-12 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667596', 'tblTempUsageDetail_20' ) start [2025-03-12 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667596', 'tblTempUsageDetail_20' ) end [2025-03-12 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:42:22] Production.INFO: ==10593== Releasing lock... [2025-03-12 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:43:05 [end_date_ymd] => 2025-03-12 23:43:05 [RateCDR] => 1 ) [2025-03-12 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:43:05' and `end` < '2025-03-12 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:43:17] Production.INFO: count ==1139 [2025-03-12 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:43:05 - End Time 2025-03-12 23:43:05 [2025-03-12 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667601', 'tblTempUsageDetail_20' ) start [2025-03-12 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667601', 'tblTempUsageDetail_20' ) end [2025-03-12 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667601', 'tblTempVendorCDR_20' ) start [2025-03-12 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667601', 'tblTempVendorCDR_20' ) end [2025-03-12 23:43:17] Production.INFO: ProcessCDR(1,14667601,1,1,2) [2025-03-12 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667601', 'tblTempUsageDetail_20' ) start [2025-03-12 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667601', 'tblTempUsageDetail_20' ) end [2025-03-12 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:43:21] Production.INFO: ==10666== Releasing lock... [2025-03-12 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:44:05 [end_date_ymd] => 2025-03-12 23:44:05 [RateCDR] => 1 ) [2025-03-12 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:44:05' and `end` < '2025-03-12 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:44:18] Production.INFO: count ==1138 [2025-03-12 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:44:05 - End Time 2025-03-12 23:44:05 [2025-03-12 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667606', 'tblTempUsageDetail_20' ) start [2025-03-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667606', 'tblTempUsageDetail_20' ) end [2025-03-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667606', 'tblTempVendorCDR_20' ) start [2025-03-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667606', 'tblTempVendorCDR_20' ) end [2025-03-12 23:44:18] Production.INFO: ProcessCDR(1,14667606,1,1,2) [2025-03-12 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667606', 'tblTempUsageDetail_20' ) start [2025-03-12 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667606', 'tblTempUsageDetail_20' ) end [2025-03-12 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:44:21] Production.INFO: ==10739== Releasing lock... [2025-03-12 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:44:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:45:05 [end_date_ymd] => 2025-03-12 23:45:05 [RateCDR] => 1 ) [2025-03-12 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:45:05' and `end` < '2025-03-12 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:45:18] Production.INFO: count ==1136 [2025-03-12 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:45:05 - End Time 2025-03-12 23:45:05 [2025-03-12 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667611', 'tblTempUsageDetail_20' ) start [2025-03-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667611', 'tblTempUsageDetail_20' ) end [2025-03-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667611', 'tblTempVendorCDR_20' ) start [2025-03-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667611', 'tblTempVendorCDR_20' ) end [2025-03-12 23:45:18] Production.INFO: ProcessCDR(1,14667611,1,1,2) [2025-03-12 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667611', 'tblTempUsageDetail_20' ) start [2025-03-12 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667611', 'tblTempUsageDetail_20' ) end [2025-03-12 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:45:21] Production.INFO: ==10810== Releasing lock... [2025-03-12 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:46:05 [end_date_ymd] => 2025-03-12 23:46:05 [RateCDR] => 1 ) [2025-03-12 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:46:05' and `end` < '2025-03-12 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:46:18] Production.INFO: count ==1135 [2025-03-12 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:46:05 - End Time 2025-03-12 23:46:05 [2025-03-12 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667616', 'tblTempUsageDetail_20' ) start [2025-03-12 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667616', 'tblTempUsageDetail_20' ) end [2025-03-12 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667616', 'tblTempVendorCDR_20' ) start [2025-03-12 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667616', 'tblTempVendorCDR_20' ) end [2025-03-12 23:46:18] Production.INFO: ProcessCDR(1,14667616,1,1,2) [2025-03-12 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667616', 'tblTempUsageDetail_20' ) start [2025-03-12 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667616', 'tblTempUsageDetail_20' ) end [2025-03-12 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:46:21] Production.INFO: ==10887== Releasing lock... [2025-03-12 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:47:05 [end_date_ymd] => 2025-03-12 23:47:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:47:05' and `end` < '2025-03-12 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:47:17] Production.INFO: count ==1135 [2025-03-12 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:47:05 - End Time 2025-03-12 23:47:05 [2025-03-12 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667621', 'tblTempUsageDetail_20' ) start [2025-03-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667621', 'tblTempUsageDetail_20' ) end [2025-03-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667621', 'tblTempVendorCDR_20' ) start [2025-03-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667621', 'tblTempVendorCDR_20' ) end [2025-03-12 23:47:18] Production.INFO: ProcessCDR(1,14667621,1,1,2) [2025-03-12 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667621', 'tblTempUsageDetail_20' ) start [2025-03-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667621', 'tblTempUsageDetail_20' ) end [2025-03-12 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:47:21] Production.INFO: ==10959== Releasing lock... [2025-03-12 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:47:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:48:06 [end_date_ymd] => 2025-03-12 23:48:06 [RateCDR] => 1 ) [2025-03-12 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:48:06' and `end` < '2025-03-12 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:48:18] Production.INFO: count ==1136 [2025-03-12 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:48:06 - End Time 2025-03-12 23:48:06 [2025-03-12 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667626', 'tblTempUsageDetail_20' ) start [2025-03-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667626', 'tblTempUsageDetail_20' ) end [2025-03-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667626', 'tblTempVendorCDR_20' ) start [2025-03-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667626', 'tblTempVendorCDR_20' ) end [2025-03-12 23:48:18] Production.INFO: ProcessCDR(1,14667626,1,1,2) [2025-03-12 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667626', 'tblTempUsageDetail_20' ) start [2025-03-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667626', 'tblTempUsageDetail_20' ) end [2025-03-12 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:48:22] Production.INFO: ==11031== Releasing lock... [2025-03-12 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-12 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:49:05 [end_date_ymd] => 2025-03-12 23:49:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:49:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:49:18] Production.INFO: count ==1138 [2025-03-12 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:49:05 - End Time 2025-03-12 23:49:05 [2025-03-12 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667631', 'tblTempUsageDetail_20' ) start [2025-03-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667631', 'tblTempUsageDetail_20' ) end [2025-03-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667631', 'tblTempVendorCDR_20' ) start [2025-03-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667631', 'tblTempVendorCDR_20' ) end [2025-03-12 23:49:18] Production.INFO: ProcessCDR(1,14667631,1,1,2) [2025-03-12 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667631', 'tblTempUsageDetail_20' ) start [2025-03-12 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667631', 'tblTempUsageDetail_20' ) end [2025-03-12 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:49:23] Production.INFO: ==11107== Releasing lock... [2025-03-12 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:49:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-12 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:50:05 [end_date_ymd] => 2025-03-12 23:50:05 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:50:05' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:50:18] Production.INFO: count ==1135 [2025-03-12 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:50:05 - End Time 2025-03-12 23:50:05 [2025-03-12 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667636', 'tblTempUsageDetail_20' ) start [2025-03-12 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667636', 'tblTempUsageDetail_20' ) end [2025-03-12 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667636', 'tblTempVendorCDR_20' ) start [2025-03-12 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667636', 'tblTempVendorCDR_20' ) end [2025-03-12 23:50:18] Production.INFO: ProcessCDR(1,14667636,1,1,2) [2025-03-12 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667636', 'tblTempUsageDetail_20' ) start [2025-03-12 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667636', 'tblTempUsageDetail_20' ) end [2025-03-12 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:50:21] Production.INFO: ==11186== Releasing lock... [2025-03-12 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:50:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:51:05 [end_date_ymd] => 2025-03-12 23:51:05 [RateCDR] => 1 ) [2025-03-12 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:51:05' and `end` < '2025-03-12 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:51:17] Production.INFO: count ==1132 [2025-03-12 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:51:05 - End Time 2025-03-12 23:51:05 [2025-03-12 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667642', 'tblTempUsageDetail_20' ) start [2025-03-12 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667642', 'tblTempUsageDetail_20' ) end [2025-03-12 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667642', 'tblTempVendorCDR_20' ) start [2025-03-12 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667642', 'tblTempVendorCDR_20' ) end [2025-03-12 23:51:17] Production.INFO: ProcessCDR(1,14667642,1,1,2) [2025-03-12 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667642', 'tblTempUsageDetail_20' ) start [2025-03-12 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667642', 'tblTempUsageDetail_20' ) end [2025-03-12 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:51:20] Production.INFO: ==11263== Releasing lock... [2025-03-12 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:51:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:52:05 [end_date_ymd] => 2025-03-12 23:52:05 [RateCDR] => 1 ) [2025-03-12 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:52:05' and `end` < '2025-03-12 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:52:17] Production.INFO: count ==1117 [2025-03-12 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:52:05 - End Time 2025-03-12 23:52:05 [2025-03-12 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667647', 'tblTempUsageDetail_20' ) start [2025-03-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667647', 'tblTempUsageDetail_20' ) end [2025-03-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667647', 'tblTempVendorCDR_20' ) start [2025-03-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667647', 'tblTempVendorCDR_20' ) end [2025-03-12 23:52:18] Production.INFO: ProcessCDR(1,14667647,1,1,2) [2025-03-12 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667647', 'tblTempUsageDetail_20' ) start [2025-03-12 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667647', 'tblTempUsageDetail_20' ) end [2025-03-12 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:52:21] Production.INFO: ==11374== Releasing lock... [2025-03-12 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:52:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:53:06 [end_date_ymd] => 2025-03-12 23:53:06 [RateCDR] => 1 ) [2025-03-12 23:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:53:06' and `end` < '2025-03-12 23:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:53:18] Production.INFO: count ==1116 [2025-03-12 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:53:06 - End Time 2025-03-12 23:53:06 [2025-03-12 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667652', 'tblTempUsageDetail_20' ) start [2025-03-12 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667652', 'tblTempUsageDetail_20' ) end [2025-03-12 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667652', 'tblTempVendorCDR_20' ) start [2025-03-12 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667652', 'tblTempVendorCDR_20' ) end [2025-03-12 23:53:18] Production.INFO: ProcessCDR(1,14667652,1,1,2) [2025-03-12 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667652', 'tblTempUsageDetail_20' ) start [2025-03-12 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667652', 'tblTempUsageDetail_20' ) end [2025-03-12 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:53:22] Production.INFO: ==11452== Releasing lock... [2025-03-12 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:53:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:54:05 [end_date_ymd] => 2025-03-12 23:54:05 [RateCDR] => 1 ) [2025-03-12 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:54:05' and `end` < '2025-03-12 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:54:17] Production.INFO: count ==1116 [2025-03-12 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:54:05 - End Time 2025-03-12 23:54:05 [2025-03-12 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667657', 'tblTempUsageDetail_20' ) start [2025-03-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667657', 'tblTempUsageDetail_20' ) end [2025-03-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667657', 'tblTempVendorCDR_20' ) start [2025-03-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667657', 'tblTempVendorCDR_20' ) end [2025-03-12 23:54:18] Production.INFO: ProcessCDR(1,14667657,1,1,2) [2025-03-12 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667657', 'tblTempUsageDetail_20' ) start [2025-03-12 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667657', 'tblTempUsageDetail_20' ) end [2025-03-12 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:54:21] Production.INFO: ==11529== Releasing lock... [2025-03-12 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:54:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:55:05 [end_date_ymd] => 2025-03-12 23:55:05 [RateCDR] => 1 ) [2025-03-12 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:55:05' and `end` < '2025-03-12 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:55:18] Production.INFO: count ==1115 [2025-03-12 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:55:05 - End Time 2025-03-12 23:55:05 [2025-03-12 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667662', 'tblTempUsageDetail_20' ) start [2025-03-12 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667662', 'tblTempUsageDetail_20' ) end [2025-03-12 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667662', 'tblTempVendorCDR_20' ) start [2025-03-12 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667662', 'tblTempVendorCDR_20' ) end [2025-03-12 23:55:18] Production.INFO: ProcessCDR(1,14667662,1,1,2) [2025-03-12 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667662', 'tblTempUsageDetail_20' ) start [2025-03-12 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667662', 'tblTempUsageDetail_20' ) end [2025-03-12 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:55:21] Production.INFO: ==11600== Releasing lock... [2025-03-12 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:56:05 [end_date_ymd] => 2025-03-12 23:56:05 [RateCDR] => 1 ) [2025-03-12 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:56:05' and `end` < '2025-03-12 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:56:17] Production.INFO: count ==1116 [2025-03-12 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:56:05 - End Time 2025-03-12 23:56:05 [2025-03-12 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667667', 'tblTempUsageDetail_20' ) start [2025-03-12 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667667', 'tblTempUsageDetail_20' ) end [2025-03-12 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667667', 'tblTempVendorCDR_20' ) start [2025-03-12 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667667', 'tblTempVendorCDR_20' ) end [2025-03-12 23:56:17] Production.INFO: ProcessCDR(1,14667667,1,1,2) [2025-03-12 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667667', 'tblTempUsageDetail_20' ) start [2025-03-12 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667667', 'tblTempUsageDetail_20' ) end [2025-03-12 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:56:21] Production.INFO: ==11675== Releasing lock... [2025-03-12 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:57:06 [end_date_ymd] => 2025-03-12 23:57:06 [RateCDR] => 1 ) [2025-03-12 23:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:57:06' and `end` < '2025-03-12 23:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:57:19] Production.INFO: count ==1106 [2025-03-12 23:57:19] Production.ERROR: pbx CDR StartTime 2025-03-12 20:57:06 - End Time 2025-03-12 23:57:06 [2025-03-12 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667672', 'tblTempUsageDetail_20' ) start [2025-03-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667672', 'tblTempUsageDetail_20' ) end [2025-03-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667672', 'tblTempVendorCDR_20' ) start [2025-03-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667672', 'tblTempVendorCDR_20' ) end [2025-03-12 23:57:19] Production.INFO: ProcessCDR(1,14667672,1,1,2) [2025-03-12 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667672', 'tblTempUsageDetail_20' ) start [2025-03-12 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667672', 'tblTempUsageDetail_20' ) end [2025-03-12 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:57:23] Production.INFO: ==11753== Releasing lock... [2025-03-12 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:57:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-12 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:58:06 [end_date_ymd] => 2025-03-12 23:58:06 [RateCDR] => 1 ) [2025-03-12 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-12 20:58:06' and `end` < '2025-03-12 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-12 23:58:18] Production.INFO: count ==1095 [2025-03-12 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-12 20:58:06 - End Time 2025-03-12 23:58:06 [2025-03-12 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667677', 'tblTempUsageDetail_20' ) start [2025-03-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667677', 'tblTempUsageDetail_20' ) end [2025-03-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667677', 'tblTempVendorCDR_20' ) start [2025-03-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667677', 'tblTempVendorCDR_20' ) end [2025-03-12 23:58:18] Production.INFO: ProcessCDR(1,14667677,1,1,2) [2025-03-12 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667677', 'tblTempUsageDetail_20' ) start [2025-03-12 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667677', 'tblTempUsageDetail_20' ) end [2025-03-12 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:58:21] Production.INFO: ==11826== Releasing lock... [2025-03-12 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-12 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-12 20:59:04 [end_date_ymd] => 2025-03-12 23:59:04 [RateCDR] => 1 ) [2025-03-12 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` >= '2025-03-12 20:59:04' and `end` < '2025-03-12 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 ,'') [2025-03-12 23:59:17] Production.INFO: count ==1088 [2025-03-12 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-12 20:59:04 - End Time 2025-03-12 23:59:04 [2025-03-12 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-12 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667682', 'tblTempUsageDetail_20' ) start [2025-03-12 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14667682', 'tblTempUsageDetail_20' ) end [2025-03-12 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667682', 'tblTempVendorCDR_20' ) start [2025-03-12 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14667682', 'tblTempVendorCDR_20' ) end [2025-03-12 23:59:17] Production.INFO: ProcessCDR(1,14667682,1,1,2) [2025-03-12 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14667682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14667682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-12 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14667682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14667682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-12 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667682', 'tblTempUsageDetail_20' ) start [2025-03-12 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14667682', 'tblTempUsageDetail_20' ) end [2025-03-12 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-12 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-12 23:59:22] Production.INFO: ==11898== Releasing lock... [2025-03-12 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-12 23:59:22] Production.INFO: 36.5 MB #Memory Used#